|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--hypercast.I_MessageStoreFSM | +--hypercast.MessageStoreFSM_Naming
This class implements a finite state machine that provides a naming service. In particular, it implements a "getLogicalAddressByName" service in an logical overlay network.
This class contains:
Field Summary | |
static java.lang.String |
securityProviderClassName
The name of the class that provides crypto algorithm implementations. |
static java.lang.String |
securityProviderShortName
The short name of the provider that has crypto algorithm implementations. |
Constructor Summary | |
MessageStoreFSM_Naming(hypercast.OL_Socket socket,
hypercast.MessageStore messageStore,
hypercast.HyperCastConfig config)
Creates a naming service finite state machine with the specified parameters. |
Method Summary | |
void |
changingNeighbor()
This finite state machine takes no action when the neighborhood changes. |
short |
getFSMID()
Return the ID of this FSM. |
hypercast.I_LogicalAddress |
getLogicalAddress()
Delegated method call to get local logical address. |
int |
getLogicalAddressChangeCounter()
|
org.w3c.dom.Element[] |
getReadSchema(org.w3c.dom.Document doc,
org.apache.xpath.XPath xpath)
Dynamically generates a subtree of the Readable Schema rooted at the path specified by the xpath. |
org.w3c.dom.Element[] |
getStats(org.w3c.dom.Document doc,
org.apache.xpath.XPath xpath)
Gets statistics information from an object which implements this interface. |
java.lang.String |
getStatsName()
Gets the element name of this I_Stats instance. |
org.w3c.dom.Element[] |
getWriteSchema(org.w3c.dom.Document doc,
org.apache.xpath.XPath xpath)
Dynamically generates a subtree of the Writable Schema rooted at the path specified by the xpath. |
void |
invalidateOperation()
Sends an Invalidate Message that contains all local bindings. |
void |
invalidateOperation(java.lang.String name)
Sends a Push Message that contains all local bindings. |
void |
newACMsg(hypercast.OL_Message message)
set the new control message information |
void |
newADMsg(hypercast.OL_Message message)
set the new application message information |
void |
newApplicationControlMessage(hypercast.OL_Message message)
|
void |
newApplicationDataMessage(hypercast.OL_Message message)
|
void |
pushOperation()
Sends a Push Message that contains all local bindings. |
void |
pushOperation(java.lang.String name)
Sends a Push Message that contains one binding. |
org.w3c.dom.Element[] |
setStats(org.w3c.dom.Document doc,
org.apache.xpath.XPath xpath,
org.w3c.dom.Element setValue)
Sets statistics information for an object which implements this interface. |
void |
setStatsName(java.lang.String name)
Assigns a name to this I_Stats instance. |
void |
setTimer(java.lang.Object obj,
long delay)
Deprecated. |
void |
timerExpired(int timerIndex)
Method that is called when a timer expires - no longer used as timers have been generalized to use objects instead of ints. |
void |
timerExpired(java.lang.Object object)
Method that is called when a timer expires |
void |
updateACMsg(hypercast.OL_Message message)
update the control message information |
void |
updateADMsg(hypercast.OL_Message message)
update the application message information |
void |
updateApplicationControlMessage(hypercast.OL_Message message)
|
void |
updateApplicationDataMessage(hypercast.OL_Message message)
|
Methods inherited from class hypercast.I_MessageStoreFSM |
receiveControlMessage, receiveDataMessage |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String securityProviderClassName
public static final java.lang.String securityProviderShortName
Constructor Detail |
public MessageStoreFSM_Naming(hypercast.OL_Socket socket, hypercast.MessageStore messageStore, hypercast.HyperCastConfig config)
socket
- overlay socket associated with this instance of the naming servicemessageStore
- message store within which this instance of the naming service runsconfig
- overlay socket config that contains a reference to the log used by this naming serviceMethod Detail |
public void changingNeighbor()
changingNeighbor
in class I_MessageStoreFSM
public short getFSMID()
getFSMID
in class I_MessageStoreFSM
public void newADMsg(hypercast.OL_Message message)
I_MessageStoreFSM
newADMsg
in class I_MessageStoreFSM
public void newApplicationDataMessage(hypercast.OL_Message message)
public void updateADMsg(hypercast.OL_Message message)
I_MessageStoreFSM
updateADMsg
in class I_MessageStoreFSM
public void updateApplicationDataMessage(hypercast.OL_Message message)
public void newACMsg(hypercast.OL_Message message)
I_MessageStoreFSM
newACMsg
in class I_MessageStoreFSM
public void newApplicationControlMessage(hypercast.OL_Message message)
public void updateACMsg(hypercast.OL_Message message)
I_MessageStoreFSM
updateACMsg
in class I_MessageStoreFSM
public void updateApplicationControlMessage(hypercast.OL_Message message)
public int getLogicalAddressChangeCounter()
public hypercast.I_LogicalAddress getLogicalAddress()
public void pushOperation()
public void pushOperation(java.lang.String name)
name
- The name that should be pushed, if it is in the local binding tablepublic void invalidateOperation()
public void invalidateOperation(java.lang.String name)
public void setTimer(java.lang.Object obj, long delay)
obj
- The object that is to be associated with this timer event, available when event occursdelay
- milliseconds until timer expirespublic void timerExpired(java.lang.Object object)
timerExpired
in class I_MessageStoreFSM
public void timerExpired(int timerIndex)
timerExpired
in class I_MessageStoreFSM
public org.w3c.dom.Element[] getStats(org.w3c.dom.Document doc, org.apache.xpath.XPath xpath) throws HyperCastStatsException
I_Stats
getStats
in interface I_Stats
xpath
- Specifies the statistic subtree to query.doc
- The document is used as a factory to create XML
objects such as Nodes and Elements as needed. TODO: describe
how the XML document in the doc is used.
HyperCastStatsException
- If the xpath does not specify a valid subtree.public org.w3c.dom.Element[] setStats(org.w3c.dom.Document doc, org.apache.xpath.XPath xpath, org.w3c.dom.Element setValue) throws HyperCastStatsException
I_Stats
setStats
in interface I_Stats
xpath
- Specifies the statistic subtree to use when updating values.doc
- The document is used as a factory to create XML
objects such as Nodes and Elements as needed. TODO: describe
how the XML document in the doc is used.
HyperCastStatsException
- If the xpath does not specify a
valid subtree or if any part of the the subtree is read-only,
or if the newValue
does not conform with the
expected format.public org.w3c.dom.Element[] getReadSchema(org.w3c.dom.Document doc, org.apache.xpath.XPath xpath) throws HyperCastStatsException
I_Stats
getReadSchema
in interface I_Stats
HyperCastStatsException
- If some part of the specified
subtree does not correctly implement this interface method.public org.w3c.dom.Element[] getWriteSchema(org.w3c.dom.Document doc, org.apache.xpath.XPath xpath) throws HyperCastStatsException
I_Stats
getWriteSchema
in interface I_Stats
HyperCastStatsException
- If some part of the specified
subtree does not correctly implement this interface method.public java.lang.String getStatsName()
I_Stats
getStatsName
in interface I_Stats
I_Stats.getStatsName()
public void setStatsName(java.lang.String name)
I_Stats
setStatsName
in interface I_Stats
name
- the name assigned to the I_Stats instance.I_Stats.setStatsName(java.lang.String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |