ami
Class AMIOutputProcessor

java.lang.Object
  |
  +--ami.AMIOutputProcessor

final class AMIOutputProcessor
extends Object

Centralizes sending requests and check them

Version:
1.0
Author:
Bertrand Florat

Constructor Summary
private AMIOutputProcessor()
          Default constructor

 
Method Summary
(package private) static void addressDeclaration()
          Broadcast the IAI ( done once, at ami start ) Used to declare ourselves to others
(package private) static void broadcast(AMIQuery aq)
          Add a packet to broadcast with no vException given, means all peers without exception
(package private) static void broadcast(AMIQuery aq, boolean bSorted)
          Add a packet to broadcast with no vException given, means all peers without exception
(package private) static void broadcast(AMIQuery aq, Vector vExceptions)
          Add a packet to broadcast with exceptions and no sorting
(package private) static void broadcast(AMIQuery aq, Vector vExceptions, boolean bSorted)
          Add a packet to broadcast
(package private) static void submit(AMIPacket ap)
          Add a packet in the AMIOutputSpool
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Constructor Detail

AMIOutputProcessor

private AMIOutputProcessor()
Default constructor

Method Detail

submit

static void submit(AMIPacket ap)
Add a packet in the AMIOutputSpool

broadcast

static void broadcast(AMIQuery aq,
                      Vector vExceptions,
                      boolean bSorted)
Add a packet to broadcast
Parameters:
aq - query to brodcast
vException - contains public keys of peers not concerned by the broadcast
bSorted - if true, sorts peers by performance and broadcast best peers first

broadcast

static void broadcast(AMIQuery aq,
                      Vector vExceptions)
Add a packet to broadcast with exceptions and no sorting
Parameters:
aq - query to brodcast
vException - contains public keys of peers not concerned by the broadcast

broadcast

static void broadcast(AMIQuery aq)
Add a packet to broadcast with no vException given, means all peers without exception

broadcast

static void broadcast(AMIQuery aq,
                      boolean bSorted)
Add a packet to broadcast with no vException given, means all peers without exception

addressDeclaration

static void addressDeclaration()
Broadcast the IAI ( done once, at ami start ) Used to declare ourselves to others