Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for PingResponse (0.17 sec)

  1. src/main/java/org/codelibs/fess/entity/PingResponse.java

    import org.opensearch.action.admin.cluster.health.ClusterHealthResponse;
    import org.opensearch.cluster.health.ClusterHealthStatus;
    import org.opensearch.common.xcontent.XContentType;
    
    public class PingResponse {
        private static final String CLUSTER_NAME = "cluster_name";
        private static final String STATUS = "status";
        private static final String TIMED_OUT = "timed_out";
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 5.9K bytes
    - Viewed (2)
  2. src/main/java/org/codelibs/fess/job/PingSearchEngineJob.java

    import static org.codelibs.core.stream.StreamUtil.stream;
    
    import org.apache.logging.log4j.LogManager;
    import org.apache.logging.log4j.Logger;
    import org.codelibs.core.lang.StringUtil;
    import org.codelibs.fess.entity.PingResponse;
    import org.codelibs.fess.es.client.SearchEngineClient;
    import org.codelibs.fess.helper.NotificationHelper;
    import org.codelibs.fess.helper.SystemHelper;
    import org.codelibs.fess.mylasta.direction.FessConfig;
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/api/json/SearchApiManager.java

            try {
                final PingResponse pingResponse = searchEngineClient.ping();
                writeJsonResponse(pingResponse.getStatus() == 0 ? HttpServletResponse.SC_OK : HttpServletResponse.SC_SERVICE_UNAVAILABLE,
                        "\"data\":" + pingResponse.getMessage());
            } catch (final Exception e) {
                if (logger.isDebugEnabled()) {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Sat Oct 12 01:54:46 UTC 2024
    - 50.3K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/es/client/SearchEngineClient.java

                }
            });
    
        }
    
        public PingResponse ping() {
            try {
                final ClusterHealthResponse response =
                        client.admin().cluster().prepareHealth().execute().actionGet(ComponentUtil.getFessConfig().getIndexHealthTimeout());
                return new PingResponse(response);
            } catch (final OpenSearchException e) {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Sun Oct 20 02:08:03 UTC 2024
    - 86.1K bytes
    - Viewed (0)
Back to top