Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for storeStopEvent (0.14 sec)

  1. platforms/core-runtime/launcher/src/integTest/groovy/org/gradle/launcher/daemon/DaemonReportStatusIntegrationSpec.groovy

            given:
            daemons.getRegistry().storeStopEvent(new DaemonStopEvent(new Date(), 12345L, DaemonExpirationStatus.IMMEDIATE_EXPIRE, "IMMEDIATE_EXPIRE_REASON"))
            daemons.getRegistry().storeStopEvent(new DaemonStopEvent(new Date(), 12345L, DaemonExpirationStatus.GRACEFUL_EXPIRE, "GRACEFUL_EXPIRE_REASON"))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  2. platforms/core-runtime/launcher/src/test/groovy/org/gradle/launcher/daemon/registry/PersistentDaemonRegistryTest.groovy

        def "clears single stop event when non-empty"() {
            given:
            def stopEvent = new DaemonStopEvent(new Date(1L), new Random().nextLong(), DaemonExpirationStatus.GRACEFUL_EXPIRE, "STOP_REASON")
            registry.storeStopEvent(stopEvent)
    
            when:
            registry.removeStopEvents([stopEvent])
    
            then:
            registry.stopEvents.empty
        }
    
        def "clears multiple stop events when non-empty"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 24 00:09:57 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  3. platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/registry/DaemonRegistry.java

        List<DaemonInfo> getNotIdle();
        List<DaemonInfo> getCanceled();
    
        void store(DaemonInfo info);
        void remove(Address address);
        void markState(Address address, State state);
    
        void storeStopEvent(DaemonStopEvent stopEvent);
        List<DaemonStopEvent> getStopEvents();
        void removeStopEvents(Collection<DaemonStopEvent> stopEvents);
    
        static class EmptyRegistryException extends RuntimeException {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sun May 05 22:23:18 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  4. platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/server/DaemonRegistryUpdater.java

        public void onExpire(String reason, DaemonExpirationStatus status) {
            LOGGER.debug("Storing daemon stop event: {}", reason);
            final Date timestamp = new Date(System.currentTimeMillis());
            daemonRegistry.storeStopEvent(new DaemonStopEvent(timestamp, daemonContext.getPid(), status, reason));
        }
    
        @Override
        public void stop() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 4K bytes
    - Viewed (0)
  5. platforms/core-runtime/launcher/src/test/groovy/org/gradle/launcher/daemon/registry/EmbeddedDaemonRegistry.java

        public void markState(Address address, State state) {
            synchronized (daemonInfos) {
                daemonInfos.get(address).setState(state);
            }
        }
    
        @Override
        public void storeStopEvent(DaemonStopEvent stopEvent) {
            stopEvents.add(stopEvent);
        }
    
        @Override
        public List<DaemonStopEvent> getStopEvents() {
            return stopEvents;
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  6. platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/registry/PersistentDaemonRegistry.java

                        return oldValue;
                    }});
            } finally {
                lock.unlock();
            }
        }
    
        @Override
        public void storeStopEvent(final DaemonStopEvent stopEvent) {
            lock.lock();
            try {
                LOGGER.debug("Storing daemon stop event with timestamp {}", stopEvent.getTimestamp().getTime());
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 06:47:38 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  7. platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/client/DefaultDaemonConnector.java

            final Date timestamp = new Date(System.currentTimeMillis());
            final DaemonStopEvent stopEvent = new DaemonStopEvent(timestamp, daemon.getPid(), null, reason);
            daemonRegistry.storeStopEvent(stopEvent);
            daemonRegistry.remove(daemon.getAddress());
        }
    
        private class CleanupOnStaleAddress implements DaemonClientConnection.StaleAddressDetector {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 14.1K bytes
    - Viewed (0)
Back to top