Interface RemoteServers.CheckRemoteServerResult
- Enclosing interface:
- RemoteServers
public static interface RemoteServers.CheckRemoteServerResult
Result returned from a
RemoteServers.checkRemoteServer(java.lang.String) invocation.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumRepresents the current connection state of the remote server. -
Method Summary
Modifier and TypeMethodDescriptionReturns the connection state of the remote server.Returns a failure message when the state returned isRemoteServers.CheckRemoteServerResult.ConnectionState.FAILEDorRemoteServers.CheckRemoteServerResult.ConnectionState.RETRYING.
-
Method Details
-
getConnectionState
RemoteServers.CheckRemoteServerResult.ConnectionState getConnectionState()Returns the connection state of the remote server.- Returns:
- the connection state
-
getFailureMessage
String getFailureMessage()Returns a failure message when the state returned isRemoteServers.CheckRemoteServerResult.ConnectionState.FAILEDorRemoteServers.CheckRemoteServerResult.ConnectionState.RETRYING.For other states this will return an empty string.
- Returns:
- the failure message, if there is one, otherwise an empty string
-