congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
RepairParallelism.ordinal
Code IndexAdd Tabnine to your IDE (free)

How to use
ordinal
method
in
org.apache.cassandra.repair.RepairParallelism

Best Java code snippets using org.apache.cassandra.repair.RepairParallelism.ordinal (Showing top 10 results out of 315)

origin: com.facebook.presto.cassandra/cassandra-server

public int forceRepairRangeAsync(String beginToken, String endToken, String keyspaceName, boolean isSequential, Collection<String> dataCenters, Collection<String> hosts, boolean fullRepair, String... columnFamilies) throws IOException
{
  return forceRepairRangeAsync(beginToken, endToken, keyspaceName,
                 isSequential ? RepairParallelism.SEQUENTIAL.ordinal() : RepairParallelism.PARALLEL.ordinal(),
                 dataCenters, hosts, fullRepair, columnFamilies);
}
origin: com.facebook.presto.cassandra/cassandra-server

public int forceRepairAsync(String keyspace, boolean isSequential, Collection<String> dataCenters, Collection<String> hosts, boolean primaryRange, boolean fullRepair, String... columnFamilies) throws IOException
{
  return forceRepairAsync(keyspace, isSequential ? RepairParallelism.SEQUENTIAL.ordinal() : RepairParallelism.PARALLEL.ordinal(), dataCenters, hosts, primaryRange, fullRepair, columnFamilies);
}
origin: com.strapdata.cassandra/cassandra-all

private static enum Mode { STARTING, NORMAL, JOINING, LEAVING, DECOMMISSIONED, MOVING, DRAINING, DRAINED }
private volatile Mode operationMode = Mode.STARTING;
origin: jsevellec/cassandra-unit

private static enum Mode { STARTING, NORMAL, JOINING, LEAVING, DECOMMISSIONED, MOVING, DRAINING, DRAINED }
private volatile Mode operationMode = Mode.STARTING;
origin: org.apache.cassandra/cassandra-all

private static enum Mode { STARTING, NORMAL, JOINING, LEAVING, DECOMMISSIONED, MOVING, DRAINING, DRAINED }
private volatile Mode operationMode = Mode.STARTING;
origin: com.facebook.presto.cassandra/cassandra-server

public boolean repairRangeAndWait(StorageServiceMBean ssProxy, RepairParallelism parallelismDegree, Collection<String> dataCenters, Collection<String> hosts, String startToken, String endToken, boolean fullRepair) throws Exception
{
  cmd = ssProxy.forceRepairRangeAsync(startToken, endToken, keyspace, parallelismDegree.ordinal(), dataCenters, hosts, fullRepair, columnFamilies);
  waitForRepair();
  return success;
}
origin: com.facebook.presto.cassandra/cassandra-server

public boolean repairAndWait(StorageServiceMBean ssProxy, RepairParallelism parallelismDegree, Collection<String> dataCenters, Collection<String> hosts, boolean primaryRangeOnly, boolean fullRepair) throws Exception
{
  cmd = ssProxy.forceRepairAsync(keyspace, parallelismDegree.ordinal(), dataCenters, hosts, primaryRangeOnly, fullRepair, columnFamilies);
  waitForRepair();
  return success;
}
origin: jsevellec/cassandra-unit

@Deprecated
public int forceRepairAsync(String keyspace,
              int parallelismDegree,
              Collection<String> dataCenters,
              Collection<String> hosts,
              boolean primaryRange,
              boolean fullRepair,
              String... tableNames)
{
  if (parallelismDegree < 0 || parallelismDegree > RepairParallelism.values().length - 1)
  {
    throw new IllegalArgumentException("Invalid parallelism degree specified: " + parallelismDegree);
  }
  RepairParallelism parallelism = RepairParallelism.values()[parallelismDegree];
  if (FBUtilities.isWindows && parallelism != RepairParallelism.PARALLEL)
  {
    logger.warn("Snapshot-based repair is not yet supported on Windows.  Reverting to parallel repair.");
    parallelism = RepairParallelism.PARALLEL;
  }
  RepairOption options = new RepairOption(parallelism, primaryRange, !fullRepair, false, 1, Collections.<Range<Token>>emptyList(), false, false);
  if (dataCenters != null)
  {
    options.getDataCenters().addAll(dataCenters);
  }
  if (hosts != null)
  {
    options.getHosts().addAll(hosts);
  }
  if (primaryRange)
origin: org.apache.cassandra/cassandra-all

@Deprecated
public int forceRepairAsync(String keyspace,
              int parallelismDegree,
              Collection<String> dataCenters,
              Collection<String> hosts,
              boolean primaryRange,
              boolean fullRepair,
              String... tableNames)
{
  if (parallelismDegree < 0 || parallelismDegree > RepairParallelism.values().length - 1)
  {
    throw new IllegalArgumentException("Invalid parallelism degree specified: " + parallelismDegree);
  }
  RepairParallelism parallelism = RepairParallelism.values()[parallelismDegree];
  if (FBUtilities.isWindows && parallelism != RepairParallelism.PARALLEL)
  {
    logger.warn("Snapshot-based repair is not yet supported on Windows.  Reverting to parallel repair.");
    parallelism = RepairParallelism.PARALLEL;
  }
  RepairOption options = new RepairOption(parallelism, primaryRange, !fullRepair, false, 1, Collections.<Range<Token>>emptyList(), false, false);
  if (dataCenters != null)
  {
    options.getDataCenters().addAll(dataCenters);
  }
  if (hosts != null)
  {
    options.getHosts().addAll(hosts);
  }
  if (primaryRange)
origin: com.strapdata.cassandra/cassandra-all

@Deprecated
public int forceRepairAsync(String keyspace,
              int parallelismDegree,
              Collection<String> dataCenters,
              Collection<String> hosts,
              boolean primaryRange,
              boolean fullRepair,
              String... tableNames)
{
  if (parallelismDegree < 0 || parallelismDegree > RepairParallelism.values().length - 1)
  {
    throw new IllegalArgumentException("Invalid parallelism degree specified: " + parallelismDegree);
  }
  RepairParallelism parallelism = RepairParallelism.values()[parallelismDegree];
  if (FBUtilities.isWindows && parallelism != RepairParallelism.PARALLEL)
  {
    logger.warn("Snapshot-based repair is not yet supported on Windows.  Reverting to parallel repair.");
    parallelism = RepairParallelism.PARALLEL;
  }
  RepairOption options = new RepairOption(parallelism, primaryRange, !fullRepair, false, 1, Collections.<Range<Token>>emptyList(), false, false);
  if (dataCenters != null)
  {
    options.getDataCenters().addAll(dataCenters);
  }
  if (hosts != null)
  {
    options.getHosts().addAll(hosts);
  }
  if (primaryRange)
org.apache.cassandra.repairRepairParallelismordinal

Popular methods of RepairParallelism

  • getName
  • values
  • fromName
    Return RepairParallelism that match given name. If name is null, or does not match any, this returns
  • toString

Popular in Java

  • Finding current android device location
  • onRequestPermissionsResult (Fragment)
  • runOnUiThread (Activity)
  • setContentView (Activity)
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • JList (javax.swing)
  • JOptionPane (javax.swing)
  • 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