public class TestableDaemon extends AbstractDaemonFixture
context, STATE_CHANGE_TIMEOUT| Constructor and Description |
|---|
TestableDaemon(java.io.File daemonLog,
org.gradle.launcher.daemon.registry.DaemonRegistry registry) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
assertHasState(org.gradle.launcher.daemon.server.api.DaemonStateControl.State state) |
void |
assertRegistryNotWorldReadable() |
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
|
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.
|
protected void |
waitForState(org.gradle.launcher.daemon.server.api.DaemonStateControl.State state) |
assertBusy, assertCanceled, assertIdle, assertStopped, becomesCanceled, becomesIdle, getContext, kill, killDaemonOnly, logContains, logContains, stops, toStringpublic TestableDaemon(java.io.File daemonLog,
org.gradle.launcher.daemon.registry.DaemonRegistry registry)
protected void waitForState(org.gradle.launcher.daemon.server.api.DaemonStateControl.State state)
throws java.lang.InterruptedException
waitForState in class AbstractDaemonFixturejava.lang.InterruptedExceptionprotected void assertHasState(org.gradle.launcher.daemon.server.api.DaemonStateControl.State state)
assertHasState in class AbstractDaemonFixturepublic void assertRegistryNotWorldReadable()
public void changeTokenVisibleToClient()
DaemonFixturepublic java.lang.String getLog()
DaemonFixturepublic java.io.File getLogFile()
DaemonFixturepublic int getPort()
DaemonFixture