org.ros.node.service
Class DefaultServiceServerListener<T,S>

java.lang.Object
  extended by org.ros.node.service.DefaultServiceServerListener<T,S>
All Implemented Interfaces:
RegistrantListener<ServiceServer<T,S>>, ServiceServerListener<T,S>

public class DefaultServiceServerListener<T,S>
extends java.lang.Object
implements ServiceServerListener<T,S>


Constructor Summary
DefaultServiceServerListener()
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultServiceServerListener

public DefaultServiceServerListener()
Method Detail

onMasterRegistrationSuccess

public void onMasterRegistrationSuccess(ServiceServer<T,S> registrant)
Description copied from interface: RegistrantListener
The registrant has been registered with the master.

Specified by:
onMasterRegistrationSuccess in interface RegistrantListener<ServiceServer<T,S>>
Parameters:
registrant - the registrant which has been registered

onMasterRegistrationFailure

public void onMasterRegistrationFailure(ServiceServer<T,S> registrant)
Description copied from interface: RegistrantListener
The registrant has failed to register with the master.

This may be called multiple times per registrant since master registration will be retried until success.

Specified by:
onMasterRegistrationFailure in interface RegistrantListener<ServiceServer<T,S>>
Parameters:
registrant - the registrant which has been registered

onMasterUnregistrationSuccess

public void onMasterUnregistrationSuccess(ServiceServer<T,S> registrant)
Description copied from interface: RegistrantListener
The registrant has been unregistered with the master.

Specified by:
onMasterUnregistrationSuccess in interface RegistrantListener<ServiceServer<T,S>>
Parameters:
registrant - the registrant which has been unregistered

onMasterUnregistrationFailure

public void onMasterUnregistrationFailure(ServiceServer<T,S> registrant)
Description copied from interface: RegistrantListener
The registrant has failed to unregister with the master.

This may be called multiple times per registrant since master unregistration will be retried until success.

Specified by:
onMasterUnregistrationFailure in interface RegistrantListener<ServiceServer<T,S>>
Parameters:
registrant - the registrant which has been unregistered

onShutdown

public void onShutdown(ServiceServer<T,S> serviceServer)
Specified by:
onShutdown in interface ServiceServerListener<T,S>
Parameters:
serviceServer - the ServiceServer which has been shut down