uk.ac.lancs.relate.gateways.services.architecture.communication.rmi
Class RMIServiceProvider

java.lang.Object
  extended by uk.ac.lancs.relate.gateways.services.architecture.ServiceProvider
      extended by uk.ac.lancs.relate.gateways.services.architecture.communication.rmi.RMIServiceProvider
All Implemented Interfaces:
java.io.Serializable, java.rmi.Remote, RMIServiceProviderStub, ProvidersAndRequestersCommonInterface
Direct Known Subclasses:
EBLMigrationServiceProvider, PresentationControlServiceProvider

public abstract class RMIServiceProvider
extends ServiceProvider
implements RMIServiceProviderStub

This abstract calss is used for Providers willing to use sockets RMI communication with requesters. Note: a Provider is not required to use any particular communication API, this class is models one type of communication but it is the programmer's responsibility to pick up the right communication model for his service. As long as the concrete service provider extends the ServiceProvider class the RelateGateways system will handle and export it correctly.

Author:
Dominique Guinard
Personal Homepage
See Also:
Serialized Form

Constructor Summary
RMIServiceProvider(RMIService service)
          Creates a new instance of RMIServiceProvider
 
Method Summary
 void shutdown()
          This method shuts down the provider unbinding the provider stub from the registry.
 void startup()
          This method starts up the provider.
 
Methods inherited from class uk.ac.lancs.relate.gateways.services.architecture.ServiceProvider
confirmShutdown, confirmStartup, getService, isRunning, provide, setService, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface uk.ac.lancs.relate.gateways.services.architecture.communication.rmi.RMIServiceProviderStub
provide
 

Constructor Detail

RMIServiceProvider

public RMIServiceProvider(RMIService service)
Creates a new instance of RMIServiceProvider

Method Detail

startup

public void startup()
This method starts up the provider. It basically binds the provider stub to the RMI registry.

Specified by:
startup in interface ProvidersAndRequestersCommonInterface

shutdown

public void shutdown()
This method shuts down the provider unbinding the provider stub from the registry.

Specified by:
shutdown in interface ProvidersAndRequestersCommonInterface