public static enum Message.Type extends Enum<Message.Type>
| Enum Constant and Description |
|---|
CANCEL |
DENIED |
EXCEPTION |
NOT_FOUND |
OK
The request was processed and everything is alright
|
PARTIALLY_OK
When the called node has
PeerAddress.isSlow() activated, the relay peer returns a partial ok |
REQUEST_1
the normal request
for
RPC.Commands.NEIGHBOR means check for put (no digest) for tracker and storage
for TASK is submit new task
for RPC.Commands.RELAY is for setup
for RPC.Commands.RCON means forward reverse connection to unreachable peer
|
REQUEST_2
for
RPC.Commands.GET returns the extended digest (hashes of all stored data)
for RPC.Commands.PUT/RPC.Commands.ADD/COMPARE_PUT means protect domain
for RPC.Commands.REMOVE means send back results
for RAW_DATA means serialize object
for RPC.Commands.NEIGHBOR means check for get (with digest) for storage
for TASK is status
for RPC.Commands.RELAY means send piggybacked message
for RPC.Commands.RCON open TCP channel and transmit PeerConnection
|
REQUEST_3
for
RPC.Commands.GET returns a Bloom filter
for RPC.Commands.PUT means put if absent
for COMPARE_PUT means partial (partial means that put those data that match compare, ignore
others)
for TASK is send back result
for RPC.Commands.RELAY means update the routing table
for RPC.Commands.RCON use open PeerConnection to transmit original message
|
REQUEST_4
for
RPC.Commands.GET returns a range (min/max)
for RPC.Commands.PUT for PUT means protect domain and put if absent
for COMPARE_PUT means partial and protect domain
for RPC.Commands.NEIGHBOR means check for put (with digest) for task
for RPC.Commands.RELAY fetch the buffer from the relay peer (Android only)
|
REQUEST_5
for
RPC.Commands.RELAY means that a late response arrived at the relay peer (slow peers
only)
|
REQUEST_FF_1
for
RPC.Commands.PEX means fire and forget, coming from mesh
|
REQUEST_FF_2
for
RPC.Commands.PEX means fire and forget, coming from primary
|
RESERVED1
Still unused
|
UNKNOWN_ID |
| Modifier and Type | Method and Description |
|---|---|
static Message.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Message.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Message.Type REQUEST_1
RPC.Commands.NEIGHBOR means check for put (no digest) for tracker and storageRPC.Commands.RELAY is for setupRPC.Commands.RCON means forward reverse connection to unreachable peerpublic static final Message.Type REQUEST_2
RPC.Commands.GET returns the extended digest (hashes of all stored data)RPC.Commands.PUT/RPC.Commands.ADD/COMPARE_PUT means protect domainRPC.Commands.REMOVE means send back resultsRPC.Commands.NEIGHBOR means check for get (with digest) for storageRPC.Commands.RELAY means send piggybacked messageRPC.Commands.RCON open TCP channel and transmit PeerConnectionpublic static final Message.Type REQUEST_3
RPC.Commands.GET returns a Bloom filterRPC.Commands.PUT means put if absentRPC.Commands.RELAY means update the routing tableRPC.Commands.RCON use open PeerConnection to transmit original messagepublic static final Message.Type REQUEST_4
RPC.Commands.GET returns a range (min/max)RPC.Commands.PUT for PUT means protect domain and put if absentRPC.Commands.NEIGHBOR means check for put (with digest) for taskRPC.Commands.RELAY fetch the buffer from the relay peer (Android only)public static final Message.Type REQUEST_5
RPC.Commands.RELAY means that a late response arrived at the relay peer (slow peers
only)public static final Message.Type REQUEST_FF_1
RPC.Commands.PEX means fire and forget, coming from meshpublic static final Message.Type REQUEST_FF_2
RPC.Commands.PEX means fire and forget, coming from primarypublic static final Message.Type OK
public static final Message.Type PARTIALLY_OK
PeerAddress.isSlow() activated, the relay peer returns a partial okpublic static final Message.Type NOT_FOUND
public static final Message.Type DENIED
public static final Message.Type UNKNOWN_ID
public static final Message.Type EXCEPTION
public static final Message.Type CANCEL
public static final Message.Type RESERVED1
public static Message.Type[] values()
for (Message.Type c : Message.Type.values()) System.out.println(c);
public static Message.Type valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2014. All rights reserved.