Class 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
    • 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
    • Constructor Detail

      • NodeMonitoringService

        public NodeMonitoringService()
    • Method Detail

      • init

        public void init​(AgentContainer ac,
                         Profile p)
                  throws ProfileException
        Description copied from interface: Service
        Performs 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 the boot() method.
        Specified by:
        init in interface Service
        Overrides:
        init in class BaseService
        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: BaseService
        This should be properly implemented by the services that owns vertival commands.
        Specified by:
        getOwnedCommands in interface Service
        Overrides:
        getOwnedCommands in class BaseService
        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 null as well.
        See Also:
        jade.core.Service#getCommandSink()