Interface ServiceMonitor

    • Method Detail

      • registerServices

        void registerServices​(Map<Service,​String> mapServices)
        Adds a set of Services to be monitored providing life support. If any of the services are not running they are started either via the configured ConfigurableCacheFactory iff provided or the provided Service.
        Parameters:
        mapServices - a map of Services where values are non-scoped service names
      • unregisterServices

        void unregisterServices​(Set<Service> setServices)
        Removes the supplied set of Services from monitoring. Note that the services are not being stopped; they are just removed from the list of Services that are being monitored.
        Parameters:
        setServices - the set of Services to be removed from monitoring
      • stopMonitoring

        void stopMonitoring()
        Stop monitoring all registered services. Note that the services are not being stopped; they are just removed from the list of Services that are being monitored.
      • isMonitoring

        boolean isMonitoring()
        Returns true iff the ServiceMonitor is monitoring a number of services.
        Returns:
        returns true iff the ServiceMonitor is monitoring a number of services
      • getThread

        Thread getThread()
        Return the thread used by this ServiceMonitor.