Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for CheckConflict (0.18 sec)

  1. android/guava-testlib/src/com/google/common/collect/testing/features/FeatureUtil.java

        Set<Feature<?>> morePresentFeatures = moreRequirements.getPresentFeatures();
        Set<Feature<?>> moreAbsentFeatures = moreRequirements.getAbsentFeatures();
        checkConflict("absent", absentFeatures, "present", morePresentFeatures, source);
        checkConflict("present", presentFeatures, "absent", moreAbsentFeatures, source);
        presentFeatures.addAll(morePresentFeatures);
        absentFeatures.addAll(moreAbsentFeatures);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 21 15:08:35 UTC 2022
    - 12.1K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/features/FeatureUtil.java

        Set<Feature<?>> morePresentFeatures = moreRequirements.getPresentFeatures();
        Set<Feature<?>> moreAbsentFeatures = moreRequirements.getAbsentFeatures();
        checkConflict("absent", absentFeatures, "present", morePresentFeatures, source);
        checkConflict("present", presentFeatures, "absent", moreAbsentFeatures, source);
        presentFeatures.addAll(morePresentFeatures);
        absentFeatures.addAll(moreAbsentFeatures);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 21 15:08:35 UTC 2022
    - 12.1K bytes
    - Viewed (0)
  3. pkg/scheduler/framework/plugins/nodeports/node_ports.go

    	// try to see whether existingPorts and wantPorts will conflict or not
    	existingPorts := nodeInfo.UsedPorts
    	for _, cp := range wantPorts {
    		if existingPorts.CheckConflict(cp.HostIP, string(cp.Protocol), cp.HostPort) {
    			return false
    		}
    	}
    	return true
    }
    
    // New initializes a new plugin and returns it.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 26 10:53:29 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  4. pkg/scheduler/framework/types.go

    func (h HostPortInfo) Len() int {
    	length := 0
    	for _, m := range h {
    		length += len(m)
    	}
    	return length
    }
    
    // CheckConflict checks if the input (ip, protocol, port) conflicts with the existing
    // ones in HostPortInfo.
    func (h HostPortInfo) CheckConflict(ip, protocol string, port int32) bool {
    	if port <= 0 {
    		return false
    	}
    
    	h.sanitize(&ip, &protocol)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 19:28:17 UTC 2024
    - 36.7K bytes
    - Viewed (0)
  5. pkg/scheduler/framework/types_test.go

    	for _, test := range tests {
    		t.Run(test.desc, func(t *testing.T) {
    			hp := make(HostPortInfo)
    			for _, param := range test.added {
    				hp.Add(param.ip, param.protocol, param.port)
    			}
    			if hp.CheckConflict(test.check.ip, test.check.protocol, test.check.port) != test.expect {
    				t.Errorf("expected %t; got %t", test.expect, !test.expect)
    			}
    		})
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 45.9K bytes
    - Viewed (0)
Back to top