Package com.aspectran.daemon.command
Interface Command
- All Known Implementing Classes:
AbstractCommand
,ComponentCommand
,InvokeActionCommand
,JettyCommand
,PollingIntervalCommand
,QuitCommand
,RestartCommand
,SysInfoCommand
,TransletCommand
,UndertowCommand
public interface Command
The Command interface is there to allow Commander to delegate tasks.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface
An interface that can be used to describe the functionality of the command implementation. -
Method Summary
Modifier and TypeMethodDescriptionexecute
(CommandParameters parameters) This method will be called as the starting point to execute the logic for the action mapped to this command.This method returns an instance of Command.Descriptor.boolean
Returns whether it is a command that must be guaranteed not to be executed at the same time as another command.
-
Method Details
-
isIsolated
boolean isIsolated()Returns whether it is a command that must be guaranteed not to be executed at the same time as another command.- Returns:
- true if the command should ensure that it is not executed at the same time as another command; false otherwise
-
execute
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
-