|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--hypercast.NONE.NONE_Node
Field Summary |
Fields inherited from interface hypercast.I_Node |
DEFAULT_CONFIG_FILE, PROTOSUB_BUDDYLIST, PROTOSUB_MULTICAST, PROTOSUB_NOSPEC, PROTOSUB_SERVER |
Constructor Summary | |
NONE_Node(hypercast.HyperCastConfig config,
hypercast.I_UnicastAdapter adapter)
|
|
NONE_Node(hypercast.HyperCastConfig config,
hypercast.I_UnicastAdapter adapter,
java.lang.String prefix)
|
Method Summary | |
hypercast.I_LogicalAddress |
createLogicalAddress(byte[] logicalAddressBytes,
int offset)
Creates a logical address object from a byte array. |
hypercast.I_LogicalAddress |
createLogicalAddress(java.lang.String logicalAddressString)
Creates a logical address object from a String. |
hypercast.I_AddressPair |
getAddressPair()
Returns this logical and physical addresses of this node. |
hypercast.I_AddressPair[] |
getAllNeighbors()
Returns the node's neighbors' physical/logical address pairs. |
hypercast.I_AddressPair[] |
getChildren(hypercast.I_LogicalAddress root)
Returns the node's children's physical/logical address pairs, with respect to the spanning tree rooted at root . |
hypercast.I_AddressPair[] |
getParent(hypercast.I_LogicalAddress root)
Returns the addresspair of the next hop for a message routed by this node towards the root. |
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. |
java.lang.String |
getStatsValue(java.lang.String name)
Gets the information of a scalar statistics from an object which implements this interface. |
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 |
joinOverlay()
This is a no-op for the NONE protocol since there is no overlay to join. |
void |
leaveOverlay()
This is a no-op for the NONE protocol since there is no overlay to join. |
boolean |
previousHopCheck(hypercast.I_LogicalAddress source,
hypercast.I_LogicalAddress destination,
hypercast.I_LogicalAddress previousHop)
Everybody is considered a neighbor in the NONE protocol. |
void |
setLogicalAddress(hypercast.I_LogicalAddress logicalAddress)
Sets the logical address of this node to the specified one. |
void |
setNotificationHandler(hypercast.NotificationHandler notificationHandler)
Set notification handler. |
org.w3c.dom.Element[] |
setStats(org.w3c.dom.Document doc,
org.apache.xpath.XPath xpath,
org.w3c.dom.Element newValue)
Sets statistics information for an object which implements this interface. |
void |
setStatsName(java.lang.String name)
Assigns a name to this I_Stats instance. |
java.lang.String |
setStatsValue(java.lang.String name,
java.lang.String newValue)
Sets the information of s writable scalar statistics to an object which implements this interface. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public NONE_Node(hypercast.HyperCastConfig config, hypercast.I_UnicastAdapter adapter)
public NONE_Node(hypercast.HyperCastConfig config, hypercast.I_UnicastAdapter adapter, java.lang.String prefix)
Method Detail |
public void joinOverlay()
joinOverlay
in interface I_Node
I_Node.joinOverlay()
public void leaveOverlay()
leaveOverlay
in interface I_Node
I_Node.leaveOverlay()
public hypercast.I_AddressPair[] getParent(hypercast.I_LogicalAddress root)
I_Node
root
.
getParent
in interface I_Node
I_Node.getParent(hypercast.I_LogicalAddress)
public hypercast.I_AddressPair[] getChildren(hypercast.I_LogicalAddress root)
I_Node
root
.
getChildren
in interface I_Node
I_Node.getChildren(hypercast.I_LogicalAddress)
public hypercast.I_AddressPair[] getAllNeighbors()
I_Node
getAllNeighbors
in interface I_Node
I_Node.getAllNeighbors()
public hypercast.I_AddressPair getAddressPair()
I_Node
getAddressPair
in interface I_Node
I_Node.getAddressPair()
public hypercast.I_LogicalAddress createLogicalAddress(byte[] logicalAddressBytes, int offset)
I_Node
createLogicalAddress
in interface I_Node
I_Node.createLogicalAddress(byte[], int)
public boolean previousHopCheck(hypercast.I_LogicalAddress source, hypercast.I_LogicalAddress destination, hypercast.I_LogicalAddress previousHop)
previousHopCheck
in interface I_Node
I_Node.previousHopCheck(hypercast.I_LogicalAddress, hypercast.I_LogicalAddress, hypercast.I_LogicalAddress)
public void setNotificationHandler(hypercast.NotificationHandler notificationHandler)
I_Node
setNotificationHandler
in interface I_Node
I_Node.setNotificationHandler(NotificationHandler)
public hypercast.I_LogicalAddress createLogicalAddress(java.lang.String logicalAddressString)
I_Node
createLogicalAddress
in interface I_Node
I_Node.createLogicalAddress(java.lang.String)
public void setLogicalAddress(hypercast.I_LogicalAddress logicalAddress)
setLogicalAddress
in interface I_Node
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(String)
public java.lang.String getStatsValue(java.lang.String name) throws HyperCastStatsException
HyperCastStatsException
- if the statistics with given name is not
supported by the object.public java.lang.String setStatsValue(java.lang.String name, java.lang.String newValue) throws HyperCastStatsException
HyperCastStatsException
- if the statistics with given name is not
supported by the object or read-only, or if value does not conform with
expected format.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.I_Stats.getStats(org.w3c.dom.Document, org.apache.xpath.XPath)
public org.w3c.dom.Element[] setStats(org.w3c.dom.Document doc, org.apache.xpath.XPath xpath, org.w3c.dom.Element newValue) 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.I_Stats.setStats(org.w3c.dom.Document, org.apache.xpath.XPath, org.w3c.dom.Element)
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.I_Stats.getReadSchema(org.w3c.dom.Document, org.apache.xpath.XPath)
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.I_Stats.getWriteSchema(org.w3c.dom.Document, org.apache.xpath.XPath)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |