Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for failCounts (0.18 sec)

  1. src/test/java/jcifs/smb/SmbTransportPoolImplTest.java

            Field failCountsField = SmbTransportPoolImpl.class.getDeclaredField("failCounts");
            failCountsField.setAccessible(true);
            @SuppressWarnings("unchecked")
            Map<String, Integer> failCounts = (Map<String, Integer>) failCountsField.get(pool);
    
            // When: Add fail counts
            failCounts.put("192.168.1.1", 3);
            failCounts.put("192.168.1.2", 1);
    
            // Then: Should be accessible
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 19.2K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb/SmbTransportPoolImpl.java

                    final String hostAddress = addr.getHostAddress();
                    final Integer failCount = this.failCounts.get(hostAddress);
                    if (failCount == null) {
                        this.failCounts.put(hostAddress, 1);
                    } else {
                        this.failCounts.put(hostAddress, failCount + 1);
                    }
                    ex = e;
                }
            }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 33.4K bytes
    - Viewed (0)
  3. cmd/site-replication-utils.go

    	if currSt != ResyncStarted {
    		return currSt
    	}
    	totBuckets := len(m)
    	var cmpCount, failCount int
    	for _, st := range m {
    		switch st {
    		case ResyncCompleted:
    			cmpCount++
    		case ResyncFailed:
    			failCount++
    		}
    	}
    	if cmpCount == totBuckets {
    		return ResyncCompleted
    	}
    	if cmpCount+failCount == totBuckets {
    		return ResyncFailed
    	}
    	return ResyncStarted
    }
    
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 8.8K bytes
    - Viewed (0)
Back to top