Package net.sf.basedb.opengrid
Class AbortJobIfTransactionFails
java.lang.Object
net.sf.basedb.opengrid.AbortJobIfTransactionFails
- All Implemented Interfaces:
TransactionalAction
When a job has been submitted to the cluster the job-id and
other information has to be registered in BASE. But if the
registration fails there is no need to keep the job in the
queue on the cluster so we try to delete it.
- Since:
- 1.0
- Author:
- nicklas
-
Field Summary
Modifier and TypeFieldDescriptionprivate final JobIdentifier
private static final ExtensionsLogger
-
Constructor Summary
-
Method Summary
-
Field Details
-
logger
-
jobId
-
-
Constructor Details
-
AbortJobIfTransactionFails
-
-
Method Details
-
onAfterCommit
public void onAfterCommit()- Specified by:
onAfterCommit
in interfaceTransactionalAction
-
onBeforeCommit
public void onBeforeCommit()- Specified by:
onBeforeCommit
in interfaceTransactionalAction
-
onRollback
public void onRollback()- Specified by:
onRollback
in interfaceTransactionalAction
-