- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for handleFailure (0.7 sec)
-
src/test/java/jcifs/internal/smb2/multichannel/ChannelFailoverTest.java
when(mockChannelManager.getLoadBalancer()).thenReturn(mockLoadBalancer); } @Test void testHandleFailure() { IOException error = new IOException("Connection failed"); failover.handleFailure(failedChannel, error); assertEquals(ChannelState.FAILED, failedChannel.getState()); verify(mockChannelManager).removeChannel(failedChannel); } @Test void testFailoverStateCreation() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 11:13:46 UTC 2025 - 7.7K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/multichannel/ChannelFailover.java
} /** * Handle channel failure * * @param failedChannel failed channel * @param error error that caused failure */ public void handleFailure(ChannelInfo failedChannel, Exception error) { log.warn("Channel {} failed: {}", failedChannel.getChannelId(), error.getMessage()); // Mark channel as failed failedChannel.setState(ChannelState.FAILED);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 11:13:46 UTC 2025 - 11.6K bytes - Viewed (0) -
docs/smb3-features/03-multi-channel-design.md
public ChannelInfo selectChannel(SMBMessage message) { return loadBalancer.selectChannel(message); } public void handleChannelFailure(ChannelInfo channel, Exception error) { failover.handleFailure(channel, error); } private void performHealthCheck() { for (ChannelInfo channel : channels.values()) { if (channel.getIdleTime() > 60000) { // 1 minute idle
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 02:53:50 UTC 2025 - 39.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/multichannel/MultiChannelIntegrationTest.java
channel.setState(ChannelState.ESTABLISHED); // Simulate failure IOException failure = new IOException("Connection lost"); failover.handleFailure(channel, failure); // Verify channel state changed assertFalse(channel.isHealthy()); assertEquals(ChannelState.FAILED, channel.getState()); } @Test
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/main/java/jcifs/internal/smb2/multichannel/ChannelManager.java
* * @param channel failed channel * @param error error that caused failure */ public void handleChannelFailure(ChannelInfo channel, Exception error) { failover.handleFailure(channel, error); } /** * Get channel for specific transport * * @param transport transport instance * @return corresponding channel or null */
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 11:13:46 UTC 2025 - 20K bytes - Viewed (0)