Search in sources :

Example 1 with HandleStop

use of org.gradle.launcher.daemon.server.api.HandleStop in project gradle by gradle.

the class DaemonServices method createDaemonCommandActions.

protected ImmutableList<DaemonCommandAction> createDaemonCommandActions(DaemonContext daemonContext, ProcessEnvironment processEnvironment, DaemonHealthStats healthStats, DaemonHealthCheck healthCheck, BuildExecuter buildActionExecuter, DaemonRunningStats runningStats) {
    File daemonLog = getDaemonLogFile();
    DaemonDiagnostics daemonDiagnostics = new DaemonDiagnostics(daemonLog, daemonContext.getPid());
    return ImmutableList.of(new HandleStop(get(ListenerManager.class)), new HandleCancel(), new HandleReportStatus(), new ReturnResult(), // from this point down, the daemon is 'busy'
    new StartBuildOrRespondWithBusy(daemonDiagnostics), new EstablishBuildEnvironment(processEnvironment), // from this point down, logging is sent back to the client
    new LogToClient(loggingManager, daemonDiagnostics), new LogAndCheckHealth(healthStats, healthCheck), new ForwardClientInput(), new RequestStopIfSingleUsedDaemon(), new ResetDeprecationLogger(), new WatchForDisconnection(), new ExecuteBuild(buildActionExecuter, runningStats, this));
}
Also used : LogAndCheckHealth(org.gradle.launcher.daemon.server.exec.LogAndCheckHealth) ForwardClientInput(org.gradle.launcher.daemon.server.exec.ForwardClientInput) ResetDeprecationLogger(org.gradle.launcher.daemon.server.exec.ResetDeprecationLogger) HandleStop(org.gradle.launcher.daemon.server.api.HandleStop) RequestStopIfSingleUsedDaemon(org.gradle.launcher.daemon.server.exec.RequestStopIfSingleUsedDaemon) HandleReportStatus(org.gradle.launcher.daemon.server.api.HandleReportStatus) ExecuteBuild(org.gradle.launcher.daemon.server.exec.ExecuteBuild) StartBuildOrRespondWithBusy(org.gradle.launcher.daemon.server.exec.StartBuildOrRespondWithBusy) EstablishBuildEnvironment(org.gradle.launcher.daemon.server.exec.EstablishBuildEnvironment) WatchForDisconnection(org.gradle.launcher.daemon.server.exec.WatchForDisconnection) DaemonDiagnostics(org.gradle.launcher.daemon.diagnostics.DaemonDiagnostics) ReturnResult(org.gradle.launcher.daemon.server.exec.ReturnResult) HandleCancel(org.gradle.launcher.daemon.server.exec.HandleCancel) File(java.io.File) LogToClient(org.gradle.launcher.daemon.server.exec.LogToClient)

Aggregations

File (java.io.File)1 DaemonDiagnostics (org.gradle.launcher.daemon.diagnostics.DaemonDiagnostics)1 HandleReportStatus (org.gradle.launcher.daemon.server.api.HandleReportStatus)1 HandleStop (org.gradle.launcher.daemon.server.api.HandleStop)1 EstablishBuildEnvironment (org.gradle.launcher.daemon.server.exec.EstablishBuildEnvironment)1 ExecuteBuild (org.gradle.launcher.daemon.server.exec.ExecuteBuild)1 ForwardClientInput (org.gradle.launcher.daemon.server.exec.ForwardClientInput)1 HandleCancel (org.gradle.launcher.daemon.server.exec.HandleCancel)1 LogAndCheckHealth (org.gradle.launcher.daemon.server.exec.LogAndCheckHealth)1 LogToClient (org.gradle.launcher.daemon.server.exec.LogToClient)1 RequestStopIfSingleUsedDaemon (org.gradle.launcher.daemon.server.exec.RequestStopIfSingleUsedDaemon)1 ResetDeprecationLogger (org.gradle.launcher.daemon.server.exec.ResetDeprecationLogger)1 ReturnResult (org.gradle.launcher.daemon.server.exec.ReturnResult)1 StartBuildOrRespondWithBusy (org.gradle.launcher.daemon.server.exec.StartBuildOrRespondWithBusy)1 WatchForDisconnection (org.gradle.launcher.daemon.server.exec.WatchForDisconnection)1