org.rhq.enterprise.communications.command.impl.identify.server
Class IdentifyCommandService

java.lang.Object
  extended by org.rhq.enterprise.communications.command.server.CommandMBean
      extended by org.rhq.enterprise.communications.command.server.CommandService
          extended by org.rhq.enterprise.communications.command.impl.identify.server.IdentifyCommandService
All Implemented Interfaces:
MBeanRegistration, CommandExecutor, CommandServiceMBean

public class IdentifyCommandService
extends CommandService

Processes a client request to identify this server.

Author:
John Mazzitelli

Constructor Summary
IdentifyCommandService()
           
 
Method Summary
 CommandResponse execute(Command command, InputStream in, OutputStream out)
          Executes the given command and returns its response.
 CommandType[] getSupportedCommandTypes()
          Supports IdentifyCommand.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

IdentifyCommandService

public IdentifyCommandService()
Method Detail

execute

public CommandResponse execute(Command command,
                               InputStream in,
                               OutputStream out)
Description copied from interface: CommandExecutor
Executes the given command and returns its response.

Parameters:
command - the command to execute
in - input stream should the executor want to get streamed data from the client
out - output stream should the executor want to stream data to the client
Returns:
the results of the command execution
See Also:
CommandExecutor.execute(Command, java.io.InputStream, java.io.OutputStream)

getSupportedCommandTypes

public CommandType[] getSupportedCommandTypes()
Supports IdentifyCommand.COMMAND_TYPE.

Returns:
array of supported command types
See Also:
CommandServiceMBean.getSupportedCommandTypes()


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.