|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectplanet.test.symphonyDHT.SymphonyDHTMessage
Message to be used at ChordDHT 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 | |
SymphonyDHTMessage(Id source,
int type)
Builds a new Message with the specified source Node origNode and specified type type |
|
SymphonyDHTMessage(Id source,
int type,
java.lang.String key,
java.lang.String value)
|
|
SymphonyDHTMessage(Id source,
int type,
java.lang.String key,
java.lang.String value,
java.util.Vector MultiValue)
Builds a new Message with the specified source Node and type, key/value pairs. |
|
SymphonyDHTMessage(Id source,
int type,
java.lang.String key,
java.util.Vector MultiValue)
|
Method Summary | |
java.lang.String |
getKey()
|
Id |
getSource()
|
int |
getType()
|
java.lang.String |
getValue()
|
java.util.Vector |
getVectorValue()
|
void |
setSource(Id source)
|
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 SymphonyDHTMessage(Id source, int type)
source
- The source node where a remote or local application launched an INSERT/LOOKUP operation.type
- Type of DHT operation: INSERT/LOOKUP.public SymphonyDHTMessage(Id source, int type, java.lang.String key, java.lang.String value, java.util.Vector MultiValue)
source
- The source node where a remote or local application launched an INSERT/LOOKUP operation.type
- Type of DHT operation: INSERT/LOOKUPkey
- Key of the pair.value
- Value of the pair.MultiValue
- List of hash collision for the same key stored on the same node's DHT repository.public SymphonyDHTMessage(Id source, int type, java.lang.String key, java.lang.String value)
public SymphonyDHTMessage(Id source, int type, java.lang.String key, java.util.Vector MultiValue)
Method Detail |
public Id getSource()
public void setSource(Id source)
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 |