|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuk.ac.lancs.relate.gateways.services.architecture.ServiceRequester
uk.ac.lancs.relate.gateways.services.architecture.communication.sockets.SocketServiceRequester
public abstract class SocketServiceRequester
This abstract class is used for Requesters willing to use sockets for 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.
| Constructor Summary | |
|---|---|
SocketServiceRequester(Service service)
Creates a new instance of SocketServiceRequester |
|
| Method Summary | |
|---|---|
protected java.net.Socket |
getSocket()
Gets the socket to which the requester is currently bound. |
protected void |
sendServiceRequestTO(ServiceRequest request)
This method is meant to be used by the concrete ServiceRequester to send a ServiceRequest to a provider listening on a socket. |
void |
shutdown()
Ends the connection to the distant service provider. |
void |
startup()
Start the connection to the distant service provider. |
| 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 |
|---|
public SocketServiceRequester(Service service)
SocketServiceRequester
| Method Detail |
|---|
public void startup()
public void shutdown()
protected void sendServiceRequestTO(ServiceRequest request)
throws java.io.IOException
java.io.IOExceptionprotected java.net.Socket getSocket()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||