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

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

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

origin: org.elasticsearch/elasticsearch

public void indexBlockedRaiseException(ClusterBlockLevel level, String index) throws ClusterBlockException {
  ClusterBlockException blockException = indexBlockedException(level, index);
  if (blockException != null) {
    throw blockException;
  }
}
origin: org.elasticsearch/elasticsearch

  @Override
  protected ClusterBlockException checkRequestBlock(ClusterState state, InternalRequest request) {
    return state.blocks().indexBlockedException(ClusterBlockLevel.METADATA_READ, request.concreteIndex());
  }
}
origin: org.elasticsearch/elasticsearch

@Override
protected ClusterBlockException checkBlock(CreateIndexRequest request, ClusterState state) {
  return state.blocks().indexBlockedException(ClusterBlockLevel.METADATA_WRITE, request.index());
}
origin: org.elasticsearch/elasticsearch

@Override
protected ClusterBlockException checkRequestBlock(ClusterState state, InternalRequest request) {
  return state.blocks().indexBlockedException(ClusterBlockLevel.METADATA_READ, request.concreteIndex());
}
origin: org.elasticsearch/elasticsearch

protected ClusterBlockException checkRequestBlock(ClusterState state, InternalRequest request) {
  return state.blocks().indexBlockedException(ClusterBlockLevel.READ, request.concreteIndex());
}
origin: org.elasticsearch/elasticsearch

protected ClusterBlockException checkRequestBlock(ClusterState state, Request request) {
  return state.blocks().indexBlockedException(ClusterBlockLevel.WRITE, request.concreteIndex());
}
origin: org.elasticsearch/elasticsearch

@Override
protected ClusterBlockException checkBlock(ResizeRequest request, ClusterState state) {
  return state.blocks().indexBlockedException(ClusterBlockLevel.METADATA_WRITE, request.getTargetIndexRequest().index());
}
origin: org.elasticsearch/elasticsearch

private ClusterBlockException blockExceptions(final ClusterState state, final String indexName) {
  ClusterBlockLevel globalBlockLevel = globalBlockLevel();
  if (globalBlockLevel != null) {
    ClusterBlockException blockException = state.blocks().globalBlockedException(globalBlockLevel);
    if (blockException != null) {
      return blockException;
    }
  }
  ClusterBlockLevel indexBlockLevel = indexBlockLevel();
  if (indexBlockLevel != null) {
    ClusterBlockException blockException = state.blocks().indexBlockedException(indexBlockLevel, indexName);
    if (blockException != null) {
      return blockException;
    }
  }
  return null;
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.elasticsearch

public void indexBlockedRaiseException(ClusterBlockLevel level, String index) throws ClusterBlockException {
  ClusterBlockException blockException = indexBlockedException(level, index);
  if (blockException != null) {
    throw blockException;
  }
}
origin: com.strapdata.elasticsearch/elasticsearch

public void indexBlockedRaiseException(ClusterBlockLevel level, String index) throws ClusterBlockException {
  ClusterBlockException blockException = indexBlockedException(level, index);
  if (blockException != null) {
    throw blockException;
  }
}
origin: harbby/presto-connectors

public void indexBlockedRaiseException(ClusterBlockLevel level, String index) throws ClusterBlockException {
  ClusterBlockException blockException = indexBlockedException(level, index);
  if (blockException != null) {
    throw blockException;
  }
}
origin: apache/servicemix-bundles

public void indexBlockedRaiseException(ClusterBlockLevel level, String index) throws ClusterBlockException {
  ClusterBlockException blockException = indexBlockedException(level, index);
  if (blockException != null) {
    throw blockException;
  }
}
origin: apache/servicemix-bundles

  @Override
  protected ClusterBlockException checkRequestBlock(ClusterState state, InternalRequest request) {
    return state.blocks().indexBlockedException(ClusterBlockLevel.METADATA_READ, request.concreteIndex());
  }
}
origin: com.strapdata.elasticsearch/elasticsearch

@Override
protected ClusterBlockException checkBlock(PutIndexTemplateRequest request, ClusterState state) {
  return state.blocks().indexBlockedException(ClusterBlockLevel.METADATA_WRITE, "");
}
origin: com.strapdata.elasticsearch/elasticsearch

  @Override
  protected ClusterBlockException checkRequestBlock(ClusterState state, InternalRequest request) {
    return state.blocks().indexBlockedException(ClusterBlockLevel.METADATA_READ, request.concreteIndex());
  }
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.elasticsearch

  @Override
  protected ClusterBlockException checkRequestBlock(ClusterState state, InternalRequest request) {
    return state.blocks().indexBlockedException(ClusterBlockLevel.METADATA_READ, request.concreteIndex());
  }
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.elasticsearch

@Override
protected ClusterBlockException checkRequestBlock(ClusterState state, InternalRequest request) {
  return state.blocks().indexBlockedException(ClusterBlockLevel.METADATA_READ, request.concreteIndex());
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.elasticsearch

@Override
protected ClusterBlockException checkBlock(CreateIndexRequest request, ClusterState state) {
  return state.blocks().indexBlockedException(ClusterBlockLevel.METADATA_WRITE, request.index());
}
origin: com.strapdata.elasticsearch/elasticsearch

@Override
protected ClusterBlockException checkRequestBlock(ClusterState state, InternalRequest request) {
  return state.blocks().indexBlockedException(ClusterBlockLevel.METADATA_READ, request.concreteIndex());
}
origin: com.strapdata.elasticsearch/elasticsearch

@Override
protected ClusterBlockException checkBlock(ShrinkRequest request, ClusterState state) {
  return state.blocks().indexBlockedException(ClusterBlockLevel.METADATA_WRITE, request.getShrinkIndexRequest().index());
}
org.elasticsearch.cluster.blockClusterBlocksindexBlockedException

Popular methods of ClusterBlocks

  • globalBlockedException
  • indicesBlockedException
  • builder
  • globalBlockedRaiseException
  • <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
  • indexBlockedRaiseException
  • indexBlocked,
  • indexBlockedRaiseException,
  • indices,
  • readBlockSet,
  • readDiffFrom,
  • writeBlockSet,
  • writeTo,
  • blocksForIndex,
  • generateLevelHolders

Popular in Java

  • Parsing JSON documents to java classes using gson
  • scheduleAtFixedRate (Timer)
  • getResourceAsStream (ClassLoader)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • Top 12 Jupyter Notebook Extensions
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