Interface ServiceListener<S>

    • Method Detail

      • listenerAdded

        void listenerAdded​(ServiceController<? extends S> controller)
        Deprecated.
        The listener has been added to a controller.
        Parameters:
        controller - the controller that this listener was added to
      • transition

        void transition​(ServiceController<? extends S> controller,
                        ServiceController.Transition transition)
        Deprecated.
        The service has transitioned to a new sub-state.
        Parameters:
        controller - the controller
        transition - the transition that occurred
      • serviceRemoveRequested

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

        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.
        Parameters:
        controller - the controller.
      • dependencyFailed

        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.

        Parameters:
        controller - the controller
      • dependencyFailureCleared

        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.
        Parameters:
        controller - the controller
      • immediateDependencyUnavailable

        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.

        Parameters:
        controller - the controller
      • transitiveDependencyUnavailable

        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.

        Parameters:
        controller - the controller