Modifier and Type | Method and Description |
---|---|
void |
awaitTermination()
Blocks until all processes are terminated
|
static Monitor |
create() |
static int |
getNextProcessId() |
Lifecycle.State |
getState() |
void |
start(List<JavaCommand> commands)
Starts commands and blocks current thread until all processes are in state
Lifecycle.State.STARTED . |
void |
stop()
Blocks until all processes are terminated.
|
void |
stopAsync()
Asks for processes termination and returns without blocking until termination.
|
public void start(List<JavaCommand> commands)
Lifecycle.State.STARTED
.IllegalArgumentException
- if commands list is emptyIllegalStateException
- if already started or if at least one process failed to start. In this case
all processes are terminated. No need to execute stop()
public void awaitTermination()
public void stop()
public void stopAsync()
public Lifecycle.State getState()
public static int getNextProcessId()
Copyright © 2009–2015 SonarSource. All rights reserved.