Package com.aspectran.daemon.command
Class AbstractCommand
java.lang.Object
com.aspectran.daemon.command.AbstractCommand
- All Implemented Interfaces:
Command
- Direct Known Subclasses:
ComponentCommand
,InvokeActionCommand
,JettyCommand
,PollingIntervalCommand
,QuitCommand
,RestartCommand
,SysInfoCommand
,TransletCommand
,UndertowCommand
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.aspectran.daemon.command.Command
Command.Descriptor
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractCommand
(CommandRegistry registry) AbstractCommand
(CommandRegistry registry, boolean isolated) -
Method Summary
Modifier and TypeMethodDescriptionprotected String
protected String
protected CommandResult
protected CommandResult
protected CommandResult
protected String
boolean
Returns whether it is a command that must be guaranteed not to be executed at the same time as another command.boolean
protected CommandResult
protected String
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.aspectran.daemon.command.Command
execute, getDescriptor
-
Constructor Details
-
AbstractCommand
-
AbstractCommand
-
-
Method Details
-
getCommandRegistry
-
isIsolated
public boolean isIsolated()Description copied from interface:Command
Returns whether it is a command that must be guaranteed not to be executed at the same time as another command.- Specified by:
isIsolated
in interfaceCommand
- Returns:
- true if the command should ensure that it is not executed at the same time as another command; false otherwise
-
getDaemonService
-
isServiceAvailable
public boolean isServiceAvailable() -
debug
-
info
-
warn
-
error
-
success
-
failed
-
failed
-
failed
-