public class FCPPluginServerMessage extends DataCarryingMessage
FCPPluginClientMessage
which parses the on-network format of client
to server messages.FCPPluginMessage
which serves as a container of FCP plugin
messages which are produced and consumed by the actual server and client plugin implementations.
Consider this class here as an internal representation of FCP plugin messages used solely
for encoding server-to-client messages, while the other one is the external representation used
for both server and client messages.
ATTENTION: The on-network name of this message is different: It is . The class
previously had the same name but it was decided to rename it: Previously, it was only allowed
for the server to send messages to the client as a direct reply to a message. Nowadays,
the server can send messages to the client any time he wants, even if there hasn't been a client
message for a long time. So the class was renamed to FCPPluginServerMessage to prevent the
misconception that it would be reply only, and also to make the name symmetrical to class
FCPPluginClientMessage
. To stay backward compatible, it was decided to keep the raw
network message name as is. Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PARAM_PREFIX |
bucket, freeOnSent
BUILD, BULK_CHK_INSERT_REJECTS, BULK_CHK_REQUEST_REJECTS, BULK_SSK_INSERT_REJECTS, BULK_SSK_REQUEST_REJECTS, CODE, HTL, IDENTIFIER, LINK_LENGTHS, LOCAL, LOCATION, OUTPUT_BANDWIDTH, OUTPUT_BANDWIDTH_CLASS, OVERALL_BULK_OUTPUT_CAPACITY_USAGE, PROBE_IDENTIFIER, STORE_SIZE, TYPE, UPTIME_PERCENT
Constructor and Description |
---|
FCPPluginServerMessage(java.lang.String pluginname,
FCPPluginMessage message) |
FCPPluginServerMessage(java.lang.String pluginname,
java.lang.String identifier2,
SimpleFieldSet fs,
Bucket bucket2)
Deprecated.
Use
FCPPluginServerMessage(String, String, SimpleFieldSet, Bucket, Boolean,
String, String) .ATTENTION: Upon removal of this constructor, you should remove the backend constructor so the only remaining constructor is the one which consumes a FCPPluginMessage . Then you should remove all the member variables from this class
which duplicate the members of that class, and instead store a reference to an object of
the other class. |
FCPPluginServerMessage(java.lang.String pluginname,
java.lang.String identifier2,
SimpleFieldSet fs,
Bucket bucket2,
java.lang.Boolean success,
java.lang.String errorCode,
java.lang.String errorMessage)
The parameters match the member variables of
FCPPluginMessage , and thus their JavaDoc
applies. |
Modifier and Type | Method and Description |
---|---|
SimpleFieldSet |
getFieldSet() |
java.lang.String |
getName() |
void |
run(FCPConnectionHandler handler,
Node node)
Do whatever it is that we do with this type of message.
|
getRandomAccessBucket, readFrom, writeData
send
create, create, withListRequestIdentifier
public static final java.lang.String PARAM_PREFIX
@Deprecated public FCPPluginServerMessage(java.lang.String pluginname, java.lang.String identifier2, SimpleFieldSet fs, Bucket bucket2)
FCPPluginServerMessage(String, String, SimpleFieldSet, Bucket, Boolean,
String, String)
.FCPPluginMessage
. Then you should remove all the member variables from this class
which duplicate the members of that class, and instead store a reference to an object of
the other class.public FCPPluginServerMessage(java.lang.String pluginname, FCPPluginMessage message)
pluginname
- The class name of the plugin which is sending the message.PluginManager.getPluginInfoByClassName(String)
.public FCPPluginServerMessage(java.lang.String pluginname, java.lang.String identifier2, SimpleFieldSet fs, Bucket bucket2, java.lang.Boolean success, java.lang.String errorCode, java.lang.String errorMessage)
FCPPluginMessage
, and thus their JavaDoc
applies.public SimpleFieldSet getFieldSet()
getFieldSet
in class FCPMessage
public java.lang.String getName()
getName
in class FCPMessage
public void run(FCPConnectionHandler handler, Node node) throws MessageInvalidException
FCPMessage
run
in class FCPMessage
MessageInvalidException