public static enum RemoteServers.CheckRemoteServerResult.ConnectionState extends Enum<RemoteServers.CheckRemoteServerResult.ConnectionState>
Enum Constant and Description |
---|
CONNECTED
The remote server is connected and actively in use by components
that require it.
|
FAILED
The connection failed to establish.
|
INACTIVE
The connection is inactive.
|
MISSING
The named remote server did not exist.
|
RETRYING
The connection has failed but a retry is scheduled.
|
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 means 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
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 © 2022 Push Technology Ltd. All Rights Reserved.