Tabnine Logo
ClusterBlocks.globalBlocked
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: org.elasticsearch/elasticsearch

public boolean indexBlocked(ClusterBlockLevel level, String index) {
  return globalBlocked(level) || blocksForIndex(level, index).isEmpty() == false;
}
origin: org.elasticsearch/elasticsearch

public ClusterBlockException indicesBlockedException(ClusterBlockLevel level, String[] indices) {
  boolean indexIsBlocked = false;
  for (String index : indices) {
    if (indexBlocked(level, index)) {
      indexIsBlocked = true;
    }
  }
  if (globalBlocked(level) == false && indexIsBlocked == false) {
    return null;
  }
  Function<String, Stream<ClusterBlock>> blocksForIndexAtLevel = index -> blocksForIndex(level, index).stream();
  Stream<ClusterBlock> blocks = concat(
      global(level).stream(),
      Stream.of(indices).flatMap(blocksForIndexAtLevel));
  return new ClusterBlockException(unmodifiableSet(blocks.collect(toSet())));
}
origin: org.elasticsearch/elasticsearch

public ClusterBlockException globalBlockedException(ClusterBlockLevel level) {
  if (globalBlocked(level) == false) {
    return null;
  }
  return new ClusterBlockException(global(level));
}
origin: com.strapdata.elasticsearch/elasticsearch

public boolean indexBlocked(ClusterBlockLevel level, String index) {
  return globalBlocked(level) || blocksForIndex(level, index).isEmpty() == false;
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.elasticsearch

public boolean indexBlocked(ClusterBlockLevel level, String index) {
  return globalBlocked(level) || blocksForIndex(level, index).isEmpty() == false;
}
origin: apache/servicemix-bundles

public boolean indexBlocked(ClusterBlockLevel level, String index) {
  return globalBlocked(level) || blocksForIndex(level, index).isEmpty() == false;
}
origin: com.strapdata.elasticsearch/elasticsearch

public ClusterBlockException indicesBlockedException(ClusterBlockLevel level, String[] indices) {
  boolean indexIsBlocked = false;
  for (String index : indices) {
    if (indexBlocked(level, index)) {
      indexIsBlocked = true;
    }
  }
  if (globalBlocked(level) == false && indexIsBlocked == false) {
    return null;
  }
  Function<String, Stream<ClusterBlock>> blocksForIndexAtLevel = index -> blocksForIndex(level, index).stream();
  Stream<ClusterBlock> blocks = concat(
      global(level).stream(),
      Stream.of(indices).flatMap(blocksForIndexAtLevel));
  return new ClusterBlockException(unmodifiableSet(blocks.collect(toSet())));
}
origin: apache/servicemix-bundles

public ClusterBlockException indicesBlockedException(ClusterBlockLevel level, String[] indices) {
  boolean indexIsBlocked = false;
  for (String index : indices) {
    if (indexBlocked(level, index)) {
      indexIsBlocked = true;
    }
  }
  if (globalBlocked(level) == false && indexIsBlocked == false) {
    return null;
  }
  Function<String, Stream<ClusterBlock>> blocksForIndexAtLevel = index -> blocksForIndex(level, index).stream();
  Stream<ClusterBlock> blocks = concat(
      global(level).stream(),
      Stream.of(indices).flatMap(blocksForIndexAtLevel));
  return new ClusterBlockException(unmodifiableSet(blocks.collect(toSet())));
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.elasticsearch

public ClusterBlockException indicesBlockedException(ClusterBlockLevel level, String[] indices) {
  boolean indexIsBlocked = false;
  for (String index : indices) {
    if (indexBlocked(level, index)) {
      indexIsBlocked = true;
    }
  }
  if (globalBlocked(level) == false && indexIsBlocked == false) {
    return null;
  }
  Function<String, Stream<ClusterBlock>> blocksForIndexAtLevel = index -> blocksForIndex(level, index).stream();
  Stream<ClusterBlock> blocks = concat(
      global(level).stream(),
      Stream.of(indices).flatMap(blocksForIndexAtLevel));
  return new ClusterBlockException(unmodifiableSet(blocks.collect(toSet())));
}
origin: com.strapdata.elasticsearch/elasticsearch

public ClusterBlockException globalBlockedException(ClusterBlockLevel level) {
  if (globalBlocked(level) == false) {
    return null;
  }
  return new ClusterBlockException(global(level));
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.elasticsearch

public ClusterBlockException globalBlockedException(ClusterBlockLevel level) {
  if (globalBlocked(level) == false) {
    return null;
  }
  return new ClusterBlockException(global(level));
}
origin: apache/servicemix-bundles

public ClusterBlockException globalBlockedException(ClusterBlockLevel level) {
  if (globalBlocked(level) == false) {
    return null;
  }
  return new ClusterBlockException(global(level));
}
origin: harbby/presto-connectors

public boolean indexBlocked(ClusterBlockLevel level, String index) {
  if (globalBlocked(level)) {
    return true;
  }
  ImmutableSet<ClusterBlock> indexBlocks = indices(level).get(index);
  if (indexBlocks != null && !indexBlocks.isEmpty()) {
    return true;
  }
  return false;
}
origin: harbby/presto-connectors

public ClusterBlockException globalBlockedException(ClusterBlockLevel level) {
  if (globalBlocked(level) == false) {
    return null;
  }
  return new ClusterBlockException(ImmutableSet.copyOf(global(level)));
}
origin: harbby/presto-connectors

public ClusterBlockException indicesBlockedException(ClusterBlockLevel level, String[] indices) {
  boolean indexIsBlocked = false;
  for (String index : indices) {
    if (indexBlocked(level, index)) {
      indexIsBlocked = true;
    }
  }
  if (globalBlocked(level) == false && indexIsBlocked == false) {
    return null;
  }
  ImmutableSet.Builder<ClusterBlock> builder = ImmutableSet.builder();
  builder.addAll(global(level));
  for (String index : indices) {
    ImmutableSet<ClusterBlock> indexBlocks = indices(level).get(index);
    if (indexBlocks != null) {
      builder.addAll(indexBlocks);
    }
  }
  return new ClusterBlockException(builder.build());
}
org.elasticsearch.cluster.blockClusterBlocksglobalBlocked

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
  • hasGlobalBlock
    Is there a global block with the provided status?
  • indexBlocked
  • indexBlockedRaiseException
  • indexBlocked,
  • indexBlockedRaiseException,
  • indices,
  • readBlockSet,
  • readDiffFrom,
  • writeBlockSet,
  • writeTo,
  • blocksForIndex,
  • generateLevelHolders

Popular in Java

  • Start an intent from android
  • onRequestPermissionsResult (Fragment)
  • putExtra (Intent)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • Path (java.nio.file)
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • Reference (javax.naming)
  • Best plugins for Eclipse
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