Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 3 of 3 for getInstanceId (0.06 seconds)

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

         * Combines scheduler.target.name (if configured), hostname, and PID
         * to ensure uniqueness across multiple JVMs on the same host.
         *
         * @return The instance ID.
         */
        public String getInstanceId() {
            final String targetName = ComponentUtil.getFessConfig().getSchedulerTargetName();
            final String hostname = getHostname();
            final long pid = ProcessHandle.current().pid();
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 28 06:59:19 GMT 2026
    - 43.2K bytes
    - Click Count (0)
  2. src/main/java/org/codelibs/fess/helper/CoordinatorHelper.java

        }
    
        /**
         * Initializes the coordinator by sending an initial heartbeat and starting the poll loop.
         */
        @PostConstruct
        public void init() {
            instanceId = ComponentUtil.getSystemHelper().getInstanceId();
            lastEventCheckTime = System.currentTimeMillis();
    
            sendHeartbeat();
    
            final FessConfig fessConfig = ComponentUtil.getFessConfig();
    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)
  3. src/test/java/org/codelibs/fess/helper/SystemHelperTest.java

                }
            });
            final String hostname = systemHelper.getHostname();
            final long pid = ProcessHandle.current().pid();
            assertEquals(hostname + ":" + pid, systemHelper.getInstanceId());
        }
    
        @Test
        public void test_getInstanceId_withTargetName() {
            // When scheduler.target.name is set, instanceId is targetName@hostname:pid
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 28 06:59:19 GMT 2026
    - 44.4K bytes
    - Click Count (0)
Back to Top