|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rhq.enterprise.communications.command.server.CommandMBean
org.rhq.enterprise.communications.command.server.CommandService
org.rhq.enterprise.communications.command.impl.echo.server.EchoCommandService
public class EchoCommandService
Performs the 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 Summary | |
|---|---|
EchoCommandService()
|
|
| Method Summary | |
|---|---|
CommandResponse |
execute(Command command,
java.io.InputStream in,
java.io.OutputStream out)
Executes the given command and returns its response. |
CommandType[] |
getSupportedCommandTypes()
Supports EchoCommand.COMMAND_TYPE. |
| Methods inherited from class org.rhq.enterprise.communications.command.server.CommandService |
|---|
getCommandServiceId, getConnector, getServiceContainer, getSubsystem, prepareRemoteInputStream, prepareRemoteOutputStream, preRegister, setServiceContainer |
| Methods inherited from class org.rhq.enterprise.communications.command.server.CommandMBean |
|---|
getLog, getMBeanServer, getObjectName, postDeregister, postRegister, preDeregister, startService, stopService |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EchoCommandService()
| Method Detail |
|---|
public CommandResponse execute(Command command,
java.io.InputStream in,
java.io.OutputStream out)
CommandExecutor
command - 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 client
CommandExecutor.execute(Command, java.io.InputStream, java.io.OutputStream)public CommandType[] getSupportedCommandTypes()
EchoCommand.COMMAND_TYPE.
CommandServiceMBean.getSupportedCommandTypes()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||