|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This is the interface for an overlay node. The node is responsible for organizing the overlay and providing information on how to route a message on the overlay.
Field Summary | |
static java.lang.String |
DEFAULT_CONFIG_FILE
Default cofiguration file name used by DT_server. |
static byte |
PROTOSUB_BUDDYLIST
|
static byte |
PROTOSUB_MULTICAST
|
static byte |
PROTOSUB_NOSPEC
Protocol_Subfield values in Protocol field for DT3.0 protocol message |
static byte |
PROTOSUB_SERVER
|
Method Summary | |
hypercast.I_LogicalAddress |
createLogicalAddress(byte[] laddr,
int offset)
Creates a logical address object from a byte array. |
hypercast.I_LogicalAddress |
createLogicalAddress(java.lang.String laStr)
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. |
void |
joinOverlay()
Joins the overlay. |
void |
leaveOverlay()
Leaves the overlay. |
boolean |
previousHopCheck(hypercast.I_LogicalAddress src,
hypercast.I_LogicalAddress dst,
hypercast.I_LogicalAddress prehop)
Check if previous hop is a valided sender. |
void |
setLogicalAddress(hypercast.I_LogicalAddress la)
Sets the logical address to specified one. |
void |
setNotificationHandler(hypercast.NotificationHandler nh)
Set notification handler. |
Methods inherited from interface hypercast.I_Stats |
getReadSchema, getStats, getStatsName, getWriteSchema, setStats, setStatsName |
Field Detail |
public static final java.lang.String DEFAULT_CONFIG_FILE
public static final byte PROTOSUB_NOSPEC
public static final byte PROTOSUB_SERVER
public static final byte PROTOSUB_BUDDYLIST
public static final byte PROTOSUB_MULTICAST
Method Detail |
public void joinOverlay()
java.lang.IllegalStateException
- if already joined.public void leaveOverlay()
java.lang.IllegalStateException
- if already left.public hypercast.I_AddressPair[] getParent(hypercast.I_LogicalAddress root)
root
.
java.lang.IllegalStateException
- if node has not joined group.public hypercast.I_AddressPair[] getChildren(hypercast.I_LogicalAddress root)
root
.
java.lang.IllegalStateException
- if node has not joined group.public hypercast.I_AddressPair[] getAllNeighbors()
java.lang.IllegalStateException
- if node has not joined group.public hypercast.I_AddressPair getAddressPair()
java.lang.IllegalStateException
- if node has not joined group.public hypercast.I_LogicalAddress createLogicalAddress(byte[] laddr, int offset)
java.lang.IllegalArgumentException
- if byte[] is corrupted
java.lang.ArrayIndexOutOfBoundsException
- if byte[] is too small.public hypercast.I_LogicalAddress createLogicalAddress(java.lang.String laStr)
public void setLogicalAddress(hypercast.I_LogicalAddress la)
public boolean previousHopCheck(hypercast.I_LogicalAddress src, hypercast.I_LogicalAddress dst, hypercast.I_LogicalAddress prehop)
public void setNotificationHandler(hypercast.NotificationHandler nh)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |