Search in sources :

Example 1 with DaemonStopClient

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);
}
Also used : ServiceRegistry(org.gradle.internal.service.ServiceRegistry) BuildLayoutParameters(org.gradle.initialization.BuildLayoutParameters) DaemonParameters(org.gradle.launcher.daemon.configuration.DaemonParameters) DaemonStopClient(org.gradle.launcher.daemon.client.DaemonStopClient)

Example 2 with DaemonStopClient

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);
}
Also used : DaemonClientFactory(org.gradle.launcher.daemon.client.DaemonClientFactory) ServiceRegistry(org.gradle.internal.service.ServiceRegistry) OutputEventListener(org.gradle.internal.logging.events.OutputEventListener) DaemonStopClient(org.gradle.launcher.daemon.client.DaemonStopClient)

Aggregations

ServiceRegistry (org.gradle.internal.service.ServiceRegistry)2 DaemonStopClient (org.gradle.launcher.daemon.client.DaemonStopClient)2 BuildLayoutParameters (org.gradle.initialization.BuildLayoutParameters)1 OutputEventListener (org.gradle.internal.logging.events.OutputEventListener)1 DaemonClientFactory (org.gradle.launcher.daemon.client.DaemonClientFactory)1 DaemonParameters (org.gradle.launcher.daemon.configuration.DaemonParameters)1