Package org.jppf.node.connection
Class ConnectionContext
java.lang.Object
org.jppf.node.connection.ConnectionContext
Instances of this class define the context for a node (re)connection request.
- Since:
- 4.1
- Author:
- Laurent Cohen
-
Constructor Summary
ConstructorsConstructorDescriptionConnectionContext(String message, Throwable throwable, ConnectionReason reason) Initialize this context with the specified parameters. -
Method Summary
-
Constructor Details
-
ConnectionContext
Initialize this context with the specified parameters.- Parameters:
message- some explanation text for the reconnection.throwable- aThrowablethat triggered the reconnection.reason- the reason for the connection or reconnection.
-
-
Method Details
-
getMessage
Get an explanation text for the reconnection.- Returns:
- the explanation as a string, possibly
null.
-
getThrowable
Get an eventualThrowablethat triggered the reconnection.- Returns:
- a
Throwable, possiblynull.
-
getReason
Get the reason for the connection or reconnection.- Returns:
- the reason as a
ConnectionReasonenum value.
-
toString
-