public static interface ClientService.ServiceStateListener
ADEPT2Service has changed.| Modifier and Type | Method and Description |
|---|---|
void |
isAvailable(java.lang.Class<? extends ADEPT2Service> serviceClass,
java.net.URI[] serviceUri,
ADEPT2Service service,
long startTime)
Notifies that the designated
ADEPT2Service is available (again). |
void |
isUnavailable(java.lang.Class<? extends ADEPT2Service> serviceClass,
java.net.URI[] serviceUri,
ADEPT2Service service,
long lastStartTime)
Notifies that the designated
ADEPT2Service is unavailable. |
void isAvailable(java.lang.Class<? extends ADEPT2Service> serviceClass, java.net.URI[] serviceUri, ADEPT2Service service, long startTime)
ADEPT2Service is available (again). Note that the
URIs may have changed while the service was unavailable. This method is also called in case
the URIs changed. In such a case, the service has become unavailable for some time but this
unavailability may have happened unnoticed. serviceClass - The interface of the ADEPT2Service which is available
(again).serviceUri - The (new) URIs of the ADEPT2Service which is available
(again).service - The service which is available again.startTime - The start time of the designated service (return value of
ADEPT2Service.ping()).void isUnavailable(java.lang.Class<? extends ADEPT2Service> serviceClass, java.net.URI[] serviceUri, ADEPT2Service service, long lastStartTime)
ADEPT2Service is unavailable. Note that you usually
cannot access the service implementation since the underlying service is unavailable. serviceClass - The interface of the ADEPT2Service which is unavailable.serviceUri - The (new) URIs of the ADEPT2Service which is unavailable.service - The service which is unavailable.lastStartTime - The last start time of the designated service (return value of
ADEPT2Service.ping()). 0 indicates a starting service, -1 a terminated
service and Long.MIN_VALUE a connection problem.