|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ami.AMIOutputSpool
Contains spools of AMI request waiting for sending
Singleton
The AMIOutputSpool is also responsable for merging queries in common packets if it is possible.
Field Summary | |
private static AMIOutputSpool |
aos
Self instance used for signleton pattern |
private static boolean |
bStop
|
private static Hashtable |
hDestPacket
|
(package private) Thread |
t
Thread used for auto-start |
private static Vector |
vas
|
Constructor Summary | |
private |
AMIOutputSpool()
default constructor |
Method Summary | |
private void |
dispatch(AMIPacket ap)
Used to choose best sender for this packet and give it the order to start the sending |
static AMIOutputSpool |
getInstance()
Return a self instance Implementation of the singleton pattern |
(package private) static void |
put(AMIPacket ap)
The AMIOutputProcesor uses this method to add some packets to be sent |
(package private) static void |
removeAR(String sArid)
Used to cancel an AR sending if it is not already transmitted to an AMIsender Can be called by the AMIOutputProcessor assumes that the AR exits |
void |
run()
Main loop, dispatchs incoming packets to senders |
private Vector |
sort(Hashtable hCurrentSpool)
Sorts packets by priority |
(package private) static void |
stop()
Finalize the output spool |
Methods inherited from class java.lang.Object |
|
Field Detail |
private static Vector vas
private static volatile boolean bStop
private static Hashtable hDestPacket
private static AMIOutputSpool aos
Thread t
Constructor Detail |
private AMIOutputSpool()
Method Detail |
public static AMIOutputSpool getInstance()
Implementation of the singleton pattern
public void run()
run
in interface Runnable
static void put(AMIPacket ap) throws AMIException
static void removeAR(String sArid)
private void dispatch(AMIPacket ap) throws AMIException
ap
- private Vector sort(Hashtable hCurrentSpool)
static void stop()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |