use of org.gradle.launcher.daemon.client.DaemonStopClient in project gradle by gradle.
the class ShutdownCoordinator method stop.
public void stop() {
ServiceRegistry clientServices = clientFactory.createStopDaemonServices(outputEventListener, new DaemonParameters(new BuildLayoutParameters()));
DaemonStopClient client = clientServices.get(DaemonStopClient.class);
client.gracefulStop(daemons);
}
use of org.gradle.launcher.daemon.client.DaemonStopClient in project gradle by gradle.
the class BuildActionsFactory method stopAllDaemons.
private Runnable stopAllDaemons(DaemonParameters daemonParameters, ServiceRegistry loggingServices) {
ServiceRegistry clientSharedServices = createGlobalClientServices();
ServiceRegistry clientServices = clientSharedServices.get(DaemonClientFactory.class).createStopDaemonServices(loggingServices.get(OutputEventListener.class), daemonParameters);
DaemonStopClient stopClient = clientServices.get(DaemonStopClient.class);
return new StopDaemonAction(stopClient);
}
Aggregations