public static enum RemoteServers.CheckRemoteServerResult.ConnectionState extends Enum<RemoteServers.CheckRemoteServerResult.ConnectionState>
Enum Constant and Description |
---|
CONNECTED
The remote server is connected.
|
FAILED
The connection has failed.
|
INACTIVE
The connection is inactive.
|
MISSING
The named remote server did not exist.
|
RETRYING
The connection has failed but is retrying.
|
Modifier and Type | Method and Description |
---|---|
static RemoteServers.CheckRemoteServerResult.ConnectionState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RemoteServers.CheckRemoteServerResult.ConnectionState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RemoteServers.CheckRemoteServerResult.ConnectionState INACTIVE
This is the initial state for all types.
For a RemoteServers.SecondaryInitiator
this could also mean that the
remote server can successfully connect but a physical connection
is not being maintained as there are no components that require
the remote server.
If in an inactive or failed state, a test connection will have been tried to check that the connection can be made and the connection will then have been closed.
public static final RemoteServers.CheckRemoteServerResult.ConnectionState CONNECTED
For a RemoteServers.SecondaryInitiator
this means that there are
components actually using it.
A RemoteServers.SecondaryAcceptor
can be in this state even if there
are no components using it as a reverse connection is always
maintained.
A RemoteServers.PrimaryInitiator
will only be in this state if it has
a successful connection to all secondary acceptors configured for
it. If any secondary acceptor connection has failed then it will
be in a FAILED state even if there are some active connections.
public static final RemoteServers.CheckRemoteServerResult.ConnectionState RETRYING
In this case RemoteServers.CheckRemoteServerResult.getFailureMessage()
will provide details of the failure that resulted in a retry.
public static final RemoteServers.CheckRemoteServerResult.ConnectionState FAILED
If the connection was in an inactive or failed state state, a test connection was tried and failed.
In this case RemoteServers.CheckRemoteServerResult.getFailureMessage()
will provide more detail.
public static final RemoteServers.CheckRemoteServerResult.ConnectionState MISSING
public static RemoteServers.CheckRemoteServerResult.ConnectionState[] values()
for (RemoteServers.CheckRemoteServerResult.ConnectionState c : RemoteServers.CheckRemoteServerResult.ConnectionState.values()) System.out.println(c);
public static RemoteServers.CheckRemoteServerResult.ConnectionState valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2024 DiffusionData Ltd. All Rights Reserved.