Package org.opends.server.types
Enum DisconnectReason
- java.lang.Object
-
- java.lang.Enum<DisconnectReason>
-
- org.opends.server.types.DisconnectReason
-
- All Implemented Interfaces:
Serializable,Comparable<DisconnectReason>
@PublicAPI(stability=VOLATILE, mayInvoke=true) public enum DisconnectReason extends Enum<DisconnectReason>
This enumeration defines the set of possible reasons for the closure of a connection between a client and the Directory Server.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ADMIN_DISCONNECTThe disconnect reason that indicates that the client connection was closed because an administrator terminated the connection.ADMIN_LIMIT_EXCEEDEDThe disconnect reason that indicates that the client connection was closed because an administrative limit was exceeded.CLIENT_DISCONNECTThe disconnect reason that indicates that the client connection was closed because the client disconnected without unbinding.CLOSED_BY_PLUGINThe disconnect reason that indicates that the client connection was closed by a plugin.CONNECTION_REJECTEDThe disconnect reason that indicates that the client connection was closed because the client connection was rejected.IDLE_TIME_LIMIT_EXCEEDEDThe disconnect reason that indicates that the client connection was closed because the idle time limit was exceeded.INVALID_CREDENTIALSThe disconnect reason that indicates that the client connection was closed because the bound user's entry is no longer accessible.IO_TIMEOUTThe disconnect reason that indicates that the client connection was closed because of an I/O timeout.OPERATIONS_ERRORThe 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).OTHERThe disconnect reason that indicates that the client connection was closed for some other reason.PROTOCOL_ERRORThe disconnect reason that indicates that the client connection was closed because of a protocol error.SERVER_ERRORThe disconnect reason that indicates that the client connection was closed because of an internal error within the server.SERVER_IN_LOCKDOWN_MODEThe disconnect reason that indicates that the server is in lockdown mode.SERVER_SHUTDOWNThe disconnect reason that indicates that the client connection was closed because the Directory Server shut down.UNBINDThe disconnect reason that indicates that the client connection was closed because the client unbind from the server.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description LocalizableMessagegetClosureMessage()Returns the human-readable disconnect reason.ResultCodegetResultCode()Returns the LDAP result code associated with this disconnect reason.StringtoString()Returns a string representation of this disconnect reason.static DisconnectReasonvalueOf(String name)Returns the enum constant of this type with the specified name.static DisconnectReason[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNBIND
public static final DisconnectReason UNBIND
The disconnect reason that indicates that the client connection was closed because the client unbind from the server.
-
CLIENT_DISCONNECT
public static final DisconnectReason CLIENT_DISCONNECT
The disconnect reason that indicates that the client connection was closed because the client disconnected without unbinding.
-
CONNECTION_REJECTED
public static final DisconnectReason CONNECTION_REJECTED
The disconnect reason that indicates that the client connection was closed because the client connection was rejected.
-
PROTOCOL_ERROR
public static final DisconnectReason PROTOCOL_ERROR
The disconnect reason that indicates that the client connection was closed because of a protocol error.
-
SERVER_SHUTDOWN
public static final DisconnectReason SERVER_SHUTDOWN
The disconnect reason that indicates that the client connection was closed because the Directory Server shut down.
-
ADMIN_DISCONNECT
public static final DisconnectReason ADMIN_DISCONNECT
The disconnect reason that indicates that the client connection was closed because an administrator terminated the connection.
-
INVALID_CREDENTIALS
public static final DisconnectReason 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
public static final DisconnectReason ADMIN_LIMIT_EXCEEDED
The disconnect reason that indicates that the client connection was closed because an administrative limit was exceeded.
-
IDLE_TIME_LIMIT_EXCEEDED
public static final DisconnectReason IDLE_TIME_LIMIT_EXCEEDED
The disconnect reason that indicates that the client connection was closed because the idle time limit was exceeded.
-
IO_TIMEOUT
public static final DisconnectReason IO_TIMEOUT
The disconnect reason that indicates that the client connection was closed because of an I/O timeout.
-
SERVER_ERROR
public static final DisconnectReason SERVER_ERROR
The disconnect reason that indicates that the client connection was closed because of an internal error within the server.
-
CLOSED_BY_PLUGIN
public static final DisconnectReason CLOSED_BY_PLUGIN
The disconnect reason that indicates that the client connection was closed by a plugin.
-
OTHER
public static final DisconnectReason OTHER
The disconnect reason that indicates that the client connection was closed for some other reason.
-
OPERATIONS_ERROR
public static final DisconnectReason 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
public static final DisconnectReason SERVER_IN_LOCKDOWN_MODE
The disconnect reason that indicates that the server is in lockdown mode.
-
-
Method Detail
-
values
public static DisconnectReason[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (DisconnectReason c : DisconnectReason.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DisconnectReason valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
getClosureMessage
public LocalizableMessage getClosureMessage()
Returns the human-readable disconnect reason.- Returns:
- The human-readable disconnect reason.
-
getResultCode
public ResultCode getResultCode()
Returns the LDAP result code associated with this disconnect reason.- Returns:
- The LDAP result code associated with this disconnect reason.
-
toString
public String toString()
Returns a string representation of this disconnect reason.- Overrides:
toStringin classEnum<DisconnectReason>- Returns:
- A string representation of this disconnect reason.
-
-