Package com.redis.riot.core
Class AbstractCommand<C extends ExecutionContext>
java.lang.Object
com.redis.riot.core.BaseCommand
com.redis.riot.core.AbstractCommand<C>
- Direct Known Subclasses:
AbstractJobCommand
public abstract class AbstractCommand<C extends ExecutionContext>
extends BaseCommand
implements Callable<Integer>
-
Field Summary
FieldsFields inherited from class com.redis.riot.core.BaseCommand
commandSpec
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncall()
protected abstract void
protected abstract C
org.slf4j.Logger
getLog()
org.slf4j.event.Level
logLevel()
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
- Specified by:
call
in interfaceCallable<C extends ExecutionContext>
- Throws:
Exception
-
executionContext
-
logLevel
public org.slf4j.event.Level logLevel() -
execute
-
getLoggingArgs
-
setLoggingArgs
-
getLog
public org.slf4j.Logger getLog() -
setLog
public void setLog(org.slf4j.Logger log)
-