|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ami.AMISender
AMI packets sender (thread )
The ami sender is pretty clever and manage alone the sending of a packet. If sending fails, it will try to correct the error and try again ( until TTL of packet is zero ).
Field Summary | |
private AMIPacket |
ap
|
private AMIPacket |
apVoid
|
private boolean |
bStop
|
private BufferedWriter |
bw
|
private Socket |
socket
|
private Thread |
t
|
Constructor Summary | |
(package private) |
AMISender()
put your documentation comment here |
Method Summary | |
private void |
check()
Called to check distant peer before connection |
(package private) AMIPacket |
getAp()
get the AMIPacket |
(package private) String |
getIP()
getIP : used by the AMIOutputSpool to get queekly the ip used ( to load balancing and keep socket on already opened senders |
(package private) boolean |
isAvailable()
return status of the sender ( available or not) |
void |
run()
start thread used to check movement in vXml vectors |
private void |
send()
Send data |
(package private) void |
setAp(AMIPacket ap)
used by the OutputSpool to valorize data to be sent |
(package private) void |
stop()
Used to stop safely the AMISender. |
Methods inherited from class java.lang.Object |
|
Field Detail |
private AMIPacket ap
private BufferedWriter bw
private volatile boolean bStop
private Socket socket
private Thread t
private AMIPacket apVoid
Constructor Detail |
AMISender()
Method Detail |
String getIP()
void setAp(AMIPacket ap)
AMIPacket getAp()
boolean isAvailable()
void stop()
public void run()
run
in interface Runnable
private void check() throws AMIException
private void send() throws AMIException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |