- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for ChannelInfo (0.07 sec)
-
src/test/java/jcifs/internal/smb2/multichannel/ChannelLoadBalancerTest.java
@Mock private SmbTransport mockTransport2; @Mock private CommonServerMessageBlock mockMessage; private ChannelLoadBalancer loadBalancer; private ChannelInfo channel1; private ChannelInfo channel2; @BeforeEach void setUp() throws UnknownHostException { loadBalancer = new ChannelLoadBalancer(mockChannelManager);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 05:11:12 UTC 2025 - 7.7K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/multichannel/ChannelInfoTest.java
channelInfo.addBytesSent(1000); channelInfo.addBytesReceived(2000); channelInfo.incrementRequestsSent(); channelInfo.incrementErrors(); assertEquals(1000, channelInfo.getBytesSent()); assertEquals(2000, channelInfo.getBytesReceived()); assertEquals(1, channelInfo.getRequestsSent()); assertEquals(1, channelInfo.getErrors());
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 11:13:46 UTC 2025 - 7.4K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/multichannel/ChannelLoadBalancer.java
} } private ChannelInfo selectRoundRobin(Collection<ChannelInfo> channels) { List<ChannelInfo> list = new ArrayList<>(channels); int index = Math.abs(roundRobinCounter.getAndIncrement() % list.size()); return list.get(index); } private ChannelInfo selectLeastLoaded(Collection<ChannelInfo> channels) { ChannelInfo leastLoadedChannel = null;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 8.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/multichannel/ChannelManagerTest.java
NetworkInterfaceInfo localInterface = new NetworkInterfaceInfo(addr, 1000); NetworkInterfaceInfo remoteInterface = new NetworkInterfaceInfo(addr, 1000); ChannelInfo healthyChannel = new ChannelInfo("test-channel", mockTransport, localInterface, remoteInterface); healthyChannel.setState(ChannelState.ESTABLISHED); // Use reflection or package-private method to add channel for testing
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 11:13:46 UTC 2025 - 7.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/multichannel/MultiChannelIntegrationTest.java
NetworkInterfaceInfo remoteNic = new NetworkInterfaceInfo(remoteAddr, 445); // Mock transport doesn't have isConnected, but we can work around it ChannelInfo channel = new ChannelInfo("test-channel", mockTransport, localNic, remoteNic); channel.setState(ChannelState.ESTABLISHED); // Verify channel properties assertEquals("test-channel", channel.getChannelId());
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 11:13:46 UTC 2025 - 8.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/multichannel/ChannelFailoverTest.java
} @Test void testPendingOperationRedistribution() throws Exception { // Setup pending operations failedChannel.addPendingOperation(mockOperation); ChannelInfo alternativeChannel = mock(ChannelInfo.class); when(mockLoadBalancer.selectChannel(mockOperation)).thenReturn(alternativeChannel); IOException error = new IOException("Connection failed");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 11:13:46 UTC 2025 - 7.7K bytes - Viewed (0)