public class EchoCommandService extends CommandService
echo command which will simply return the received message, with an optional prefix.
This is used mainly for testing and debugging of connectivity to the command processor.| Constructor and Description |
|---|
EchoCommandService() |
| Modifier and Type | Method and Description |
|---|---|
CommandResponse |
execute(Command command,
InputStream in,
OutputStream out)
Executes the given command and returns its response.
|
CommandType[] |
getSupportedCommandTypes()
Supports
EchoCommand.COMMAND_TYPE. |
getCommandServiceId, getConnector, getServiceContainer, getSubsystem, prepareRemoteInputStream, prepareRemoteOutputStream, preRegister, setServiceContainergetLog, getMBeanServer, getObjectName, postDeregister, postRegister, preDeregister, startService, stopServicepublic CommandResponse execute(Command command, InputStream in, OutputStream out)
CommandExecutorcommand - the command to executein - input stream should the executor want to get streamed data from the clientout - output stream should the executor want to stream data to the clientCommandExecutor.execute(Command, java.io.InputStream, java.io.OutputStream)public CommandType[] getSupportedCommandTypes()
EchoCommand.COMMAND_TYPE.CommandServiceMBean.getSupportedCommandTypes()Copyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.