Modifier and Type | Field and Description |
---|---|
static int |
STARTED |
static int |
STARTING |
protected CountDownLatch |
startLatch |
protected int |
status |
static int |
STOPPED |
static int |
STOPPING |
Constructor and Description |
---|
OOoState() |
Modifier and Type | Method and Description |
---|---|
int |
getStatus() |
boolean |
isAlive()
Same as
isAlive(long, TimeUnit) with a 60 seconds timeout |
boolean |
isAlive(long timeout,
TimeUnit unit)
Tests whether the server is started.
|
boolean |
isStarted() |
boolean |
isStarting() |
boolean |
isStopped() |
boolean |
isStopping() |
void |
update(int state) |
public static final int STOPPED
public static final int STARTING
public static final int STARTED
public static final int STOPPING
protected volatile int status
protected volatile CountDownLatch startLatch
public OOoState()
public void update(int state)
public int getStatus()
public boolean isStarted()
public boolean isStarting()
public boolean isStopping()
public boolean isStopped()
public boolean isAlive() throws InterruptedException
isAlive(long, TimeUnit)
with a 60 seconds timeoutInterruptedException
public boolean isAlive(long timeout, TimeUnit unit) throws InterruptedException
InterruptedException
Copyright © 2018 Nuxeo. All rights reserved.