Package org.jivesoftware.openfire.server
Class FailedOutgoingServerSessionAttempt
java.lang.Object
org.jivesoftware.openfire.server.FailedOutgoingServerSessionAttempt
- All Implemented Interfaces:
Serializable
Basic diagnostics for a failed outgoing server-to-server connection attempt.
Instances of this type are intended to be stored in a clustered cache, which requires that
keys and values are serializable.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates diagnostics payload for a failed outgoing S2S connection attempt.getWhen()
-
Constructor Details
-
FailedOutgoingServerSessionAttempt
public FailedOutgoingServerSessionAttempt(String localDomain, String remoteDomain, Instant when, String errorType, String errorMessage) Constructs diagnostics for one failed outgoing S2S connection establishment attempt.- Parameters:
localDomain- the local domain from which the outgoing attempt was initiated.remoteDomain- the remote peer domain that connection establishment targeted.when- timestamp that indicates when the failure was observed.errorType- fully qualified class name of the throwable that caused the failure, or null.errorMessage- throwable message that describes the failure, or null.
-
-
Method Details
-
getLocalDomain
- Returns:
- the local domain from which the outgoing attempt was initiated.
-
getRemoteDomain
- Returns:
- the remote domain for which connection establishment failed.
-
getWhen
- Returns:
- timestamp of when this failure was recorded.
-
getErrorType
- Returns:
- fully qualified class name of the exception that caused the failure, or null.
-
getErrorMessage
- Returns:
- message associated with the exception that caused the failure, or null.
-
from
public static FailedOutgoingServerSessionAttempt from(String localDomain, String remoteDomain, Throwable cause) Creates diagnostics payload for a failed outgoing S2S connection attempt.- Parameters:
localDomain- the local domain from which the outgoing attempt was initiated.remoteDomain- the remote domain that connection establishment targeted.cause- the failure cause.- Returns:
- a diagnostics payload representing the provided failure.
-