Package org.glassfish.batch
Class AbstractListCommand
- java.lang.Object
-
- org.glassfish.batch.AbstractListCommand
-
- All Implemented Interfaces:
AdminCommand
- Direct Known Subclasses:
AbstractLongListCommand
,ListBatchRuntimeConfiguration
public abstract class AbstractListCommand extends Object implements AdminCommand
- Author:
- Mahesh Kannan
-
-
Field Summary
Fields Modifier and Type Field Description protected String[]
displayHeaders
protected boolean
header
boolean
isTerse
protected Logger
logger
protected String
outputHeaderList
protected String[]
outputHeaders
protected String
target
-
Constructor Summary
Constructors Constructor Description AbstractListCommand()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
execute(AdminCommandContext context)
Executes the command with the command parameters passed as Properties where the keys are the parameter names and the values are the parameter valuesprotected abstract void
executeCommand(AdminCommandContext context, Properties extraProps)
protected abstract String[]
getAllHeaders()
protected abstract String[]
getDefaultHeaders()
protected String[]
getDisplayHeaders()
protected static jakarta.batch.operations.JobOperator
getJobOperatorFromBatchRuntime()
protected String[]
getOutputHeaders()
protected boolean
isHeaderRequired()
protected boolean
supportsLongFormat()
-
-
-
Method Detail
-
execute
public void execute(AdminCommandContext context)
Description copied from interface:AdminCommand
Executes the command with the command parameters passed as Properties where the keys are the parameter names and the values are the parameter values- Specified by:
execute
in interfaceAdminCommand
- Parameters:
context
- information
-
getJobOperatorFromBatchRuntime
protected static jakarta.batch.operations.JobOperator getJobOperatorFromBatchRuntime()
-
isHeaderRequired
protected boolean isHeaderRequired()
-
supportsLongFormat
protected boolean supportsLongFormat()
-
executeCommand
protected abstract void executeCommand(AdminCommandContext context, Properties extraProps) throws Exception
- Throws:
Exception
-
getAllHeaders
protected abstract String[] getAllHeaders()
-
getDefaultHeaders
protected abstract String[] getDefaultHeaders()
-
getOutputHeaders
protected String[] getOutputHeaders()
-
getDisplayHeaders
protected String[] getDisplayHeaders()
-
-