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[]displayHeadersprotected booleanheaderbooleanisTerseprotected Loggerloggerprotected StringoutputHeaderListprotected String[]outputHeadersprotected Stringtarget
-
Constructor Summary
Constructors Constructor Description AbstractListCommand()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidexecute(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 voidexecuteCommand(AdminCommandContext context, Properties extraProps)protected abstract String[]getAllHeaders()protected abstract String[]getDefaultHeaders()protected String[]getDisplayHeaders()protected static jakarta.batch.operations.JobOperatorgetJobOperatorFromBatchRuntime()protected String[]getOutputHeaders()protected booleanisHeaderRequired()protected booleansupportsLongFormat()
-
-
-
Method Detail
-
execute
public void execute(AdminCommandContext context)
Description copied from interface:AdminCommandExecutes 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:
executein 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()
-
-