Package org.jppf.node.protocol.graph
Class JPPFJobDependencyCycleException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.jppf.JPPFException
org.jppf.node.protocol.graph.JPPFDependencyCycleException
org.jppf.node.protocol.graph.JPPFJobDependencyCycleException
- All Implemented Interfaces:
Serializable
Exception raised when a dependency cycle is detected in a graph of jobs.
- Since:
- 6.2
- Author:
- Laurent Cohen
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionJPPFJobDependencyCycleException(String message, String cycleStart, List<String> idPath) Initialize this exception with a specified message. -
Method Summary
Modifier and TypeMethodDescriptionGet the dependency id of the job in which the insertion of a dependency causes a cycle.Get an ordered list of dependency ids that make the path of the detected cycle.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
JPPFJobDependencyCycleException
Initialize this exception with a specified message.- Parameters:
message- the message for this exception.cycleStart- the dependency id of the job in which the insertion of a dependency causes a cycle.idPath- an ordered list of dependency ids that make the path of the detected cycle, excludingcycleStart.
-
-
Method Details
-
getCycleStart
Get the dependency id of the job in which the insertion of a dependency causes a cycle.- Returns:
- the dependency id of the cycle start.
-
getIdPath
Get an ordered list of dependency ids that make the path of the detected cycle.- Returns:
- a list of string dependency ids.
-