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
  • setRequestProperty (URLConnection)
  • getSharedPreferences (Context)
  • onCreateOptionsMenu (Activity)
  • Menu (java.awt)
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • Reference (javax.naming)
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • CodeWhisperer alternatives
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