Package com.aspectran.daemon.command
Interface Command
-
- All Known Implementing Classes:
AbstractCommand
,BeanMethodActionCommand
,ComponentCommand
,JettyCommand
,PollingIntervalCommand
,QuitCommand
,RestartCommand
,TransletCommand
public interface Command
The Command interface is there to allow Commander to delegate tasks.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
Command.Descriptor
An interface that can be used to describe the the functionality of the command implementation.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CommandResult
execute(CommandParameters parameters)
This method will be called as the starting point to execute the logic for the action mapped to this command.Command.Descriptor
getDescriptor()
This method returns an instance of Command.Descriptor.boolean
isIsolated()
-
-
-
Method Detail
-
isIsolated
boolean isIsolated()
-
execute
CommandResult execute(CommandParameters parameters)
This method will be called as the starting point to execute the logic for the action mapped to this command.- Parameters:
parameters
- the command parameters- Returns:
- the message output to the console as a result of an executed command
-
getDescriptor
Command.Descriptor getDescriptor()
This method returns an instance of Command.Descriptor. The descriptor is meta information about the command.- Returns:
- a Descriptor that is meta information about the command
-
-