Tabnine Logo
org.apache.hadoop.hbase.coprocessor
Code IndexAdd Tabnine to your IDE (free)

How to use org.apache.hadoop.hbase.coprocessor

Best Java code snippets using org.apache.hadoop.hbase.coprocessor (Showing top 20 results out of 468)

origin: apache/hbase

 @Override
 public void shutdown() {
  super.shutdown();
  MetricsCoprocessor.removeRegistry(this.metricRegistry);
 }
}
origin: apache/hbase

/**
 * Do not call with an observerOperation that is null! Have the caller check.
 */
protected <O, R> R execOperationWithResult(
  final ObserverOperationWithResult<O, R> observerOperation) throws IOException {
 boolean bypass = execOperation(observerOperation);
 R result = observerOperation.getResult();
 return bypass == observerOperation.isBypassable()? result: null;
}
origin: apache/hbase

private void tableMetricRegisterAndMark(ObserverContext<RegionCoprocessorEnvironment> e,
  Row op) {
 // Mark the meta table meter whenever the coprocessor is called
 String tableName = getTableNameFromOp(op);
 String tableRequestMeter = tableMeterName(tableName);
 registerMeterIfNotPresent(e, tableRequestMeter);
 markMeterIfPresent(tableRequestMeter);
}
origin: apache/hbase

@Override
public void start(CoprocessorEnvironment env) throws IOException {
 if (env instanceof RegionCoprocessorEnvironment) {
  this.env = (RegionCoprocessorEnvironment)env;
  return;
 }
 throw new CoprocessorException("Must be loaded on a table region!");
}
origin: apache/hbase

 @Override
 public void call(MasterObserver observer) throws IOException {
  observer.postDeleteTable(this, tableName);
 }
});
origin: apache/hbase

 @Override
 public void call(MasterObserver observer) throws IOException {
  observer.preEnableTable(this, tableName);
 }
});
origin: apache/hbase

 @Override
 public void call(MasterObserver observer) throws IOException {
  observer.preDisableTable(this, tableName);
 }
});
origin: apache/hbase

 @Override
 public void call(MasterObserver observer) throws IOException {
  observer.postDisableTable(this, tableName);
 }
});
origin: apache/hbase

 @Override
 public void call(MasterObserver observer) throws IOException {
  observer.postAssign(this, regionInfo);
 }
});
origin: apache/hbase

 @Override
 public void call(MasterObserver observer) throws IOException {
  observer.preBalance(this);
 }
});
origin: apache/hbase

/**
 * Called prior to modifying a namespace's properties.
 * @param ctx the environment to interact with the framework and master
 * @param currentNsDescriptor current NamespaceDescriptor of the namespace
 * @param newNsDescriptor after modify operation, namespace will have this descriptor
 */
default void preModifyNamespace(final ObserverContext<MasterCoprocessorEnvironment> ctx,
  NamespaceDescriptor currentNsDescriptor, NamespaceDescriptor newNsDescriptor)
 throws IOException {
 preModifyNamespace(ctx, newNsDescriptor);
}
origin: apache/hbase

 @Override
 public void call(MasterObserver observer) throws IOException {
  observer.postGetTableNames(this, descriptors, regex);
 }
});
origin: apache/hbase

 @Override
 public void call(MasterObserver observer) throws IOException {
  observer.preSplitRegionAction(this, tableName, splitRow);
 }
});
origin: apache/hbase

 @Override
 public void call(MasterObserver observer) throws IOException {
  observer.postRemoveRSGroup(this, name);
 }
});
origin: apache/hbase

 @Override
 public void call(MasterObserver observer) throws IOException {
  observer.preListReplicationPeers(this, regex);
 }
});
origin: apache/hbase

 @Override
 public void call(MasterObserver observer) throws IOException {
  observer.preGrant(this, userPermission, mergeExistingPermissions);
 }
});
origin: apache/hbase

@Override
public void start(CoprocessorEnvironment env) throws IOException {
 if (env instanceof RegionCoprocessorEnvironment) {
  this.env = (RegionCoprocessorEnvironment)env;
  return;
 }
 throw new CoprocessorException("Must be loaded on a table region!");
}
origin: apache/hbase

 @Override
 public void shutdown() {
  super.shutdown();
  MetricsCoprocessor.removeRegistry(metricRegistry);
 }
}
origin: apache/hbase

@Override
public void shutdown() {
 super.shutdown();
 MetricsCoprocessor.removeRegistry(this.metricRegistry);
}
origin: apache/hbase

 @Override
 public void shutdown() {
  super.shutdown();
  MetricsCoprocessor.removeRegistry(this.metricRegistry);
 }
}
org.apache.hadoop.hbase.coprocessor

Most used classes

  • RegionCoprocessorEnvironment
  • ObserverContext
    Carries the execution state for a given invocation of an Observer coprocessor ( RegionObserver, Mast
  • CoprocessorException
    Thrown if a coprocessor encounters any exception.
  • CoprocessorHost
    Provides the common setup framework and runtime services for coprocessor invocation from HBase servi
  • CoreCoprocessor
  • BaseRegionObserver,
  • Export$Response,
  • Export,
  • MasterObserver,
  • RegionObserver,
  • ColumnInterpreter,
  • PingProtos$CountResponse$Builder,
  • PingProtos$CountResponse,
  • PingProtos$HelloResponse$Builder,
  • PingProtos$HelloResponse,
  • PingProtos$IncrementCountResponse$Builder,
  • PingProtos$IncrementCountResponse,
  • PingProtos$NoopResponse$Builder,
  • PingProtos$NoopResponse
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