|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object i3.dragos.core.AbstractService i3.dragos.core.services.commands.CommandService
public class CommandService
The CommandService provides an interface for standardized optional GraphPool functionality.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface i3.dragos.core.Service |
---|
Service.Result, Service.State |
Constructor Summary | |
---|---|
CommandService()
|
Method Summary | |
---|---|
java.lang.Object |
execute(DataSourceURL url,
java.lang.Class<? extends Command> cmdCls,
java.lang.Object... paramters)
Convenience method to create and process a command, and to return its result. |
static CommandService |
getInstance()
Returns the event manager instance registered by the service manager. |
java.lang.String |
getName()
Returns the name of the service. |
void |
register(DataSourceURL url,
CommandProcessor processor,
CommandProvider provider)
|
CommandProcessor |
retrieveProcessor(DataSourceURL url)
Retrieve a command processor object by the according logical graph pool URL. |
CommandProvider |
retrieveProvider(DataSourceURL url)
Retrieve a command provider object by the according logical graph pool URL. |
Service.Result |
uninitialize()
Uninitializes the services and releases all resources used by the service. |
Methods inherited from class i3.dragos.core.AbstractService |
---|
getState, initialize, resume, start, stop, suspend |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CommandService()
Method Detail |
---|
public static CommandService getInstance()
public java.lang.String getName()
public void register(DataSourceURL url, CommandProcessor processor, CommandProvider provider)
url
- processor
- provider
- public CommandProcessor retrieveProcessor(DataSourceURL url)
url
- the logical graph pool URL.
null
if none is registered.public CommandProvider retrieveProvider(DataSourceURL url)
url
- the logical graph pool URL.
null
if none is registered.public java.lang.Object execute(DataSourceURL url, java.lang.Class<? extends Command> cmdCls, java.lang.Object... paramters) throws java.lang.IllegalStateException, ExecutionAbortedException
url
- the graph pool's URL to operate on.cmdCls
- the type of command to execute.paramters
- parameters required for command creation.
ExecutionAbortedException
java.lang.IllegalStateException
public Service.Result uninitialize()
AbstractService
uninitialize
in interface Service
uninitialize
in class AbstractService
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |