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 -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final org.slf4j.LoggerLogger available to subclasses -
Constructor Summary
ConstructorsConstructorDescriptionAbstractCommand(CommandRegistry registry) AbstractCommand(CommandRegistry registry, boolean isolated) -
Method Summary
Modifier and TypeMethodDescriptionprotected Stringprotected Stringprotected CommandResultprotected CommandResultprotected CommandResultprotected StringbooleanReturns whether it is a command that must be guaranteed not to be executed at the same time as another command.booleanprotected CommandResultprotected StringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.aspectran.daemon.command.Command
execute, getDescriptor
-
Field Details
-
logger
protected final org.slf4j.Logger loggerLogger available to subclasses
-
-
Constructor Details
-
AbstractCommand
-
AbstractCommand
-
-
Method Details
-
getCommandRegistry
-
isIsolated
public boolean isIsolated()Description copied from interface:CommandReturns whether it is a command that must be guaranteed not to be executed at the same time as another command.- Specified by:
isIsolatedin 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
-