|
||||||||||
| 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.echo.EchoCommand
public class EchoCommand
The ECHO command used for mainly testing and debugging connectivity.
| Field Summary | |
|---|---|
static CommandType |
COMMAND_TYPE
command type constant identifying this type of command |
static ParameterDefinition |
PARAM_MESSAGE
the required command parameter name that identifies the message to echo back to the client |
static ParameterDefinition |
PARAM_PREFIX
the optional command parameter name that identifies a string to prefix the echo message |
| Constructor Summary | |
|---|---|
EchoCommand()
Constructor for EchoCommand. |
|
EchoCommand(Command commandToTransform)
Constructor for EchoCommand. |
|
EchoCommand(Map<String,Object> commandParameters)
Constructor for EchoCommand. |
|
| 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. |
String |
getMessage()
Gets the message parameter value that will be echoed back to the client. |
String |
getPrefix()
Gets the (optional) parameter whose value will be used by the server to prefix the echoed message. |
void |
setMessage(String message)
Sets the message that will be echoed back to the client. |
void |
setPrefix(String prefix)
An optional parameter whose value will be used by the server to prefix the echoed message. |
| Methods inherited from class org.rhq.enterprise.communications.command.AbstractCommand |
|---|
allowAnyParameter, checkParameterValidity, convertParameters, getCommandType, getConfiguration, getParameterDefinition, getParameterDefinitions, getParameterValue, getParameterValues, getParameterValuesInternalMap, hasParameterValue, initializeMetadata, isCommandInResponse, removeParameterValue, removeParameterValues, setCommandInResponse, 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_MESSAGE
public static final ParameterDefinition PARAM_PREFIX
| Constructor Detail |
|---|
public EchoCommand()
throws IllegalArgumentException,
InvalidParameterDefinitionException
EchoCommand.
IllegalArgumentException
InvalidParameterDefinitionExceptionAbstractCommand.AbstractCommand()
public EchoCommand(Map<String,Object> commandParameters)
throws IllegalArgumentException,
InvalidParameterDefinitionException
EchoCommand.
IllegalArgumentException
InvalidParameterDefinitionExceptionAbstractCommand.AbstractCommand(Map)public EchoCommand(Command commandToTransform)
EchoCommand.
AbstractCommand.AbstractCommand(Command)| Method Detail |
|---|
public String getMessage()
public void setMessage(String message)
message - a message that the server will echo back to the clientpublic String getPrefix()
echoed message.
public void setPrefix(String prefix)
echoed message.
prefix - string to be prefixed to the echo message when it is returned to the clientprotected 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 | |||||||||