org.kth.dks.dks_comm
Class DKSOverlayAddress
java.lang.Object
org.kth.dks.dks_comm.DKSOverlayAddress
public class DKSOverlayAddress
- extends java.lang.Object
|
Constructor Summary |
DKSOverlayAddress(long newId,
long newGroupId,
long newGUID)
|
DKSOverlayAddress(java.lang.String dksURL)
Constructs a DKSOverlayAddress from a DKSOverlayURL string having the following format:
dksoverlay://[GROUP_ID]/[NODE_ID]/[UNIQUE_GUID])
GROUP_ID must be a number describing the unique DKS ring/group identifier,
NODE_ID must be a number describing the node logical identifier,
UNIQUE_GUID must be a number describing the node unique identifier (only for identification). |
|
Method Summary |
boolean |
equals(java.lang.Object o)
|
java.lang.String |
getDKSOverlayURL()
Returns the DKSOverlayURL representing this DKSOverlayNetwork in the following format:
DKSOverlay://[GROUP_ID]/[NODE_ID]/[UNIQUE_GUID])
GROUP_ID must be a number describing the unique DKS ring/group identifier,
NODE_ID must be a number describing the node logical identifier,
UNIQUE_GUID must be a number describing the node unique identifier (only for identification). |
long |
getGroupId()
|
long |
getGUID()
|
long |
getID()
|
int |
hashCode()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
DKSOverlayAddress
public DKSOverlayAddress(long newId,
long newGroupId,
long newGUID)
DKSOverlayAddress
public DKSOverlayAddress(java.lang.String dksURL)
throws java.net.MalformedURLException
- Constructs a DKSOverlayAddress from a DKSOverlayURL string having the following format:
dksoverlay://[GROUP_ID]/[NODE_ID]/[UNIQUE_GUID])
GROUP_ID must be a number describing the unique DKS ring/group identifier,
NODE_ID must be a number describing the node logical identifier,
UNIQUE_GUID must be a number describing the node unique identifier (only for identification).
The scheme of the url can be in any case, e.g. "dksoverlay://" or "DKSOverlay://".
Example DKS URL "dksoverlay://2/431/5156164356"
- Parameters:
dksURL - String with the above described format
- Throws:
java.net.MalformedURLException - if the string does not match the above description
getDKSOverlayURL
public java.lang.String getDKSOverlayURL()
- Returns the DKSOverlayURL representing this DKSOverlayNetwork in the following format:
DKSOverlay://[GROUP_ID]/[NODE_ID]/[UNIQUE_GUID])
GROUP_ID must be a number describing the unique DKS ring/group identifier,
NODE_ID must be a number describing the node logical identifier,
UNIQUE_GUID must be a number describing the node unique identifier (only for identification).
The scheme of the url can be in any case, e.g. "dks://" or "DKS://".
Example DKS URL "DKSOverlay://2/431/5156164356"
- Returns:
- String the DKS URL representing this object
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
getID
public long getID()
getGroupId
public long getGroupId()
getGUID
public long getGUID()
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode in class java.lang.Object
Copyright © 2010. All Rights Reserved.