public interface LifeCycleManageable
| Modifier and Type | Method and Description |
|---|---|
void |
finish()
Performs any final actions required for this
ParallelizableJob. |
void |
initialize()
Sets up this
ParallelizableJob on the machine hosting the
job (not necessarily the same machine as the one processing the tasks
for this job). |
void |
restoreState(ObjectInput input)
Notifies the job that it is about to be resumed after having been
suspended.
|
void |
saveState(ObjectOutput output)
Notifies the job that it is about to be suspended (for example, if the
server application is about to be shut down).
|
void initialize()
throws Exception
ParallelizableJob on the machine hosting the
job (not necessarily the same machine as the one processing the tasks
for this job).Exception - If an error occurs performing the operation.void finish()
throws Exception
ParallelizableJob.Exception - If an error occurs performing the operation.void saveState(ObjectOutput output) throws Exception
output - The ObjectOutput to save state to.Exception - If an error occurs performing the operation.void restoreState(ObjectInput input) throws Exception
input - The ObjectInput to restore state from.Exception - If an error occurs performing the operation.Copyright © 2016. All rights reserved.