|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--hypercast.I_MessageStoreFSM | +--hypercast.MessageStoreFSM_H2HACK
This class is a finite state machine which handles hop to hop ack.
Field Summary | |
static byte |
Done
The state of the message,Done |
static byte |
H2H_ACK
|
static byte |
H2H_NACK
ADF_Control Types for H2H ACK |
static byte |
H2H_REQUEST
|
static byte |
H2H_RESET
|
static byte |
Init
The state of the message,Init |
static byte |
NoPayLoad
The state of the message,Don't have payload |
static byte |
PAYLOAD
ADF_Payload for H2H ACK |
static byte |
PAYLOAD_RETRAN
ADF_Retransmit payload for H2H ACK |
static byte |
Reset
The state of the message,Reset |
static byte |
WaitforACK
The state of the message,Wait for ACK |
Constructor Summary | |
MessageStoreFSM_H2HACK(hypercast.OL_Socket Socket,
hypercast.MessageStore mstore,
hypercast.HyperCastConfig config)
Constructs a MessageStoreFSM_H2HACK object with OL_Socket and MessageStore. |
Method Summary | |
void |
changingNeighbor()
This method is used to adapt the dynamically changing tree structure of the overlay topology. |
short |
getFSMID()
Get the service number of the finite state machine |
void |
newACMsg(hypercast.OL_Message msg)
Process the new ADF_Control message |
void |
newADMsg(hypercast.OL_Message msg)
process a new formated application message |
void |
timerExpired(int timerIndex)
Set the time expired events |
void |
updateACMsg(hypercast.OL_Message msg)
Update the new ADF_Control message |
void |
updateADMsg(hypercast.OL_Message msg)
Update the known ADF_Data message entry |
Methods inherited from class hypercast.I_MessageStoreFSM |
receiveControlMessage, receiveDataMessage, timerExpired |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final byte PAYLOAD
public static final byte PAYLOAD_RETRAN
public static final byte H2H_NACK
public static final byte H2H_ACK
public static final byte H2H_REQUEST
public static final byte H2H_RESET
public static final byte Init
public static final byte NoPayLoad
public static final byte WaitforACK
public static final byte Done
public static final byte Reset
Constructor Detail |
public MessageStoreFSM_H2HACK(hypercast.OL_Socket Socket, hypercast.MessageStore mstore, hypercast.HyperCastConfig config)
Socket
- OL_Socketmstore
- MessageStoreconfig
- HyperCastConfigMethod Detail |
public void changingNeighbor()
changingNeighbor
in class I_MessageStoreFSM
public short getFSMID()
I_MessageStoreFSM
getFSMID
in class I_MessageStoreFSM
public void newADMsg(hypercast.OL_Message msg)
newADMsg
in class I_MessageStoreFSM
msg
- OL_Messagepublic void newACMsg(hypercast.OL_Message msg)
newACMsg
in class I_MessageStoreFSM
msg
- OL_Messagepublic void updateADMsg(hypercast.OL_Message msg)
updateADMsg
in class I_MessageStoreFSM
msg
- OL_Messagepublic void updateACMsg(hypercast.OL_Message msg)
updateACMsg
in class I_MessageStoreFSM
msg
- OL_Messagepublic void timerExpired(int timerIndex)
timerExpired
in class I_MessageStoreFSM
timerIndex
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |