|
||||||||||
| 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.ServiceProvider
public abstract class ServiceProvider
This abstract class defines the methods common to all the Service providers.
| Constructor Summary | |
|---|---|
ServiceProvider(Service service)
Default constructor for a ServiceProvider. |
|
| Method Summary | |
|---|---|
void |
confirmShutdown()
Method used to confirm the service provider was successfully shutdown. |
void |
confirmStartup()
Method used to confirm the service provider was successfully started. |
Service |
getService()
|
boolean |
isRunning()
Returns "true" if the concrete provider is currently running. |
abstract ServiceResponse |
provide(ServiceRequest serviceRequest)
Method used to provide a service. |
void |
setService(Service service)
|
java.lang.String |
toString()
Overriding the toString() method in order to display the classname only. |
| 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.ProvidersAndRequestersCommonInterface |
|---|
shutdown, startup |
| Constructor Detail |
|---|
public ServiceProvider(Service service)
| Method Detail |
|---|
public void confirmStartup()
public void confirmShutdown()
public abstract ServiceResponse provide(ServiceRequest serviceRequest)
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean isRunning()
public Service getService()
public void setService(Service service)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||