Package jade.core.nodeMonitoring
Class NodeMonitoringService
- java.lang.Object
-
- jade.core.BaseService
-
- jade.core.nodeMonitoring.NodeMonitoringService
-
- All Implemented Interfaces:
Service
- Direct Known Subclasses:
UDPNodeMonitoringService
public abstract class NodeMonitoringService extends BaseService
Base service for services that implements ad hoc node monitoring mechanisms such as the UDPNodeMonitoringService
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface jade.core.Service
Service.Slice, Service.SliceProxy
-
-
Field Summary
Fields Modifier and Type Field Description static StringNODE_REACHABLEVertical command issued on the Main Container when a peripheral node returns reachable after being unreachable for a whilestatic StringNODE_UNREACHABLEVertical command issued on the Main Container when a peripheral node becomes unreachable-
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
Constructors Constructor Description NodeMonitoringService()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract NodeFailureMonitorgetFailureMonitor()String[]getOwnedCommands()This should be properly implemented by the services that owns vertival commands.voidinit(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, getCommandFilter, getCommandSink, getFreshSlice, getHelper, getHorizontalInterface, getIMTPManager, getLocalNode, getLocalSlice, getNumberOfSlices, getSlice, isLocal, lookupAlias, shutdown, stringifySlice, submit
-
-
-
-
Field Detail
-
NODE_UNREACHABLE
public static final String NODE_UNREACHABLE
Vertical command issued on the Main Container when a peripheral node becomes unreachable- See Also:
- Constant Field Values
-
NODE_REACHABLE
public static final String NODE_REACHABLE
Vertical command issued on the Main Container when a peripheral node returns reachable after being unreachable for a while- See Also:
- Constant Field Values
-
-
Method Detail
-
init
public void init(AgentContainer ac, Profile p) throws ProfileException
Description copied from interface:ServicePerforms the passive initialization step of the service. This method is called before activating the service. Its role should be simply the one of a constructor, setting up the internal data as needed. Service implementations should not use the Service Manager and Service Finder facilities from within this method. A distributed initialization protocol, if needed, should be exectuted within theboot()method.- Specified by:
initin interfaceService- Overrides:
initin classBaseService- Parameters:
ac- The agent container this service is activated on.p- The configuration profile for this service.- Throws:
ProfileException- If the given profile is not valid.
-
getOwnedCommands
public String[] getOwnedCommands()
Description copied from class:BaseServiceThis should be properly implemented by the services that owns vertival commands.- Specified by:
getOwnedCommandsin interfaceService- Overrides:
getOwnedCommandsin classBaseService- Returns:
- An array containing the names of all the vertical
commands this service wants to own. If this service has no such
commands (it acts purely as a command filter), it can return an
empty array, or
nullas well. - See Also:
jade.core.Service#getCommandSink()
-
getFailureMonitor
public abstract NodeFailureMonitor getFailureMonitor()
-
-