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

java.lang.Object
  extended by uk.ac.lancs.relate.gateways.services.architecture.ServiceRequester
      extended by uk.ac.lancs.relate.gateways.services.architecture.communication.rmi.RMIServiceRequester
All Implemented Interfaces:
java.io.Serializable, ProvidersAndRequestersCommonInterface
Direct Known Subclasses:
EBLMigrationServiceRequester, PresentationControlServiceRequester

public abstract class RMIServiceRequester
extends ServiceRequester

This abstract class is used for Requesters willing to use RMI communication with Providers. Note: a Requester 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 requester extends the ServiceRequester class the RelateGateways system will handle and export it correctly.

Author:
Dominique Guinard
Personal Homepage
See Also:
Serialized Form

Constructor Summary
RMIServiceRequester(RMIService service)
          Creates a new instance of RMIServiceRequester
 
Method Summary
 ServiceResponse request(ServiceRequest request)
          This method is to be used by to send the request to an RMI ServiceProvider.
 void shutdown()
          Method used to shutdown (stop) the service requester
 void startup()
          Method used to startup the service requester.
 
Methods inherited from class uk.ac.lancs.relate.gateways.services.architecture.ServiceRequester
askForConfirmation, askToSelectFile, confirmShutdown, confirmStartup, displayErrorMessage, displayMessage, displayNonBlockingMessage, getService, isStarted, request, setService, setStarted
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RMIServiceRequester

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

Method Detail

request

public ServiceResponse request(ServiceRequest request)
This method is to be used by to send the request to an RMI ServiceProvider.


startup

public void startup()
Method used to startup the service requester.


shutdown

public void shutdown()
Method used to shutdown (stop) the service requester