|
||||||||||
| 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
public abstract class ServiceRequester
This interface defines the methods common to all the service requestors.
| Constructor Summary | |
|---|---|
ServiceRequester(Service service)
Default constructor for a ServiceRequester. |
|
| Method Summary | |
|---|---|
protected int |
askForConfirmation(javax.swing.JFrame frame,
java.lang.String message,
java.lang.String title)
This method is provided in order ask for user confirmation. |
protected java.io.File |
askToSelectFile(javax.swing.JFrame frame)
This method prompts a FileChooser in order for the user to be able to select a file. |
void |
confirmShutdown()
Method used to confirm the service requester was successfully shutdown. |
void |
confirmStartup()
Method used to confirm the service requester was successfully started. |
protected void |
displayErrorMessage(java.lang.String message,
java.lang.String title)
This method is provided in order to give a feedback message to the used when invoking a service and an error occurs. |
protected void |
displayMessage(java.lang.String message,
java.lang.String title)
This method is provided in order to give a feedback message to the used when invoking a service. |
protected void |
displayNonBlockingMessage(javax.swing.JFrame frame,
java.lang.String message,
java.lang.String title)
This method is provided in order to give a feedback message to the used when invoking a service. |
Service |
getService()
|
boolean |
isStarted()
Returns the requester's running status. |
abstract void |
request(java.lang.Object o)
Method request a service from a service provider |
void |
setService(Service service)
|
protected void |
setStarted(boolean started)
Sets the requester's running status. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface uk.ac.lancs.relate.gateways.services.architecture.ProvidersAndRequestersCommonInterface |
|---|
shutdown, startup |
| Constructor Detail |
|---|
public ServiceRequester(Service service)
| Method Detail |
|---|
public void confirmStartup()
public void confirmShutdown()
public abstract void request(java.lang.Object o)
protected void displayNonBlockingMessage(javax.swing.JFrame frame,
java.lang.String message,
java.lang.String title)
protected void displayMessage(java.lang.String message,
java.lang.String title)
protected void displayErrorMessage(java.lang.String message,
java.lang.String title)
protected int askForConfirmation(javax.swing.JFrame frame,
java.lang.String message,
java.lang.String title)
protected java.io.File askToSelectFile(javax.swing.JFrame frame)
throws ServiceCancelledException
frame - the frame on which to display the FileChooser.
ServiceException - an exception is raised if the user cancels the file selection
ServiceCancelledExceptionpublic boolean isStarted()
protected void setStarted(boolean started)
public Service getService()
public void setService(Service service)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||