|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectplanet.test.dht.DHTMessage
Message to be used at DHTTest main application. It permits two operations:
Field Summary | |
static int |
INSERT
Insert message type to be used at constructor. |
static int |
LOOKUP
Lookup message type to be used at constructor. |
Constructor Summary | |
DHTMessage(NodeHandle origNode,
int type)
Builds a new Message with the specified source Node origNode and specified type type |
|
DHTMessage(NodeHandle origNode,
int type,
java.lang.String key,
java.lang.String value)
Builds a new Message with the specified source Node and type, containing initially the specified key/value pair. |
|
DHTMessage(NodeHandle origNode,
int type,
java.lang.String key,
java.util.Vector value)
Builds a Message with the specifid source Node, type and key, with value a Vector with all values of the required key. |
Method Summary | |
java.lang.String |
getKey()
|
NodeHandle |
getOriginNode()
|
int |
getType()
|
java.lang.String |
getValue()
|
java.util.Vector |
getVectorValue()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int INSERT
public static final int LOOKUP
Constructor Detail |
public DHTMessage(NodeHandle origNode, int type)
origNode
- type
- public DHTMessage(NodeHandle origNode, int type, java.lang.String key, java.lang.String value)
origNode
- Source node.type
- Type of messagekey
- Key of the pair.value
- Value of the pair.public DHTMessage(NodeHandle origNode, int type, java.lang.String key, java.util.Vector value)
origNode
- Source Node.type
- Type of message.key
- Key of the pair.value
- Value of the pair.Method Detail |
public NodeHandle getOriginNode()
public int getType()
public java.lang.String getKey()
public java.lang.String getValue()
public java.util.Vector getVectorValue()
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |