Class AbstractServiceListener<S>

    • Constructor Detail

      • AbstractServiceListener

        public AbstractServiceListener()
        Deprecated.
    • Method Detail

      • listenerAdded

        public void listenerAdded​(ServiceController<? extends S> controller)
        Deprecated.
        The listener has been added to a controller.
        Specified by:
        listenerAdded in interface ServiceListener<S>
        Parameters:
        controller - the controller that this listener was added to
      • serviceRemoveRequested

        public void serviceRemoveRequested​(ServiceController<? extends S> controller)
        Deprecated.
        The service is going to be removed. Called when the service mode is changed to REMOVE.
        Specified by:
        serviceRemoveRequested in interface ServiceListener<S>
        Parameters:
        controller - the controller
      • serviceRemoveRequestCleared

        public void serviceRemoveRequestCleared​(ServiceController<? extends S> controller)
        Deprecated.
        The service removal is canceled. Called when the service mode is changed from REMOVE to any other mode. Such a mode change can only be successfully performed if setMode is called before the service is removed.
        Specified by:
        serviceRemoveRequestCleared in interface ServiceListener<S>
        Parameters:
        controller - the controller.
      • dependencyFailed

        public void dependencyFailed​(ServiceController<? extends S> controller)
        Deprecated.
        A dependency of the service has failed. Called after the dependency state transitions from STARTING to START_FAILED.

        Dependency failures that occur after the notified failure do not result in new dependencyFailed notifications. A new call to this method will be made to notify new failures only if the previous failures have been cleared.

        This method is invoked to notify both immediate and transitive dependency failures.

        Specified by:
        dependencyFailed in interface ServiceListener<S>
        Parameters:
        controller - the controller
      • dependencyFailureCleared

        public void dependencyFailureCleared​(ServiceController<? extends S> controller)
        Deprecated.
        A dependency of the service is retrying to start. Called after the dependency state transitions from START_FAILED to STARTING.
        Specified by:
        dependencyFailureCleared in interface ServiceListener<S>
        Parameters:
        controller - the controller
      • immediateDependencyUnavailable

        public void immediateDependencyUnavailable​(ServiceController<? extends S> controller)
        Deprecated.
        An immediate dependency of the service is uninstalled or administratively disabled.

        Immediate dependencies that are subsequently unavailable do not result in new immediateDependencyUnavailable notifications. A new call to this method will only be made to notify newly found unavailable dependencies if the previously unavailable dependencies have been cleared.

        Specified by:
        immediateDependencyUnavailable in interface ServiceListener<S>
        Parameters:
        controller - the controller
      • transitiveDependencyUnavailable

        public void transitiveDependencyUnavailable​(ServiceController<? extends S> controller)
        Deprecated.
        A transitive dependency of the service is uninstalled or administratively disabled.

        Transitive dependencies that are subsequently unavailable do not result in new transitiveDependencyUnavailable notifications. A new call to this method will only be made to notify newly found unavailable dependencies if the previously unavailable dependencies have all become available.

        Specified by:
        transitiveDependencyUnavailable in interface ServiceListener<S>
        Parameters:
        controller - the controller