Package com.redis.riot.core
Class AbstractCommand
java.lang.Object
com.redis.riot.core.BaseCommand
com.redis.riot.core.AbstractCommand
- Direct Known Subclasses:
AbstractJobCommand
public abstract class AbstractCommand
extends BaseCommand
implements org.springframework.beans.factory.InitializingBean, Callable<Integer>
-
Field Summary
FieldsFields inherited from class com.redis.riot.core.BaseCommand
commandSpec
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
call()
protected abstract void
execute()
org.slf4j.Logger
getLog()
void
setLog
(org.slf4j.Logger log) void
setLoggingArgs
(LoggingArgs args)
-
Field Details
-
log
protected org.slf4j.Logger log
-
-
Constructor Details
-
AbstractCommand
public AbstractCommand()
-
-
Method Details
-
call
-
afterPropertiesSet
- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
- Throws:
Exception
-
execute
protected abstract void execute() -
getLoggingArgs
-
setLoggingArgs
-
getLog
public org.slf4j.Logger getLog() -
setLog
public void setLog(org.slf4j.Logger log)
-