Package org.glassfish.api.admin
Interface Job
- All Superinterfaces:
AdminCommandState,Serializable
Represents command instance.
- Author:
- Martin Mares, Bhakti Mehta
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.glassfish.api.admin.AdminCommandState
AdminCommandState.State -
Field Summary
Fields inherited from interface org.glassfish.api.admin.AdminCommandState
EVENT_STATE_CHANGED -
Method Summary
Modifier and TypeMethodDescriptionvoidcomplete(ActionReport report, Payload.Outbound outbound) Complete job with the given report and payload.longlongCommand progress only if it is supported by commandgetScope()voidrevert()Change state to reverting.voidsetCommandProgress(CommandProgress commandProgress) voidsetFailToRetryable(boolean value) Job will be considered as retryable after fail.voidsetJobsFile(File jobsFile) voidsetState(AdminCommandState.State state) Sets the state.Methods inherited from interface org.glassfish.api.admin.AdminCommandState
getActionReport, getId, getName, getState, isJobStillActive, isOutboundPayloadEmpty
-
Method Details
-
setState
Sets the state.- Parameters:
state- must not be null
-
getCommandProgress
CommandProgress getCommandProgress()Command progress only if it is supported by command -
setCommandProgress
-
complete
Complete job with the given report and payload.- Parameters:
report-outbound-
-
revert
void revert()Change state to reverting. Command Can use it to send info about reverting to Job management infrastructure. -
getEventBroker
AdminCommandEventBroker getEventBroker() -
getSubjectUsernames
-
getCommandExecutionDate
long getCommandExecutionDate() -
getPayload
Payload.Outbound getPayload() -
getJobsFile
File getJobsFile() -
setJobsFile
-
getScope
String getScope() -
getCommandCompletionDate
long getCommandCompletionDate() -
setFailToRetryable
void setFailToRetryable(boolean value) Job will be considered as retryable after fail. It means that checkpoint will not be deleted and revert or continue can be decided by the user. -
getParameters
ParameterMap getParameters()
-