public interface CommandServiceMBean extends CommandExecutor
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.
CommandService| Modifier and Type | Method and Description |
|---|---|
CommandType[] |
getSupportedCommandTypes()
Returns a set of
CommandType identifiers that this service supports. |
executeCommandType[] getSupportedCommandTypes()
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).
Copyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.