public interface DaemonFixture
| Modifier and Type | Method and Description |
|---|---|
void |
assertBusy()
Asserts that this daemon is currently busy.
|
void |
assertCanceled()
Asserts that this daemon is in a canceled state.
|
void |
assertIdle()
Asserts that this daemon is currently idle.
|
void |
assertRegistryNotWorldReadable() |
void |
assertStopped()
Asserts that this daemon has stopped and is no longer visible to any clients.
|
void |
becomesCanceled()
Asserts that this daemon becomes canceled within a short timeout.
|
void |
becomesIdle()
Asserts that this daemon becomes idle within a short timeout.
|
void |
changeTokenVisibleToClient()
Changes the authentication token for this daemon in the registry, so that client will see a different token to that expected by this daemon
|
org.gradle.launcher.daemon.context.DaemonContext |
getContext()
Returns the context information of this daemon.
|
java.lang.String |
getLog()
Returns the log for this daemon.
|
java.io.File |
getLogFile()
Returns the log file for this daemon.
|
int |
getPort()
Returns the TCP port used by this daemon.
|
void |
kill()
Forcefully kills this daemon and all child processes.
|
void |
killDaemonOnly()
Forcefully kills this daemon, but not child processes.
|
boolean |
logContains(long fromLine,
java.lang.String searchString)
Returns whether the log file contains a given String, starting from line `fromLine`
The first line in the file is the line 0.
|
boolean |
logContains(java.lang.String searchString)
Returns whether the log file contains a given String.
|
void |
stops()
Asserts that this daemon stops and is no longer visible to any clients within a short timeout.
|
org.gradle.launcher.daemon.context.DaemonContext getContext()
java.lang.String getLog()
java.io.File getLogFile()
boolean logContains(java.lang.String searchString)
boolean logContains(long fromLine,
java.lang.String searchString)
int getPort()
void kill()
void killDaemonOnly()
void changeTokenVisibleToClient()
void assertRegistryNotWorldReadable()
void becomesIdle()
void stops()
void assertIdle()
void assertBusy()
void assertCanceled()
void becomesCanceled()
void assertStopped()