congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
ClusterBlocks.writeTo
Code IndexAdd Tabnine to your IDE (free)

How to use
writeTo
method
in
org.elasticsearch.cluster.block.ClusterBlocks

Best Java code snippets using org.elasticsearch.cluster.block.ClusterBlocks.writeTo (Showing top 4 results out of 315)

origin: org.elasticsearch/elasticsearch

@Override
public void writeTo(StreamOutput out) throws IOException {
  clusterName.writeTo(out);
  out.writeLong(version);
  out.writeString(stateUUID);
  metaData.writeTo(out);
  routingTable.writeTo(out);
  nodes.writeTo(out);
  blocks.writeTo(out);
  // filter out custom states not supported by the other node
  int numberOfCustoms = 0;
  for (final ObjectCursor<Custom> cursor : customs.values()) {
    if (FeatureAware.shouldSerialize(out, cursor.value)) {
      numberOfCustoms++;
    }
  }
  out.writeVInt(numberOfCustoms);
  for (final ObjectCursor<Custom> cursor : customs.values()) {
    if (FeatureAware.shouldSerialize(out, cursor.value)) {
      out.writeNamedWriteable(cursor.value);
    }
  }
}
origin: harbby/presto-connectors

@Override
public void writeTo(StreamOutput out) throws IOException {
  clusterName.writeTo(out);
  out.writeLong(version);
  out.writeString(stateUUID);
  metaData.writeTo(out);
  routingTable.writeTo(out);
  nodes.writeTo(out);
  blocks.writeTo(out);
  out.writeVInt(customs.size());
  for (ObjectObjectCursor<String, Custom> cursor : customs) {
    out.writeString(cursor.key);
    cursor.value.writeTo(out);
  }
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.elasticsearch

@Override
public void writeTo(StreamOutput out) throws IOException {
  clusterName.writeTo(out);
  out.writeLong(version);
  out.writeString(stateUUID);
  metaData.writeTo(out);
  routingTable.writeTo(out);
  nodes.writeTo(out);
  blocks.writeTo(out);
  // filter out custom states not supported by the other node
  int numberOfCustoms = 0;
  for (final ObjectCursor<Custom> cursor : customs.values()) {
    if (FeatureAware.shouldSerialize(out, cursor.value)) {
      numberOfCustoms++;
    }
  }
  out.writeVInt(numberOfCustoms);
  for (final ObjectCursor<Custom> cursor : customs.values()) {
    if (FeatureAware.shouldSerialize(out, cursor.value)) {
      out.writeNamedWriteable(cursor.value);
    }
  }
}
origin: com.strapdata.elasticsearch/elasticsearch

@Override
public void writeTo(StreamOutput out) throws IOException {
  clusterName.writeTo(out);
  out.writeLong(version);
  out.writeString(stateUUID);
  metaData.writeTo(out);
  routingTable.writeTo(out);
  nodes.writeTo(out);
  blocks.writeTo(out);
  // filter out custom states not supported by the other node
  int numberOfCustoms = 0;
  for (ObjectCursor<Custom> cursor : customs.values()) {
    if (out.getVersion().onOrAfter(cursor.value.getMinimalSupportedVersion())) {
      numberOfCustoms++;
    }
  }
  out.writeVInt(numberOfCustoms);
  for (ObjectCursor<Custom> cursor : customs.values()) {
    if (out.getVersion().onOrAfter(cursor.value.getMinimalSupportedVersion())) {
      out.writeNamedWriteable(cursor.value);
    }
  }
}
org.elasticsearch.cluster.blockClusterBlockswriteTo

Popular methods of ClusterBlocks

  • globalBlockedException
  • indicesBlockedException
  • builder
  • globalBlockedRaiseException
  • indexBlockedException
  • <init>
  • diff
  • disableStatePersistence
    Returns true if one of the global blocks as its disable state persistence flag set.
  • global
  • globalBlocked
  • hasGlobalBlock
    Is there a global block with the provided status?
  • indexBlocked
  • hasGlobalBlock,
  • indexBlocked,
  • indexBlockedRaiseException,
  • indices,
  • readBlockSet,
  • readDiffFrom,
  • writeBlockSet,
  • blocksForIndex,
  • generateLevelHolders

Popular in Java

  • Making http requests using okhttp
  • getSupportFragmentManager (FragmentActivity)
  • getExternalFilesDir (Context)
  • addToBackStack (FragmentTransaction)
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • String (java.lang)
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • 14 Best Plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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