|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CommandServiceDirectoryMBean
The public interface to the directory that provides information on what command types a
particular command service supports.
If a command type is supported by a command service, it is said that the command service is a provider of that command type.
Each command service belongs to a particular subsystem - a subsystem is made up of one or more command services.
Subsystems are identified by simple String names - with the unnamed, anonymous subsystem being
identified by the null subsystem name.
| Method Summary | |
|---|---|
CommandServiceDirectoryEntry[] |
getAllEntries()
This will return all the entries for all subsystems - in other words, all the supported command types and the command services that provide them in all subsystems. |
boolean |
getAllowDynamicDiscovery()
This attribute will indicate if new commands are allowed to be added dynamically at runtime. |
CommandServiceDirectoryEntry |
getCommandTypeProvider(String subsystem,
CommandType commandType)
Given a particular CommandType and subsystem, this method will return an entry that gives you the
ObjectName to a command service that provides support for that command type
within that subsystem. |
CommandServiceDirectoryEntry[] |
getSubsystemEntries(String subsystem)
Given a subsystem, this will return all the entries for that subsystem - in other words, all the supported command types and the command services that provide them. |
void |
setAllowDynamicDiscovery(boolean flag)
This attribute will indicate if new commands are allowed to be added dynamically at runtime. |
| Method Detail |
|---|
CommandServiceDirectoryEntry getCommandTypeProvider(String subsystem,
CommandType commandType)
CommandType and subsystem, this method will return an entry that gives you the
ObjectName to a command service that provides support for that command type
within that subsystem.
If no command service provider exists for the given command type within the given subsystem, null
is returned.
subsystem may be null to denote the unnamed, anonymous subsystem.
subsystem - the subsystem to look in (may be null)commandType - find a provider for this command type
null if no provider existsCommandServiceDirectoryEntry[] getSubsystemEntries(String subsystem)
If no command service providers exists for the given subsystem, an empty array is returned.
subsystem may be null to denote the unnamed, anonymous subsystem.
subsystem - the subsystem to look in (may be null)
CommandServiceDirectoryEntry[] getAllEntries()
If no command service providers exists, an empty array is returned.
boolean getAllowDynamicDiscovery()
false, only those command services currently installed at the time of this directory's registration will
be found in the directory. If true, the directory will add new command services to the directory as
they come online.
Note that this has no effect on dynamically discovering the removal of command services. The directory will always detect the removal of commands and remove their entries from the directory.
true will allow the directory to discovery changes during runtime. false means
only those command services already in existence at the time the directory service is registered will be
stored in the directory.void setAllowDynamicDiscovery(boolean flag)
false, only those command services currently installed at the time of this directory's registration will
be found in the directory. If true, the directory will add new command services to the directory as
they come online.
Note that this has no effect on dynamically discovering the removal of command services. The directory will always detect the removal of commands and remove their entries from the directory.
flag - true will allow the directory to discovery changes during runtime. false
means only those command services already in existence at the time the directory service is
registered will be stored in the directory.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||