public interface ICommandManager extends IComponentProvider, IRemoteCommandTransport
ATTR_APP_NAME, ATTR_BEG_QUERY, ATTR_END_QUERY, ATTR_MID_QUERY, BIZPOLICY_MANAGER, CACHE_PROVIDER, COMMAND_PROVIDER, COMPONENTS_QUERY, INSTALL_PROVIDER, MECH_PROVIDER, METACONTEXT_PROVIDER, PHASE_PROVIDER, POLICY_PROVIDER, SEARCH_PROVIDER
Modifier and Type | Method and Description |
---|---|
void |
checkAccess(IContext context,
ICommand command) |
ICommand |
getCommand(IContext context,
String verb)
Gets the mechanics for a particular verb
|
ICommand |
getCommand(IContext context,
String verb,
IURI id)
Gets the command for a particular verb and resource id.
|
ICommand |
getCommand(IContext context,
String verb,
String type)
Gets the mechanics for a particular verb and type.
|
IRemoteCommandTransport |
getRemoteCommandTransport(String name)
Gets the remote command transport that is registered under the specified name
|
List<ICommandResponseEntry> |
invokeClusterCommand(IContext context,
ICommand command,
ICommandBean commandBean)
Invoke a command on all live cluster nodes(except current one)
Note, this will currently use the default
IRemoteCommandTransport |
exists, getComponent, getComponent, getComponent, getComponentQueryString, getComponents, getDefaultComponent, getLogger, initDeferredWebAppComponents, lookup, registerComponent, reloadComponent, reloadComponent, unregisterComponent, upgradeComponentDataFromBootstrapComponentData
acquireURI, acquireURI
invokeRemoteCommand
getComponentData, getComponentName, getComponentProvider, getURI, isInitialized, setComponentData, setComponentProvider
init, shutdown
ICommand getCommand(IContext context, String verb) throws BizException
context
- the current user's context requesting the commandverb
- an arbitrary verbBizException
ICommand getCommand(IContext context, String verb, String type) throws BizException
context
- the current user's context requesting the commandverb
- an arbitrary verbtype
- describes the type of resource. May be NullBizException
ICommand getCommand(IContext context, String verb, IURI id) throws BizException
context
- the current user's context requesting the commandverb
- an arbitrary verbid
- uniquely describes this resource. Cannot be nullBizException
List<ICommandResponseEntry> invokeClusterCommand(IContext context, ICommand command, ICommandBean commandBean)
IRemoteCommandTransport
context
- the context to invoke the commandcommand
- which command to invokecommandBean
- the args for the commandvoid checkAccess(IContext context, ICommand command) throws BizException
context
- command
- BizException
IRemoteCommandTransport getRemoteCommandTransport(String name) throws BizException
name
- the name of the component to lookupBizException