|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.retail.AEF.server.AEFBase.AEFMulticastThread
AEFMulticastThread
is a thread which can handle listening to the multicast socket
for beaconing factories, as well as beacon on behalf of a factory.
Field Summary | |
---|---|
protected byte[] |
blankBuf
|
protected byte[] |
broadcastBuf
|
protected long |
lastBeaconTime
|
protected byte[] |
receiveBuf
|
protected byte[] |
serverURIBuf
|
protected int |
timeout
|
Constructor Summary | |
---|---|
AEFBase.AEFMulticastThread()
Construct AEFMulticastThread object |
Method Summary | |
---|---|
protected java.net.DatagramPacket |
listenForIncoming()
Listens on the multicast socket for an incoming message. |
protected void |
processDuplicateTerminalNumber(java.lang.String incomingBuffer)
Process the incoming duplicate terminal message. |
protected void |
processFactoryBeacon(java.lang.String factoryBeacon,
java.net.DatagramPacket incomingPacket)
Process the incoming factory beacon. |
protected void |
processServerBeacon(java.lang.String serverBeacon)
Process the incoming server beacon. |
protected void |
processServerRequest(java.lang.String serverRequest,
java.net.DatagramPacket incomingPacket)
Process the incoming server request. |
void |
run()
Main processing loop |
protected void |
sendDuplicateTermNumMessage(java.net.DatagramPacket incomingPacket,
java.lang.String factoryID)
Send a directed packet back to the originator of the factory beacon to indicate that the factory is trying to come on-line with a terminal number already duplicated in another factory. |
protected void |
sendFactoryBeacon(boolean honorBeaconInterval)
Send the factory beacon |
protected void |
sendServerBeacon()
Send an outgoing message containing the server's URI. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected int timeout
protected long lastBeaconTime
protected byte[] broadcastBuf
protected byte[] receiveBuf
protected byte[] blankBuf
protected byte[] serverURIBuf
Constructor Detail |
public AEFBase.AEFMulticastThread()
Method Detail |
public void run()
run
in interface java.lang.Runnable
protected void sendFactoryBeacon(boolean honorBeaconInterval)
honorBeaconInterval
- If true, this method will not send the beacon unless the time
since the last beacon is greater than the beacon interval.protected void processFactoryBeacon(java.lang.String factoryBeacon, java.net.DatagramPacket incomingPacket)
protected void processServerRequest(java.lang.String serverRequest, java.net.DatagramPacket incomingPacket)
protected void processServerBeacon(java.lang.String serverBeacon)
protected void processDuplicateTerminalNumber(java.lang.String incomingBuffer)
protected void sendServerBeacon()
protected void sendDuplicateTermNumMessage(java.net.DatagramPacket incomingPacket, java.lang.String factoryID)
protected java.net.DatagramPacket listenForIncoming()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |