@InterfaceAudience.Private public interface Service
Modifier and Type | Method and Description |
---|---|
boolean |
isRunning() |
void |
startAndWait()
Initiates service startup (if necessary), returning once the service has finished starting.
|
void |
stopAndWait()
Initiates service shutdown (if necessary), returning once the service has finished stopping.
|
void startAndWait() throws IOException
IOException
- Throws exception if already running and if we fail to start successfully.boolean isRunning()
void stopAndWait() throws IOException
IOException
- Throws exception if not running of if we fail to stop successfully.Copyright © 2007–2017 The Apache Software Foundation. All rights reserved.