Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for publishEvent (0.04 seconds)

  1. src/main/java/org/codelibs/fess/helper/CoordinatorHelper.java

        /**
         * Publishes an event to all instances.
         *
         * @param eventName the event name.
         * @param data optional event data.
         */
        public void publishEvent(final String eventName, final String data) {
            publishEvent(eventName, TARGET_ALL, data);
        }
    
        /**
         * Publishes an event to a specific instance or all instances.
         *
         * @param eventName the event name.
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 28 06:59:19 GMT 2026
    - 33.3K bytes
    - Click Count (0)
  2. src/test/java/org/codelibs/fess/helper/CoordinatorHelperTest.java

            final AtomicReference<String> capturedBody = new AtomicReference<>();
            final CoordinatorHelper helper = createCapturingHelper("node1@host1", null, capturedBody, createMockResponse(201, "{}"));
    
            helper.publishEvent("config_updated", "node2@host2", "web_config");
    
            assertNotNull(capturedBody.get());
            final Map<String, Object> body = coordinatorHelper.parseJson(capturedBody.get());
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 28 06:59:19 GMT 2026
    - 58.6K bytes
    - Click Count (0)
Back to Top