public class GenericCommandClient extends AbstractCommandClient
setCommandType(CommandType) to set the type of command
prior to invoking via the AbstractCommandClient.invoke(Map) method. This class can be used to send any command via the
AbstractCommandClient.invoke(Command) method (without the need to call setCommandType(CommandType).| Constructor and Description |
|---|
GenericCommandClient() |
GenericCommandClient(RemoteCommunicator communicator) |
| Modifier and Type | Method and Description |
|---|---|
Command |
createNewCommand(Map<String,Object> params)
Returns a
GenericCommand object that can be used as a generic command. |
void |
setCommandType(CommandType commandType)
Sets the command type to be used when this client creates new commands via the
createNewCommand(Map)
method. |
connectRemoteCommunicator, disconnectRemoteCommunicator, getRemoteCommunicator, invoke, invoke, setRemoteCommunicatorpublic GenericCommandClient()
public GenericCommandClient(RemoteCommunicator communicator)
public Command createNewCommand(Map<String,Object> params)
GenericCommand object that can be used as a generic command. Callers should ensure that they
set the command type prior to calling this method.params - contains parameter values keyed on the parameter names (may be null)Command instanceCommandClient.createNewCommand(Map)public void setCommandType(CommandType commandType)
createNewCommand(Map)
method.commandType - the command type to use when creating new commands.Copyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.