|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjade.core.FEService
public abstract class FEService
JADE kernel services providing a service-helper and wishing this helper to be available in the
split execution mode too, need to provide a FEService class.
When starting a split container the services option works exactly as when starting a
normal container, but the indicated classes must be concrete implementations of the FEService
abstract class.
It should be noticed that a Front-End service is only intended to provide access to the service helper
and not to actually implement full service functionality
| Constructor Summary | |
|---|---|
FEService()
|
|
| Method Summary | |
|---|---|
java.lang.String |
getBEServiceClassName()
In many cases for the Front-End service to work properly it is necessary that the real service (or possibly a modified version of it) is active in the Back-End. |
abstract ServiceHelper |
getHelper(Agent a)
Subclasses must implement this method to return the helper for accessing this service. |
abstract java.lang.String |
getName()
Subclasses must implement this method to return the name of this service. |
protected java.lang.Object |
invoke(java.lang.String actor,
java.lang.String methodName,
java.lang.Object[] methodParams)
Subclasses can use this method to forward a front-end side invocation of a service helper method to the back-end. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FEService()
| Method Detail |
|---|
public abstract java.lang.String getName()
getHelper()
method when retrieving the helper for this service.
public java.lang.String getBEServiceClassName()
public abstract ServiceHelper getHelper(Agent a)
a - The agent which the helper is requested for.
protected java.lang.Object invoke(java.lang.String actor,
java.lang.String methodName,
java.lang.Object[] methodParams)
throws NotFoundException,
ServiceException,
IMTPException
BECodec interface and must be called "
actor - The name of the agent invoking the service helper methodmethodName - The name of the invoked methodmethodParams - The parameters to be passed to the back-end
NotFoundException - If the invoking agent is not found in the back-end
ServiceException - If an error occurs at the service level
IMTPException - If a communication error occurs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||