Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for WitnessEventType (0.06 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
Back to top