tp.impl
Interface CSEP545Service

All Superinterfaces:
Remote
All Known Implementing Classes:
CSEP545ServiceObject, MyRM, MyTM, MyWC

public interface CSEP545Service
extends Remote

Common service interface for the project. This interface is specific to Java.


Nested Class Summary
static class CSEP545Service.Type
          type of service
 
Method Summary
 ServiceID getServiceID()
          Name of remote service object
 void kill()
          Immediately kill remote service.
 void refresh()
          Refresh all remote references used by this service.
 void shutdown()
          Gracefully shutdown target service.
 

Method Detail

getServiceID

ServiceID getServiceID()
                       throws RemoteException
Name of remote service object

Returns:
A string represent remote service object
Throws:
RemoteException

kill

void kill()
          throws RemoteException
Immediately kill remote service. Useful for automated testing.

Throws:
RemoteException

shutdown

void shutdown()
              throws RemoteException
Gracefully shutdown target service. On restart, the service should not need to recover its state. Please make sure to call Registry.unbind(String)

Throws:
RemoteException
See Also:
Registry.unbind(String)

refresh

void refresh()
             throws RemoteException,
                    NotBoundException
Refresh all remote references used by this service. For easier automated testing recovery from failure.

Throws:
RemoteException
NotBoundException