Package com.highdeal.cnd.message
Class ConnectionStatus
java.lang.Object
com.highdeal.cnd.message.ConnectionStatus
The class contains the connection status information after a connect method is called
(e.g.
AsyncRatingServiceClient.connect(String, int)).-
Constructor Summary
ConstructorsConstructorDescriptionConnectionStatus(com.highdeal.barbus.Client registeredClient) Builds aConnectionStatus. -
Method Summary
Modifier and TypeMethodDescriptionintGets the port of the service.booleanGets the service availability status.
-
Constructor Details
-
ConnectionStatus
public ConnectionStatus(com.highdeal.barbus.Client registeredClient) Builds aConnectionStatus.- Parameters:
registeredClient- the registeredClient(can benull)
-
-
Method Details
-
isServiceAvailable
public boolean isServiceAvailable()Gets the service availability status. The service is not available when no dispatcher has succeeded to register the client (e.g. authentication failed).- Returns:
trueif the service is available,falseotherwise.
-
getServicePort
public int getServicePort()Gets the port of the service.- Returns:
- the port of the service if it is available,
0otherwise
-