Tabnine Logo
NodesStatsRequest.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.elasticsearch.action.admin.cluster.node.stats.NodesStatsRequest
constructor

Best Java code snippets using org.elasticsearch.action.admin.cluster.node.stats.NodesStatsRequest.<init> (Showing top 20 results out of 315)

origin: floragunncom/search-guard

  NodesStatsResponse nir = tc.admin().cluster().nodesStats(new NodesStatsRequest()).actionGet();
  sb.append(Strings.toString(nir,true, true));
} catch (Exception e1) {
origin: org.elasticsearch/elasticsearch

/**
 * Creates a nodes stats request against one or more nodes. Pass {@code null} or an empty array for all nodes.
 *
 * @param nodesIds The nodes ids to get the stats for
 * @return The nodes info request
 * @see org.elasticsearch.client.ClusterAdminClient#nodesStats(org.elasticsearch.action.admin.cluster.node.stats.NodesStatsRequest)
 */
public static NodesStatsRequest nodesStatsRequest(String... nodesIds) {
  return new NodesStatsRequest(nodesIds);
}
origin: org.elasticsearch/elasticsearch

public NodesStatsRequestBuilder(ElasticsearchClient client, NodesStatsAction action) {
  super(client, action, new NodesStatsRequest());
}
origin: org.elasticsearch/elasticsearch

@Override
public void readFrom(StreamInput in) throws IOException {
  super.readFrom(in);
  request = new NodesStatsRequest();
  request.readFrom(in);
}
origin: org.elasticsearch/elasticsearch

/**
 * Retrieve the latest nodes stats, calling the listener when complete
 * @return a latch that can be used to wait for the nodes stats to complete if desired
 */
protected CountDownLatch updateNodeStats(final ActionListener<NodesStatsResponse> listener) {
  final CountDownLatch latch = new CountDownLatch(1);
  final NodesStatsRequest nodesStatsRequest = new NodesStatsRequest("data:true");
  nodesStatsRequest.clear();
  nodesStatsRequest.fs(true);
  nodesStatsRequest.timeout(fetchTimeout);
  client.admin().cluster().nodesStats(nodesStatsRequest, new LatchedActionListener<>(listener, latch));
  return latch;
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.elasticsearch

/**
 * Creates a nodes stats request against one or more nodes. Pass {@code null} or an empty array for all nodes.
 *
 * @param nodesIds The nodes ids to get the stats for
 * @return The nodes info request
 * @see org.elasticsearch.client.ClusterAdminClient#nodesStats(org.elasticsearch.action.admin.cluster.node.stats.NodesStatsRequest)
 */
public static NodesStatsRequest nodesStatsRequest(String... nodesIds) {
  return new NodesStatsRequest(nodesIds);
}
origin: org.elasticsearch/elasticsearch

@Override
protected RestChannelConsumer doCatRequest(final RestRequest request, final NodeClient client) {
  final NodesStatsRequest nodesStatsRequest = new NodesStatsRequest("data:true");
  nodesStatsRequest.clear();
  nodesStatsRequest.indices(true);
  String[] fields = request.paramAsStringArray("fields", null);
  nodesStatsRequest.indices().fieldDataFields(fields == null ? new String[] {"*"} : fields);
  return channel -> client.admin().cluster().nodesStats(nodesStatsRequest, new RestResponseListener<NodesStatsResponse>(channel) {
    @Override
    public RestResponse buildResponse(NodesStatsResponse nodeStatses) throws Exception {
      return RestTable.buildResponse(buildTable(request, nodeStatses), channel);
    }
  });
}
origin: harbby/presto-connectors

/**
 * Creates a nodes stats request against one or more nodes. Pass <tt>null</tt> or an empty array for all nodes.
 *
 * @param nodesIds The nodes ids to get the stats for
 * @return The nodes info request
 * @see org.elasticsearch.client.ClusterAdminClient#nodesStats(org.elasticsearch.action.admin.cluster.node.stats.NodesStatsRequest)
 */
public static NodesStatsRequest nodesStatsRequest(String... nodesIds) {
  return new NodesStatsRequest(nodesIds);
}
origin: com.strapdata.elasticsearch/elasticsearch

/**
 * Creates a nodes stats request against one or more nodes. Pass <tt>null</tt> or an empty array for all nodes.
 *
 * @param nodesIds The nodes ids to get the stats for
 * @return The nodes info request
 * @see org.elasticsearch.client.ClusterAdminClient#nodesStats(org.elasticsearch.action.admin.cluster.node.stats.NodesStatsRequest)
 */
public static NodesStatsRequest nodesStatsRequest(String... nodesIds) {
  return new NodesStatsRequest(nodesIds);
}
origin: apache/servicemix-bundles

public NodesStatsRequestBuilder(ElasticsearchClient client, NodesStatsAction action) {
  super(client, action, new NodesStatsRequest());
}
origin: org.elasticsearch/elasticsearch

Set<String> metrics = Strings.tokenizeByCommaToSet(request.param("metric", "_all"));
NodesStatsRequest nodesStatsRequest = new NodesStatsRequest(nodesIds);
nodesStatsRequest.timeout(request.param("timeout"));
origin: stackoverflow.com

ActionFuture<NodesStatsResponse> nsr =  client().admin().cluster().nodesStats(new NodesStatsRequest());
<br>
System.out.println(nsr.get().toString());
</br>
origin: apache/servicemix-bundles

@Override
public void readFrom(StreamInput in) throws IOException {
  super.readFrom(in);
  request = new NodesStatsRequest();
  request.readFrom(in);
}
origin: com.strapdata.elasticsearch/elasticsearch

@Override
public void readFrom(StreamInput in) throws IOException {
  super.readFrom(in);
  request = new NodesStatsRequest();
  request.readFrom(in);
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.elasticsearch

@Override
public void readFrom(StreamInput in) throws IOException {
  super.readFrom(in);
  request = new NodesStatsRequest();
  request.readFrom(in);
}
origin: harbby/presto-connectors

@Override
public void readFrom(StreamInput in) throws IOException {
  super.readFrom(in);
  request = new NodesStatsRequest();
  request.readFrom(in);
}
origin: harbby/presto-connectors

  @Override
  public void processResponse(final ClusterStateResponse state) {
    NodesStatsRequest statsRequest = new NodesStatsRequest(nodes);
    statsRequest.clear().fs(true).indices(new CommonStatsFlags(CommonStatsFlags.Flag.Store));
    client.admin().cluster().nodesStats(statsRequest, new RestResponseListener<NodesStatsResponse>(channel) {
      @Override
      public RestResponse buildResponse(NodesStatsResponse stats) throws Exception {
        Table tab = buildTable(request, state, stats);
        return RestTable.buildResponse(tab, channel);
      }
    });
  }
});
origin: apache/servicemix-bundles

/**
 * Retrieve the latest nodes stats, calling the listener when complete
 * @return a latch that can be used to wait for the nodes stats to complete if desired
 */
protected CountDownLatch updateNodeStats(final ActionListener<NodesStatsResponse> listener) {
  final CountDownLatch latch = new CountDownLatch(1);
  final NodesStatsRequest nodesStatsRequest = new NodesStatsRequest("data:true");
  nodesStatsRequest.clear();
  nodesStatsRequest.fs(true);
  nodesStatsRequest.timeout(fetchTimeout);
  client.admin().cluster().nodesStats(nodesStatsRequest, new LatchedActionListener<>(listener, latch));
  return latch;
}
origin: com.strapdata.elasticsearch/elasticsearch

/**
 * Retrieve the latest nodes stats, calling the listener when complete
 * @return a latch that can be used to wait for the nodes stats to complete if desired
 */
protected CountDownLatch updateNodeStats(final ActionListener<NodesStatsResponse> listener) {
  final CountDownLatch latch = new CountDownLatch(1);
  final NodesStatsRequest nodesStatsRequest = new NodesStatsRequest("data:true");
  nodesStatsRequest.clear();
  nodesStatsRequest.fs(true);
  nodesStatsRequest.timeout(fetchTimeout);
  client.admin().cluster().nodesStats(nodesStatsRequest, new LatchedActionListener<>(listener, latch));
  return latch;
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.elasticsearch

/**
 * Retrieve the latest nodes stats, calling the listener when complete
 * @return a latch that can be used to wait for the nodes stats to complete if desired
 */
protected CountDownLatch updateNodeStats(final ActionListener<NodesStatsResponse> listener) {
  final CountDownLatch latch = new CountDownLatch(1);
  final NodesStatsRequest nodesStatsRequest = new NodesStatsRequest("data:true");
  nodesStatsRequest.clear();
  nodesStatsRequest.fs(true);
  nodesStatsRequest.timeout(fetchTimeout);
  client.admin().cluster().nodesStats(nodesStatsRequest, new LatchedActionListener<>(listener, latch));
  return latch;
}
org.elasticsearch.action.admin.cluster.node.statsNodesStatsRequest<init>

Javadoc

Get stats from nodes based on the nodes ids specified. If none are passed, stats for all nodes will be returned.

Popular methods of NodesStatsRequest

  • all
    Sets all the request flags.
  • clear
    Clears all the request flags.
  • fs
    Should the node file system stats be returned.
  • http
    Should the node HTTP be returned.
  • indices
    Should indices stats be returned.
  • jvm
    Should the node JVM be returned.
  • os
    Should the node OS be returned.
  • process
    Should the node Process be returned.
  • threadPool
    Should the node Thread Pool be returned.
  • transport
    Should the node Transport be returned.
  • breaker
    Should the node's circuit breaker stats be returned.
  • readFrom
  • breaker,
  • readFrom,
  • script,
  • timeout,
  • writeTo,
  • discovery,
  • ingest,
  • adaptiveSelection,
  • nodesIds

Popular in Java

  • Running tasks concurrently on multiple threads
  • requestLocationUpdates (LocationManager)
  • setContentView (Activity)
  • putExtra (Intent)
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • JLabel (javax.swing)
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now