Class CommandLineExecutorComponent
java.lang.Object
org.nuxeo.runtime.model.DefaultComponent
org.nuxeo.ecm.platform.commandline.executor.service.CommandLineExecutorComponent
- All Implemented Interfaces:
CommandLineExecutorService
,Adaptable
,Component
,Extensible
,TimestampedService
public class CommandLineExecutorComponent
extends DefaultComponent
implements CommandLineExecutorService
POJO implementation of the
CommandLineExecutorService
interface. Also handles the Extension Point logic.- Author:
- tiry
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Map
<String, CommandAvailability> protected Map
<String, CommandLineDescriptor> static final String
static final String
protected EnvironmentDescriptor
protected Map
<String, EnvironmentDescriptor> static final String
static final String
static final String
protected Map
<String, CommandTester> Fields inherited from class org.nuxeo.runtime.model.DefaultComponent
lastModified, name
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecCommand
(String commandName, CmdParameters params) getCommandAvailability
(String commandName) static CommandLineDescriptor
getCommandDescriptor
(String commandName) Deprecated.getCommandLineDescriptor
(String commandName) void
start
(ComponentContext context) Start the component.void
stop
(ComponentContext context) Stop the component.Methods inherited from class org.nuxeo.runtime.model.DefaultComponent
activate, addRuntimeMessage, addRuntimeMessage, deactivate, getAdapter, getDescriptor, getDescriptors, getLastModified, getRegistry, register, registerContribution, registerExtension, setLastModified, setModifiedNow, setName, unregister, unregisterContribution, unregisterExtension
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.nuxeo.runtime.model.Component
getApplicationStartedOrder
-
Field Details
-
EP_ENV
- See Also:
-
EP_CMD
- See Also:
-
EP_CMDTESTER
- See Also:
-
DEFAULT_TESTER
- See Also:
-
DEFAULT_EXECUTOR
- See Also:
-
env
-
envDescriptors
-
testers
-
commandDescriptors
-
commandAvailabilities
-
executors
-
-
Constructor Details
-
CommandLineExecutorComponent
public CommandLineExecutorComponent()
-
-
Method Details
-
start
Description copied from interface:Component
Start the component. This method is called after all the components were resolved and activated- Specified by:
start
in interfaceComponent
- Overrides:
start
in classDefaultComponent
-
stop
Description copied from interface:Component
Stop the component.- Specified by:
stop
in interfaceComponent
- Overrides:
stop
in classDefaultComponent
-
execCommand
- Specified by:
execCommand
in interfaceCommandLineExecutorService
- Throws:
CommandNotAvailable
-
getCommandAvailability
- Specified by:
getCommandAvailability
in interfaceCommandLineExecutorService
-
getRegistredCommands
- Specified by:
getRegistredCommands
in interfaceCommandLineExecutorService
-
getAvailableCommands
- Specified by:
getAvailableCommands
in interfaceCommandLineExecutorService
-
getCommandLineDescriptor
- Specified by:
getCommandLineDescriptor
in interfaceCommandLineExecutorService
-
getCommandDescriptor
Deprecated.since 11.4, use instance methodgetCommandLineDescriptor(java.lang.String)
instead -
getDefaultCmdParameters
- Specified by:
getDefaultCmdParameters
in interfaceCommandLineExecutorService
- Returns:
- a new
CmdParameters
pre-filled with commonly used parameters such as the tmp dir.
-
getCommandLineDescriptor(java.lang.String)
instead