Package org.opends.server.types
Enum Class DisconnectReason
- All Implemented Interfaces:
Serializable,Comparable<DisconnectReason>,java.lang.constant.Constable
This enumeration defines the set of possible reasons for the closure of a connection between a client and the
Directory Server.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe disconnect reason that indicates that the client connection was closed because an administrator terminated the connection.The disconnect reason that indicates that the client connection was closed because an administrative limit was exceeded.The disconnect reason that indicates that the client connection was closed because the client disconnected without unbinding.The disconnect reason that indicates that the client connection was closed by a plugin.The disconnect reason that indicates that the client connection was closed because the client connection was rejected.The disconnect reason that indicates that the client connection was closed because the idle time limit was exceeded.The disconnect reason that indicates that the client connection was closed because the bound user's entry is no longer accessible.The disconnect reason that indicates that the client connection was closed because of an I/O timeout.The disconnect reason that indicates that the client connection was closed because an operation is not properly sequenced with relation to other operations (of same or different type).The disconnect reason that indicates that the client connection was closed for some other reason.The disconnect reason that indicates that the client connection was closed because of a protocol error.The disconnect reason that indicates that the client connection was closed because of an internal error within the server.The disconnect reason that indicates that the server is in lockdown mode.The disconnect reason that indicates that the client connection was closed because the Directory Server shut down.The disconnect reason that indicates that the client connection was closed because the client unbind from the server. -
Method Summary
Modifier and TypeMethodDescriptionReturns the human-readable disconnect reason.Returns the LDAP result code associated with this disconnect reason.toString()Returns a string representation of this disconnect reason.static DisconnectReasonReturns the enum constant of this class with the specified name.static DisconnectReason[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNBIND
The disconnect reason that indicates that the client connection was closed because the client unbind from the server. -
CLIENT_DISCONNECT
The disconnect reason that indicates that the client connection was closed because the client disconnected without unbinding. -
CONNECTION_REJECTED
The disconnect reason that indicates that the client connection was closed because the client connection was rejected. -
PROTOCOL_ERROR
The disconnect reason that indicates that the client connection was closed because of a protocol error. -
SERVER_SHUTDOWN
The disconnect reason that indicates that the client connection was closed because the Directory Server shut down. -
ADMIN_DISCONNECT
The disconnect reason that indicates that the client connection was closed because an administrator terminated the connection. -
INVALID_CREDENTIALS
The disconnect reason that indicates that the client connection was closed because the bound user's entry is no longer accessible. -
ADMIN_LIMIT_EXCEEDED
The disconnect reason that indicates that the client connection was closed because an administrative limit was exceeded. -
IDLE_TIME_LIMIT_EXCEEDED
The disconnect reason that indicates that the client connection was closed because the idle time limit was exceeded. -
IO_TIMEOUT
The disconnect reason that indicates that the client connection was closed because of an I/O timeout. -
SERVER_ERROR
The disconnect reason that indicates that the client connection was closed because of an internal error within the server. -
CLOSED_BY_PLUGIN
The disconnect reason that indicates that the client connection was closed by a plugin. -
OTHER
The disconnect reason that indicates that the client connection was closed for some other reason. -
OPERATIONS_ERROR
The disconnect reason that indicates that the client connection was closed because an operation is not properly sequenced with relation to other operations (of same or different type). -
SERVER_IN_LOCKDOWN_MODE
The disconnect reason that indicates that the server is in lockdown mode.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getClosureMessage
Returns the human-readable disconnect reason.- Returns:
- The human-readable disconnect reason.
-
getResultCode
Returns the LDAP result code associated with this disconnect reason.- Returns:
- The LDAP result code associated with this disconnect reason.
-
toString
Returns a string representation of this disconnect reason.- Overrides:
toStringin classEnum<DisconnectReason>- Returns:
- A string representation of this disconnect reason.
-