Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for DaemonStopEvent (0.19 sec)

  1. platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/registry/DaemonStopEvent.java

    import java.io.Serializable;
    import java.util.Calendar;
    import java.util.Date;
    
    /**
     * Information regarding when and why a daemon was stopped.
     */
    public class DaemonStopEvent implements Serializable {
        public static final org.gradle.internal.serialize.Serializer<DaemonStopEvent> SERIALIZER = new Serializer();
    
        private final Date timestamp;
        @Nullable
        private final Long pid;
        @Nullable
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 06:47:38 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  2. platforms/core-runtime/launcher/src/test/groovy/org/gradle/launcher/daemon/protocol/DaemonStatusAndErrorReportingTest.groovy

            status.pid == null
        }
    
        def "PID unboxing should not happen in DaemonStopEvent"() {
            given:
            Long unknownPID = null;
    
            when:
            def daemonStopEvent = new DaemonStopEvent(null, unknownPID, null, null);
    
            then:
            notThrown(NullPointerException)
            daemonStopEvent.pid == null
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 10 18:03:55 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  3. platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/registry/DaemonStopEvents.java

        private static final int RECENTLY = 1;
    
        public static List<DaemonStopEvent> uniqueRecentDaemonStopEvents(final List<DaemonStopEvent> stopEvents) {
            final Set<Long> uniqueStoppedPids = new HashSet<Long>(stopEvents.size());
            final List<DaemonStopEvent> recentStopEvents = new ArrayList<DaemonStopEvent>(stopEvents.size());
    
            final List<DaemonStopEvent> sortedEvents = CollectionUtils.sort(stopEvents, new Comparator<DaemonStopEvent>() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  4. platforms/core-runtime/launcher/src/test/groovy/org/gradle/launcher/daemon/registry/DaemonStopEventsTest.groovy

        def immediateStop1 = new DaemonStopEvent(new Date(), 1L, DaemonExpirationStatus.IMMEDIATE_EXPIRE, "IMMEDIATE_EXPIRE_REASON")
        def gracefulStop1 = new DaemonStopEvent(new Date(), 1L, DaemonExpirationStatus.GRACEFUL_EXPIRE, "GRACEFUL_EXPIRE_REASON")
        def nullStop1 = new DaemonStopEvent(new Date(), 1L, null, null)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  5. 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)
  6. platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/client/DefaultDaemonConnector.java

            final List<DaemonStopEvent> stopEvents = daemonRegistry.getStopEvents();
    
            // Clean up old stop events
            daemonRegistry.removeStopEvents(DaemonStopEvents.oldStopEvents(stopEvents));
    
            final List<DaemonStopEvent> recentStopEvents = DaemonStopEvents.uniqueRecentDaemonStopEvents(stopEvents);
            for (DaemonStopEvent stopEvent : recentStopEvents) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 14.1K bytes
    - Viewed (0)
  7. platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/registry/DaemonRegistryContent.java

        private final Map<Address, DaemonInfo> infosMap;
        private final List<DaemonStopEvent> stopEvents;
    
        public DaemonRegistryContent() {
            infosMap = new LinkedHashMap<Address, DaemonInfo>();
            stopEvents = new ArrayList<DaemonStopEvent>();
        }
    
        private DaemonRegistryContent(Map<Address, DaemonInfo> infosMap, List<DaemonStopEvent> stopEvents) {
            this.infosMap = infosMap;
            this.stopEvents = stopEvents;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 8.1K bytes
    - Viewed (0)
  8. platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/registry/DaemonRegistry.java

        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 {
            public EmptyRegistryException(String message) {
                super(message);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sun May 05 22:23:18 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  9. platforms/core-runtime/launcher/src/test/groovy/org/gradle/launcher/daemon/registry/PersistentDaemonRegistryTest.groovy

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

            }
        }
    
        @Override
        public void storeStopEvent(DaemonStopEvent stopEvent) {
            stopEvents.add(stopEvent);
        }
    
        @Override
        public List<DaemonStopEvent> getStopEvents() {
            return stopEvents;
        }
    
        @Override
        public void removeStopEvents(final Collection<DaemonStopEvent> events) {
            stopEvents.removeAll(events);
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 4.6K bytes
    - Viewed (0)
Back to top