Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for pid (0.01 seconds)

  1. src/test/java/org/codelibs/fess/helper/SystemHelperTest.java

                final long pid = ProcessHandle.current().pid();
                assertEquals("winhost:" + pid, systemHelper.getInstanceId());
            } finally {
                envMap.remove("COMPUTERNAME");
            }
        }
    
        @Test
        public void test_getInstanceId_uniquePerProcess() {
            // Verify that instanceId contains PID for process uniqueness
    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)
  2. src/main/java/org/codelibs/fess/helper/SystemHelper.java

         * 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();
            if (StringUtil.isNotBlank(targetName)) {
    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)
Back to Top