Package wt.ixb.publicforapps
Class ExpFaultToleranceHandler
java.lang.Object
wt.ixb.publicforapps.ExpFaultToleranceHandler
Fault tolerance handling while Export.
Supported API: true
Supported API: true
-
Method Summary
Modifier and TypeMethodDescriptionvoidprocessDependencies(Map<ObjectIdentifier, ? extends QueryKey> dependentToPrimaryMap) Process the dependencies for fault tolerance.voidprocessDependency(ObjectIdentifier dependentRefn, QueryKey primaryRefn) Process the dependencies for fault tolerance.voidreportError(WTException exc, String stageName, String errorMessage) Reports an error to the Framework depending on the executor implementation
Supported API: truevoidreportFaulty(WTCollection associatedObjects, WTException exc, String stageName, String errorMessage) Reports the collection of objects as Faulty objects to the Framework depending on the executor implementation
Supported API: truevoidreportFaulty(ObjectReference objRefn, WTException exc, String stageName, String errorMessage) Reports the ObjectIdentifier object as Faulty objects to the Framework depending on the executor implementation
Supported API: truevoidreportFaulty(Persistable persistable, WTException exc, String stageName, String errorMessage) Reports the Persistable object as Faulty objects to the Framework depending on the executor implementation
Supported API: true
-
Method Details
-
reportFaulty
public void reportFaulty(WTCollection associatedObjects, WTException exc, String stageName, String errorMessage) throws WTException Reports the collection of objects as Faulty objects to the Framework depending on the executor implementation
Supported API: true- Parameters:
associatedObjects- The Collection to be marked as Faultyexc- The Exception encountered while processing the associatedObjectsstageName- The Name of the stage during which the Exception occurrederrorMessage- The Error Message to show the user- Throws:
WTException
-
reportFaulty
public void reportFaulty(Persistable persistable, WTException exc, String stageName, String errorMessage) throws WTException Reports the Persistable object as Faulty objects to the Framework depending on the executor implementation
Supported API: true- Parameters:
persistable- The Object that will be marked faulty in case exception occursexc- The Exception encountered while processing the associatedObjectsstageName- The Name of the stage during which the Exception occurrederrorMessage- The Error Message to show the user- Throws:
WTException
-
reportFaulty
public void reportFaulty(ObjectReference objRefn, WTException exc, String stageName, String errorMessage) throws WTException Reports the ObjectIdentifier object as Faulty objects to the Framework depending on the executor implementation
Supported API: true- Parameters:
objRefn- The Object that will be marked faulty in case exception occursexc- The Exception encountered while processing the associatedObjectsstageName- The Name of the stage during which the Exception occurrederrorMessage- The Error Message to show the user- Throws:
WTException
-
reportError
Reports an error to the Framework depending on the executor implementation
Supported API: true- Parameters:
exc- The Exception encountered while processing the associatedObjectsstageName- The Name of the stage during which the Exception occurrederrorMessage- The Error Message to show the user- Throws:
WTException
-
processDependencies
Process the dependencies for fault tolerance. Dependents would be marked based on faulty primary objects
Dependency graph of All dependent to primary is expected to be passed (no knowledge of faulty primary required)
Supported API: true- Parameters:
dependentObjectId- dependency graph of dependent to primaryfaultyObjectRefn-
-
processDependency
Process the dependencies for fault tolerance. Dependents would be marked if primary object is faulty
Single object flavor of preferableprocessDependencies(Map)and recommended to be referred for details Supported API: true- Parameters:
dependentRefn-primaryRefn-
-