Home | History | Annotate | Download | only in base

Lines Matching defs:Service

26  * lifecycle of a service is:
35 * If the service fails while starting, running or stopping, its state will be
36 * {@link State#FAILED}, and its behavior is undefined. Such a service cannot be
47 public interface Service {
49 * If the service state is {@link State#NEW}, this initiates service startup
50 * and returns immediately. If the service has already been started, this
51 * method returns immediately without taking action. A stopped service may not
56 * service has finished starting, and returns one of {@link
58 * the service fails to start, {@link Future#get} will throw an {@link
59 * ExecutionException}, and the service's state will be {@link
67 * Initiates service startup (if necessary), returning once the service has
72 * waiting for the service to finish starting up.
74 * @return the state of the service when startup finished.
79 * Returns {@code true} if this service is {@link State#RUNNING running}.
84 * Returns the lifecycle state of the service.
89 * If the service is {@link State#STARTING} or {@link State#RUNNING}, this
90 * initiates service shutdown and returns immediately. If this is {@link
92 * started nor stopped. If the service has already been stopped, this
97 * service has finished shutting down, and either returns {@link
106 * Initiates service shutdown (if necessary), returning once the service has
113 * waiting for the service to finish shutting down.
115 * @return the state of the service when shutdown finished.
120 * The lifecycle states of a service.
125 * A service in this state is inactive. It does minimal work and consumes
131 * A service in this state is transitioning to {@link #RUNNING}.
136 * A service in this state is operational.
141 * A service in this state is transitioning to {@link #TERMINATED}.
146 * A service in this state has completed execution normally. It does minimal
152 * A service in this state has encountered a problem and may not be