|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rhq.enterprise.communications.command.AbstractCommand
org.rhq.enterprise.communications.command.impl.stream.RemoteInputStreamCommand
public class RemoteInputStreamCommand
The command to be sent when a remote invocation on an input stream is to be made.
| Field Summary | |
|---|---|
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 input stream that is to be invoked. |
| Constructor Summary | |
|---|---|
RemoteInputStreamCommand()
Constructor for RemoteInputStreamCommand. |
|
RemoteInputStreamCommand(Command commandToTransform)
Constructor for RemoteInputStreamCommand. |
|
RemoteInputStreamCommand(Map<String,Object> commandParameters)
Constructor for RemoteInputStreamCommand. |
|
| Method Summary | |
|---|---|
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 input stream that is being invoked by this command. |
boolean |
isCommandInResponse()
The RemoteInputStreamCommandResponse must have the command in it in order to support its mimicing of pass-by-reference semantics since the command contains the byte buffer that will contain the bytes when reading the stream. |
void |
setCommandInResponse(boolean flag)
The RemoteInputStreamCommandResponse must have the command in it in order to support its mimicing of pass-by-reference semantics since the command contains the byte buffer that will contain the bytes when reading the stream. |
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 input stream that is being invoked by this command. |
| Methods inherited from class org.rhq.enterprise.communications.command.AbstractCommand |
|---|
allowAnyParameter, checkParameterValidity, convertParameters, getCommandType, getConfiguration, getParameterDefinition, getParameterDefinitions, getParameterValue, getParameterValues, getParameterValuesInternalMap, hasParameterValue, initializeMetadata, removeParameterValue, removeParameterValues, setParameterValue, setParameterValuesInternalMap, toString, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final CommandType COMMAND_TYPE
public static final ParameterDefinition PARAM_INVOCATION
public static final ParameterDefinition PARAM_STREAM_ID
| Constructor Detail |
|---|
public RemoteInputStreamCommand()
throws IllegalArgumentException,
InvalidParameterDefinitionException
RemoteInputStreamCommand.
IllegalArgumentException
InvalidParameterDefinitionExceptionAbstractCommand.AbstractCommand()
public RemoteInputStreamCommand(Map<String,Object> commandParameters)
throws IllegalArgumentException,
InvalidParameterDefinitionException
RemoteInputStreamCommand.
IllegalArgumentException
InvalidParameterDefinitionExceptionAbstractCommand.AbstractCommand(Map)public RemoteInputStreamCommand(Command commandToTransform)
RemoteInputStreamCommand.
AbstractCommand.AbstractCommand(Command)| Method Detail |
|---|
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()
true always.
isCommandInResponse in interface CommandisCommandInResponse in class AbstractCommandtrueCommand.isCommandInResponse()public void setCommandInResponse(boolean flag)
true, 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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||