|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjade.core.BaseService
jade.core.event.NotificationService
public class NotificationService
The JADE service to manage the event notification subsystem installed on the platform.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface jade.core.Service |
|---|
Service.Slice, Service.SliceProxy |
| Field Summary | |
|---|---|
static java.lang.String |
NAME
The name of this service. |
| Fields inherited from class jade.core.BaseService |
|---|
ALL_DUMP_KEY, MAIN_SLICE, myFinder, myLogger, THIS_SLICE |
| Fields inherited from interface jade.core.Service |
|---|
ADOPTED_NODE, DEAD_NODE, DEAD_PLATFORM_MANAGER, DEAD_REPLICA, DEAD_SLICE, NEW_NODE, NEW_REPLICA, NEW_SLICE, REATTACHED, RECONNECTED |
| Constructor Summary | |
|---|---|
NotificationService()
|
|
| Method Summary | |
|---|---|
Filter |
getCommandFilter(boolean direction)
This should be properly implemented by the services that have filters. |
Sink |
getCommandSink(boolean side)
This should be properly implemented by the services that have sinks. |
ServiceHelper |
getHelper(Agent a)
This should be properly implemented by the services that have helpers. |
java.lang.Class |
getHorizontalInterface()
This should be properly implemented by the services that have non-empty slices. |
Service.Slice |
getLocalSlice()
This should be properly implemented by the services that have non-empty slices. |
java.lang.String |
getName()
Retrieve the name of this service, that can be used to look up its slices in the Service Finder. |
java.lang.String[] |
getOwnedCommands()
This should be properly implemented by the services that owns vertival commands. |
void |
init(AgentContainer ac,
Profile p)
Performs the passive initialization step of the service. |
| Methods inherited from class jade.core.BaseService |
|---|
addAlias, boot, broadcast, clearCachedSlice, createInvokator, dump, getAllSlices, getAMSBehaviour, getFreshSlice, getIMTPManager, getLocalNode, getNumberOfSlices, getSlice, isLocal, lookupAlias, shutdown, stringifySlice, submit |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String NAME
| Constructor Detail |
|---|
public NotificationService()
| Method Detail |
|---|
public void init(AgentContainer ac,
Profile p)
throws ProfileException
Serviceboot() method.
init in interface Serviceinit in class BaseServiceac - The agent container this service is activated on.p - The configuration profile for this service.
ProfileException - If the given profile is not valid.public java.lang.String getName()
Service
ServiceFinderpublic java.lang.Class getHorizontalInterface()
BaseService
getHorizontalInterface in interface ServicegetHorizontalInterface in class BaseServiceClass object, representing the interface
that is implemented by the slices of this service. Let
s be the Class object corresponding
to the Service.Slice interface, and let
c be the returned Class object. Then,
the two following conditions must hold:
c.isInterface() == trues.isAssignableFrom(c) == truepublic Service.Slice getLocalSlice()
BaseService
getLocalSlice in interface ServicegetLocalSlice in class BaseServicenull if no such slice exists.public Filter getCommandFilter(boolean direction)
BaseServicedirection
parameter this method MUST always return the same object!
getCommandFilter in interface ServicegetCommandFilter in class BaseServicedirection - One of the two constants
Filter.INCOMING and Filter.OUTGOING,
distinguishing between the two filter chains managed by the
command processor.
Filter object, used by this service to
intercept and process kernel-level commands. If the service
does not wish to install a command filter for one or both
directions, it can just return null when
appropriate.CommandProcessorpublic Sink getCommandSink(boolean side)
BaseService
getCommandSink in interface ServicegetCommandSink in class BaseServiceside - One of the two constants
Sink.COMMAND_SOURCE or
Sink.COMMAND_TARGET, to state whether this sink
will handle locally issued commands or commands incoming from
remote nodes.
Sink interface, that will be invoked by the
kernel in order to consume any incoming vertical command owned
by this service. If the service does not wish to install a
command sink, it can just return null.Service.getOwnedCommands()
public ServiceHelper getHelper(Agent a)
throws ServiceException
BaseService
getHelper in interface ServicegetHelper in class BaseServicea - The agent which the helper is requested for.
ServiceExceptionAgentToolkit.getHelper(jade.core.Agent, java.lang.String),
Agent.getHelper(java.lang.String)public java.lang.String[] getOwnedCommands()
BaseService
getOwnedCommands in interface ServicegetOwnedCommands in class BaseServicenull as well.jade.core.Service#getCommandSink()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||