public class RpcOutput extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
RpcOutput.Status |
| Constructor and Description |
|---|
RpcOutput(RpcOutput.Status status,
DataNode data)
Creates an instance of RpcOutput.
|
RpcOutput(String messageId,
RpcOutput.Status status,
DataNode data)
Creates an instance of RpcOutput.
|
| Modifier and Type | Method and Description |
|---|---|
DataNode |
data()
Returns RPC output.
|
String |
messageId()
Returns messageId of the Rpc request.
|
void |
messageId(String msgId)
Sets the messageId in the Rpc output.
|
RpcOutput.Status |
status()
Returns RPC status.
|
public RpcOutput(RpcOutput.Status status, DataNode data)
status - of RPC executiondata - of RPC executionpublic RpcOutput(String messageId, RpcOutput.Status status, DataNode data)
messageId - of the Rpc requeststatus - of RPC executiondata - of RPC executionpublic String messageId()
public RpcOutput.Status status()
public DataNode data()
public void messageId(String msgId)
msgId - the msgId to be set in the Rpc outputCopyright © 2018. All rights reserved.