- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 10 for WitnessEventType (0.11 sec)
-
src/main/java/jcifs/internal/witness/WitnessEventType.java
return value; } /** * Gets a WitnessEventType from its numeric value. * * @param value the numeric value * @return the corresponding WitnessEventType * @throws IllegalArgumentException if value is not recognized */ public static WitnessEventType fromValue(int value) { for (WitnessEventType type : values()) { if (type.value == value) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 09:06:40 UTC 2025 - 2.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/witness/WitnessEnumTest.java
void testWitnessEventTypes() { assertEquals(7, WitnessEventType.values().length); WitnessEventType[] events = WitnessEventType.values(); // Verify all expected event types with correct values assertEquals(1, WitnessEventType.RESOURCE_CHANGE.getValue()); assertEquals(2, WitnessEventType.CLIENT_MOVE.getValue()); assertEquals(3, WitnessEventType.SHARE_MOVE.getValue());
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 09:06:40 UTC 2025 - 6.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/witness/WitnessIntegrationTest.java
// 3. Event notifications mockService.sendNotification(WitnessEventType.RESOURCE_CHANGE, "\\\\cluster\\share"); mockService.sendNotification(WitnessEventType.CLIENT_MOVE, "\\\\cluster\\share"); mockService.sendNotification(WitnessEventType.NODE_AVAILABLE, "\\\\cluster\\share"); // 4. Cleanup and unregistration
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 09:06:40 UTC 2025 - 9.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/witness/WitnessNotificationTest.java
private WitnessNotification notification; @BeforeEach void setUp() { notification = new WitnessNotification(WitnessEventType.CLIENT_MOVE, "TestResource"); } @Test void testNotificationCreation() { assertEquals(WitnessEventType.CLIENT_MOVE, notification.getEventType()); assertEquals("TestResource", notification.getResourceName());
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 09:06:40 UTC 2025 - 5K bytes - Viewed (0) -
src/main/java/jcifs/internal/witness/WitnessNotification.java
/** * Gets the event type. * * @return the event type */ public WitnessEventType getEventType() { return eventType; } /** * Sets the event type. * * @param eventType the event type */ public void setEventType(WitnessEventType eventType) { this.eventType = eventType; } /** * Gets the resource name.
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 24 00:12:28 UTC 2025 - 6.4K bytes - Viewed (0) -
src/main/java/jcifs/internal/witness/WitnessClient.java
} } /** * Converts RPC message type to WitnessEventType. * * @param messageType the RPC message type * @return the corresponding WitnessEventType */ private WitnessEventType convertMessageTypeToEventType(int messageType) { switch (messageType) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 20.8K bytes - Viewed (0) -
src/main/java/jcifs/internal/witness/WitnessAsyncNotifyMessage.java
// Default constructor } private WitnessEventType notificationType; private int length; private List<WitnessNotificationMessage> messages; /** * Gets the notification type. * * @return the witness event type for this notification */ public WitnessEventType getNotificationType() { return notificationType; }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 24 00:12:28 UTC 2025 - 16.4K bytes - Viewed (0) -
docs/smb3-features/06-witness-protocol-design.md
} @Test public void testWitnessNotification() { WitnessNotification notification = new WitnessNotification( WitnessEventType.CLIENT_MOVE, "TestResource"); notification.addNewIPAddress(InetAddress.getByName("192.168.1.101")); assertEquals(WitnessEventType.CLIENT_MOVE, notification.getEventType()); assertEquals("TestResource", notification.getResourceName());
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 02:53:50 UTC 2025 - 42K bytes - Viewed (0) -
src/test/java/jcifs/internal/witness/WitnessClientTest.java
// Create and process a notification WitnessNotification notification = new WitnessNotification(WitnessEventType.CLIENT_MOVE, "\\\\server\\share"); notification.addNewIPAddress(InetAddress.getByName("192.168.1.101")); client.processNotification(notification); // Verify notification was delivered
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 09:06:40 UTC 2025 - 9.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/witness/MockWitnessService.java
} /** * Simulate sending a witness notification * * @param eventType the event type * @param resourceName the resource name */ public void sendNotification(WitnessEventType eventType, String resourceName) { // In a real implementation, this would send notifications to registered clients // For the mock, we just log it
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 09:06:40 UTC 2025 - 8.2K bytes - Viewed (0)