- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 12 for DaemonConnectDetails (0.2 sec)
-
platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/context/DaemonConnectDetails.java
* limitations under the License. */ package org.gradle.launcher.daemon.context; import org.gradle.internal.remote.Address; /** * Data to identify and connect to a daemon. */ public interface DaemonConnectDetails { String getUid(); Long getPid(); Address getAddress(); byte[] getToken();
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:29:13 UTC 2023 - 893 bytes - Viewed (0) -
platforms/core-runtime/launcher/src/test/groovy/org/gradle/launcher/daemon/client/DaemonClientTest.groovy
_ * connection.daemon >> Stub(DaemonConnectDetails) 1 * connection.dispatch({ it instanceof Build }) >> { throw new StaleDaemonAddressException("broken", new RuntimeException()) } 1 * connection.stop() _ * connection2.daemon >> Stub(DaemonConnectDetails) 2 * connection2.receive() >>> [Stub(BuildStarted), new Success(resultMessage)]
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed May 15 19:54:56 UTC 2024 - 10K bytes - Viewed (0) -
platforms/core-runtime/launcher/src/main/java/org/gradle/tooling/internal/provider/ShutdownCoordinator.java
import org.gradle.launcher.daemon.context.DaemonConnectDetails; import java.util.Set; import java.util.concurrent.CopyOnWriteArraySet; @ServiceScope(Scope.Global.class) public class ShutdownCoordinator implements DaemonStartListener, Stoppable { private final Set<DaemonConnectDetails> daemons = new CopyOnWriteArraySet<DaemonConnectDetails>(); private final DaemonStopClient client;
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sun May 05 22:24:02 UTC 2024 - 1.6K bytes - Viewed (0) -
platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/client/DaemonStopClient.java
} /** * Requests that the given daemons stop when idle. Does not block and returns before the daemons have all stopped. */ public void gracefulStop(Collection<DaemonConnectDetails> daemons) { for (DaemonConnectDetails daemon : daemons) { DaemonClientConnection connection = connector.maybeConnect(daemon); if (connection == null) { continue; }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:29:13 UTC 2023 - 5.2K bytes - Viewed (0) -
platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/client/DaemonConnector.java
* limitations under the License. */ package org.gradle.launcher.daemon.client; import org.gradle.api.internal.specs.ExplainingSpec; import org.gradle.launcher.daemon.context.DaemonConnectDetails; import org.gradle.launcher.daemon.context.DaemonContext; import javax.annotation.Nullable; /** * A daemon connector establishes a connection to a daemon. */ public interface DaemonConnector {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:29:13 UTC 2023 - 2.5K bytes - Viewed (1) -
platforms/core-runtime/launcher/src/test/groovy/org/gradle/launcher/daemon/client/DaemonStopClientTest.groovy
final def idGenerator = new UUIDGenerator() final def client = new DaemonStopClient(connector, idGenerator) def "requests daemons stop gracefully"() { def daemon1 = Stub(DaemonConnectDetails) def daemon2 = Stub(DaemonConnectDetails) when: client.gracefulStop([daemon1, daemon2]) then: 1 * connector.maybeConnect(daemon1) >>> connection _ * connection.daemon >> daemon1
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:29:13 UTC 2023 - 5.7K bytes - Viewed (0) -
platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/client/DaemonClientConnection.java
private final RemoteConnection<Message> connection; private final DaemonConnectDetails daemon; private final StaleAddressDetector staleAddressDetector; private boolean hasReceived; private final Lock dispatchLock = new ReentrantLock(); private boolean suspect; public DaemonClientConnection(RemoteConnection<Message> connection, DaemonConnectDetails daemon, StaleAddressDetector staleAddressDetector) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Apr 30 06:43:50 UTC 2024 - 4.2K bytes - Viewed (0) -
platforms/core-runtime/launcher/src/test/groovy/org/gradle/launcher/daemon/client/DaemonClientConnectionTest.groovy
import org.gradle.internal.remote.internal.RemoteConnection import org.gradle.launcher.daemon.context.DaemonConnectDetails import org.gradle.launcher.daemon.protocol.Message import spock.lang.Specification class DaemonClientConnectionTest extends Specification { final delegate = Mock(RemoteConnection) final daemon = Mock(DaemonConnectDetails) final staleAddressDetector = Mock(DaemonClientConnection.StaleAddressDetector)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:29:13 UTC 2023 - 3.8K bytes - Viewed (0) -
platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/client/DaemonStartListener.java
import org.gradle.internal.service.scopes.Scope.Global; import org.gradle.launcher.daemon.context.DaemonConnectDetails; /** * Notified when a daemon is started. */ @EventScope(Global.class) public interface DaemonStartListener { void daemonStarted(DaemonConnectDetails daemonInfo);
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Mar 12 02:21:10 UTC 2024 - 1006 bytes - Viewed (0) -
platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/client/DefaultDaemonConnector.java
} private class CleanupOnStaleAddress implements DaemonClientConnection.StaleAddressDetector { private final DaemonConnectDetails daemon; private final boolean exposeAsStale; public CleanupOnStaleAddress(DaemonConnectDetails daemon, boolean exposeAsStale) { this.daemon = daemon; this.exposeAsStale = exposeAsStale; } @Override
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:29:13 UTC 2023 - 14.1K bytes - Viewed (0)