public class RemoteOutputStreamCommand extends AbstractCommand
| Modifier and Type | Field and Description |
|---|---|
static CommandType |
COMMAND_TYPE
command type constant identifying this type of command
|
static ParameterDefinition |
PARAM_INVOCATION
the required command parameter name containing the NameBasedInvocation object to describe what method to invoke
on the remote stream.
|
static ParameterDefinition |
PARAM_STREAM_ID
the required command parameter name containing the opaque identification object used to specify the particular
output stream that is to be invoked.
|
| Constructor and Description |
|---|
RemoteOutputStreamCommand()
Constructor for
RemoteOutputStreamCommand. |
RemoteOutputStreamCommand(Command commandToTransform)
Constructor for
RemoteOutputStreamCommand. |
RemoteOutputStreamCommand(Map<String,Object> commandParameters)
Constructor for
RemoteOutputStreamCommand. |
| Modifier and Type | Method and Description |
|---|---|
protected CommandType |
buildCommandType()
Builds the command type of this command.
|
protected ParameterDefinition[] |
buildParameterDefinitions()
Builds the set of parameter definitions that this command will use.
|
org.jboss.remoting.invocation.NameBasedInvocation |
getNameBasedInvocation()
Gets the invocation information that describes what needs to be invoked on the remote POJO.
|
Long |
getStreamId()
Get the opaque ID object used to identify the output stream that is being invoked by this command.
|
boolean |
isCommandInResponse()
The RemoteOutputStreamCommandResponse should not have the command in it in order to avoid returning back
the byte array that was written (no sense in returning a copy of the byte array, would only decrease performance
and increase the size of the over-the-wire response).
|
void |
setCommandInResponse(boolean flag)
The RemoteOutputStreamCommandResponse should not have the command in it in order to avoid returning back
the byte array that was written (no sense in returning a copy of the byte array, would only decrease performance
and increase the size of the over-the-wire response).
|
void |
setNameBasedInvocation(org.jboss.remoting.invocation.NameBasedInvocation invocation)
Sets the invocation information that describes what needs to be invoked on the remote POJO.
|
void |
setStreamId(Long id)
Sets the opaque ID object used to identify the output stream that is being invoked by this command.
|
allowAnyParameter, checkParameterValidity, convertParameters, getCommandType, getConfiguration, getParameterDefinition, getParameterDefinitions, getParameterValue, getParameterValues, getParameterValuesInternalMap, hasParameterValue, initializeMetadata, removeParameterValue, removeParameterValues, setParameterValue, setParameterValuesInternalMap, toString, toStringpublic static final CommandType COMMAND_TYPE
public static final ParameterDefinition PARAM_INVOCATION
public static final ParameterDefinition PARAM_STREAM_ID
public RemoteOutputStreamCommand()
throws IllegalArgumentException,
InvalidParameterDefinitionException
RemoteOutputStreamCommand.public RemoteOutputStreamCommand(Map<String,Object> commandParameters) throws IllegalArgumentException, InvalidParameterDefinitionException
RemoteOutputStreamCommand.public RemoteOutputStreamCommand(Command commandToTransform)
RemoteOutputStreamCommand.public org.jboss.remoting.invocation.NameBasedInvocation getNameBasedInvocation()
public void setNameBasedInvocation(org.jboss.remoting.invocation.NameBasedInvocation invocation)
invocation - the invocation informationpublic Long getStreamId()
public void setStreamId(Long id)
id - stream identifierpublic boolean isCommandInResponse()
false always.isCommandInResponse in interface CommandisCommandInResponse in class AbstractCommandfalseCommand.isCommandInResponse()public void setCommandInResponse(boolean flag)
false, no matter that flag's value is.setCommandInResponse in interface CommandsetCommandInResponse in class AbstractCommandflag - true to get this object returned with the command response.AbstractCommand.setCommandInResponse(boolean)protected CommandType buildCommandType()
AbstractCommandnull.
This method is called by the command's constructors.
buildCommandType in class AbstractCommandnullAbstractCommand.buildCommandType()protected ParameterDefinition[] buildParameterDefinitions()
AbstractCommandnull if the command accepts any and all parameters, regardless of name or typeThis method is called by the command's constructors.
buildParameterDefinitions in class AbstractCommandnullAbstractCommand.buildParameterDefinitions()Copyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.