org.rhq.enterprise.communications.command.server
Interface CommandServiceMBean

All Superinterfaces:
CommandExecutor
All Known Subinterfaces:
RemotePojoInvocationCommandServiceMBean
All Known Implementing Classes:
CommandService, EchoCommandService, IdentifyCommandService, MultipleCommandService, RemoteInputStreamCommandService, RemoteOutputStreamCommandService, RemotePojoInvocationCommandService

public interface CommandServiceMBean
extends CommandExecutor

The interface that all command services implement. Command services are responsible for actually executing commands and returning their results.

This should be the MBean interface for all command services - there is no need for each service to have its own xxxMBean interface so long as the command service implementation extends CommandService.

Author:
John Mazzitelli
See Also:
CommandService

Method Summary
 CommandType[] getSupportedCommandTypes()
          Returns a set of CommandType identifiers that this service supports.
 
Methods inherited from interface org.rhq.enterprise.communications.command.CommandExecutor
execute
 

Method Detail

getSupportedCommandTypes

CommandType[] getSupportedCommandTypes()
Returns a set of CommandType identifiers that this service supports. This will identify which commands this command service provides (i.e. it indicates the commands this service can execute).

The returned array should be fixed during the lifetime of this service (or at least during its registration in an MBeanServer). Changes to the supported command types during runtime will not be detected once the CommandServiceDirectory has discovered this service. As a corollary to this rule, this method must be ready to provide the array of support command types at the time it is registered on an MBeanServer (in other words, this method will be called, specifically by the directory, as soon as this service is registered).

Returns:
array of supported command types


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