Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for OnDisconnect (0.1 sec)

  1. platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/server/exec/WatchForDisconnection.java

        @Override
        public void execute(final DaemonCommandExecution execution) {
            // Watch for the client disconnecting before we call stop()
            execution.getConnection().onDisconnect(new Runnable() {
                @Override
                public void run() {
                    LOGGER.warn("thread {}: client disconnection detected, canceling the build", Thread.currentThread().getId());
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  2. pilot/pkg/autoregistration/connections.go

    	ID() string
    	Proxy() *model.Proxy
    	ConnectedAt() time.Time
    	Stop()
    }
    
    // a single proxy may have multiple connections, so we track them here
    // when a WorkloadGroup is deleted, we can force disconnects
    // when OnDisconnect occurs, we only trigger cleanup when there are no more connections for that proxy
    type adsConnections struct {
    	sync.Mutex
    
    	// keyed by proxy id, then connection id
    	byProxy map[proxyKey]map[string]connection
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Sep 19 20:41:55 UTC 2023
    - 3K bytes
    - Viewed (0)
  3. tests/fuzz/autoregistration_controller_fuzzer.go

    // in the workloadentry package. It does so by setting
    // up a workloadentry controller with a proxy with
    // pseudo-random values.
    // The fuzzer then uses the controller to test:
    // 1: OnConnect
    // 2: OnDisconnect
    // 3: QueueWorkloadEntryHealth
    func FuzzWE(data []byte) int {
    	f := fuzz.NewConsumer(data)
    	proxy := &model.Proxy{}
    	err := f.GenerateStruct(proxy)
    	if err != nil {
    		return 0
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Sep 19 20:41:55 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  4. platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/server/api/DaemonConnection.java

         * </ul>
         *
         * Note: the handler may be run from another thread before this method returns.
         *
         * @param handler the handler. Use null to remove the current handler.
         */
        void onDisconnect(@Nullable Runnable handler);
    
        /**
         * Registers a handler for when this connection receives cancel command. The handler is notified at most once.
         *
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 19:51:37 UTC 2024
    - 3.8K bytes
    - Viewed (0)
Back to top