Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for requestForcefulStop (0.17 sec)

  1. platforms/core-runtime/launcher/src/test/groovy/org/gradle/launcher/daemon/server/DaemonStateCoordinatorTest.groovy

            }
            0 * _._
        }
    
        def "requestForcefulStop stops immediately when idle"() {
            expect:
            notStopped
    
            when:
            coordinator.requestForcefulStop("stop")
    
            then:
            coordinator.willRefuseNewCommands
            stopped
            0 * _._
        }
    
        def "requestForcefulStop causes command to be abandoned immediately"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sun May 05 22:24:02 UTC 2024
    - 16.3K bytes
    - Viewed (0)
  2. platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/server/api/DaemonStateControl.java

         *
         * <p>The daemon will stop accepting new work, so that subsequent calls to {@link #runCommand} will failing with {@link DaemonUnavailableException}.
         */
        void requestForcefulStop(String reason);
    
        /**
         * Returns the current state of the daemon
         *
         * @return The current state of the daemon
         */
        State getState();
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sun May 05 22:24:02 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  3. platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/server/DaemonStateCoordinator.java

                    } else {
                        stopNow(reason);
                    }
                }
            } finally {
                lock.unlock();
            }
        }
    
        @Override
        public void requestForcefulStop(String reason) {
            LOGGER.lifecycle(DAEMON_STOPPING_IMMEDIATELY_MESSAGE + reason);
            stopNow(reason);
        }
    
        /**
         * Forcibly stops the daemon, even if it is busy.
         *
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 06:47:38 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  4. platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/server/Daemon.java

                        registryUpdater.onExpire(result.getReason(), expirationCheck);
                    }
    
                    if (expirationCheck == IMMEDIATE_EXPIRE) {
                        stateControl.requestForcefulStop(result.getReason());
                    } else {
                        stateControl.requestStop(result.getReason());
                    }
                }
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 06:47:38 UTC 2024
    - 12.9K bytes
    - Viewed (0)
Back to top