public class DefaultServiceServerListener<T,S> extends java.lang.Object implements ServiceServerListener<T,S>
Constructor and Description |
---|
DefaultServiceServerListener() |
Modifier and Type | Method and Description |
---|---|
void |
onMasterRegistrationFailure(ServiceServer<T,S> registrant)
The registrant has failed to register with the master.
|
void |
onMasterRegistrationSuccess(ServiceServer<T,S> registrant)
The registrant has been registered with the master.
|
void |
onMasterUnregistrationFailure(ServiceServer<T,S> registrant)
The registrant has failed to unregister with the master.
|
void |
onMasterUnregistrationSuccess(ServiceServer<T,S> registrant)
The registrant has been unregistered with the master.
|
void |
onShutdown(ServiceServer<T,S> serviceServer) |
public void onMasterRegistrationSuccess(ServiceServer<T,S> registrant)
RegistrantListener
onMasterRegistrationSuccess
in interface RegistrantListener<ServiceServer<T,S>>
registrant
- the registrant which has been registeredpublic void onMasterRegistrationFailure(ServiceServer<T,S> registrant)
RegistrantListener
This may be called multiple times per registrant since master registration will be retried until success.
onMasterRegistrationFailure
in interface RegistrantListener<ServiceServer<T,S>>
registrant
- the registrant which has been registeredpublic void onMasterUnregistrationSuccess(ServiceServer<T,S> registrant)
RegistrantListener
onMasterUnregistrationSuccess
in interface RegistrantListener<ServiceServer<T,S>>
registrant
- the registrant which has been unregisteredpublic void onMasterUnregistrationFailure(ServiceServer<T,S> registrant)
RegistrantListener
This may be called multiple times per registrant since master unregistration will be retried until success.
onMasterUnregistrationFailure
in interface RegistrantListener<ServiceServer<T,S>>
registrant
- the registrant which has been unregisteredpublic void onShutdown(ServiceServer<T,S> serviceServer)
onShutdown
in interface ServiceServerListener<T,S>
serviceServer
- the ServiceServer
which has been shut down