Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for getActiveInstances (0.11 seconds)

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

        }
    
        /**
         * Returns a list of currently active instances based on non-expired heartbeat documents.
         *
         * @return the list of active instances.
         */
        public List<InstanceInfo> getActiveInstances() {
            final List<InstanceInfo> instances = new ArrayList<>();
            final long now = System.currentTimeMillis();
            final String query = toJson(Map.of( //
    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 CurlResponse mockResponse = createMockResponse(200, opJson);
    
            // Use a subclass to mock both CurlHelper access and getActiveInstances
            final CoordinatorHelper helper = new CoordinatorHelper() {
                @Override
                public List<InstanceInfo> getActiveInstances() {
                    final InstanceInfo info = new InstanceInfo();
                    info.instanceId = "node1@host1";
    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