Java 类org.apache.hadoop.hbase.regionserver.Leases 实例源码

项目:ditb    文件:SimpleRegionObserver.java   
@Override
public void start(CoprocessorEnvironment e) throws IOException {
  // this only makes sure that leases and locks are available to coprocessors
  // from external packages
  RegionCoprocessorEnvironment re = (RegionCoprocessorEnvironment)e;
  Leases leases = re.getRegionServerServices().getLeases();
  leases.createLease(re.getRegion().getRegionInfo().getRegionNameAsString(), 2000, null);
  leases.cancelLease(re.getRegion().getRegionInfo().getRegionNameAsString());
}
项目:LCIndex-HBase-0.94.16    文件:SimpleRegionObserver.java   
@Override
public void start(CoprocessorEnvironment e) throws IOException {
  // this only makes sure that leases and locks are available to coprocessors
  // from external packages
  RegionCoprocessorEnvironment re = (RegionCoprocessorEnvironment)e;
  Leases leases = re.getRegionServerServices().getLeases();
  leases.createLease("x", null);
  leases.cancelLease("x");
}
项目:pbase    文件:SimpleRegionObserver.java   
@Override
public void start(CoprocessorEnvironment e) throws IOException {
  // this only makes sure that leases and locks are available to coprocessors
  // from external packages
  RegionCoprocessorEnvironment re = (RegionCoprocessorEnvironment)e;
  Leases leases = re.getRegionServerServices().getLeases();
  leases.createLease(re.getRegion().getRegionNameAsString(), 2000, null);
  leases.cancelLease(re.getRegion().getRegionNameAsString());
}
项目:HIndex    文件:SimpleRegionObserver.java   
@Override
public void start(CoprocessorEnvironment e) throws IOException {
  // this only makes sure that leases and locks are available to coprocessors
  // from external packages
  RegionCoprocessorEnvironment re = (RegionCoprocessorEnvironment)e;
  Leases leases = re.getRegionServerServices().getLeases();
  leases.createLease(re.getRegion().getRegionNameAsString(), 2000, null);
  leases.cancelLease(re.getRegion().getRegionNameAsString());
}
项目:IRIndex    文件:SimpleRegionObserver.java   
@Override
public void start(CoprocessorEnvironment e) throws IOException {
  // this only makes sure that leases and locks are available to coprocessors
  // from external packages
  RegionCoprocessorEnvironment re = (RegionCoprocessorEnvironment)e;
  Leases leases = re.getRegionServerServices().getLeases();
  leases.createLease("x", null);
  leases.cancelLease("x");
}
项目:PyroDB    文件:SimpleRegionObserver.java   
@Override
public void start(CoprocessorEnvironment e) throws IOException {
  // this only makes sure that leases and locks are available to coprocessors
  // from external packages
  RegionCoprocessorEnvironment re = (RegionCoprocessorEnvironment)e;
  Leases leases = re.getRegionServerServices().getLeases();
  leases.createLease(re.getRegion().getRegionNameAsString(), 2000, null);
  leases.cancelLease(re.getRegion().getRegionNameAsString());
}
项目:c5    文件:SimpleRegionObserver.java   
@Override
public void start(CoprocessorEnvironment e) throws IOException {
  // this only makes sure that leases and locks are available to coprocessors
  // from external packages
  RegionCoprocessorEnvironment re = (RegionCoprocessorEnvironment)e;
  Leases leases = re.getRegionServerServices().getLeases();
  leases.createLease("x", 2000, null);
  leases.cancelLease("x");
}
项目:HBase-Research    文件:SimpleRegionObserver.java   
@Override
public void start(CoprocessorEnvironment e) throws IOException {
  // this only makes sure that leases and locks are available to coprocessors
  // from external packages
  RegionCoprocessorEnvironment re = (RegionCoprocessorEnvironment)e;
  Leases leases = re.getRegionServerServices().getLeases();
  leases.createLease("x", null);
  leases.cancelLease("x");
}
项目:hbase-0.94.8-qod    文件:SimpleRegionObserver.java   
@Override
public void start(CoprocessorEnvironment e) throws IOException {
  // this only makes sure that leases and locks are available to coprocessors
  // from external packages
  RegionCoprocessorEnvironment re = (RegionCoprocessorEnvironment)e;
  Leases leases = re.getRegionServerServices().getLeases();
  leases.createLease("x", null);
  leases.cancelLease("x");
}
项目:hbase-0.94.8-qod    文件:SimpleRegionObserver.java   
@Override
public void start(CoprocessorEnvironment e) throws IOException {
  // this only makes sure that leases and locks are available to coprocessors
  // from external packages
  RegionCoprocessorEnvironment re = (RegionCoprocessorEnvironment)e;
  Leases leases = re.getRegionServerServices().getLeases();
  leases.createLease("x", null);
  leases.cancelLease("x");
}
项目:DominoHBase    文件:SimpleRegionObserver.java   
@Override
public void start(CoprocessorEnvironment e) throws IOException {
  // this only makes sure that leases and locks are available to coprocessors
  // from external packages
  RegionCoprocessorEnvironment re = (RegionCoprocessorEnvironment)e;
  Leases leases = re.getRegionServerServices().getLeases();
  leases.createLease("x", 2000, null);
  leases.cancelLease("x");
  Integer lid = re.getRegion().getLock(null, Bytes.toBytes("some row"), true);
  re.getRegion().releaseRowLock(lid);
}
项目:hindex    文件:SimpleRegionObserver.java   
@Override
public void start(CoprocessorEnvironment e) throws IOException {
  // this only makes sure that leases and locks are available to coprocessors
  // from external packages
  RegionCoprocessorEnvironment re = (RegionCoprocessorEnvironment)e;
  Leases leases = re.getRegionServerServices().getLeases();
  leases.createLease("x", null);
  leases.cancelLease("x");
}
项目:hbase-secondary-index    文件:TransactionalRegionServer.java   
/**
 * @param conf
 * @throws IOException
 */
public TransactionalRegionServer(final Configuration conf)
        throws IOException, InterruptedException {
    super(conf);
    this.getRpcMetrics().createMetrics(
            new Class<?>[] { TransactionalRegionInterface.class });
    cleanOldTransactionsThread = new CleanOldTransactionsChore(this);
    transactionLeases = new Leases(conf.getInt(LEASE_TIME,
            DEFAULT_LEASE_TIME), LEASE_CHECK_FREQUENCY);
    LOG.info("Transaction lease time: "
            + conf.getInt(LEASE_TIME, DEFAULT_LEASE_TIME));
}
项目:ditb    文件:MockRegionServer.java   
@Override
public Leases getLeases() {
  // TODO Auto-generated method stub
  return null;
}
项目:ditb    文件:MockRegionServerServices.java   
@Override
public Leases getLeases() {
  return null;
}
项目:incubator-tephra    文件:TransactionProcessorTest.java   
@Override
public Leases getLeases() {
  return null;
}
项目:incubator-tephra    文件:TransactionProcessorTest.java   
@Override
public Leases getLeases() {
  return null;
}
项目:LCIndex-HBase-0.94.16    文件:MockRegionServerServices.java   
@Override
public Leases getLeases() {
  return null;
}
项目:pbase    文件:MockRegionServer.java   
@Override
public Leases getLeases() {
  // TODO Auto-generated method stub
  return null;
}
项目:pbase    文件:MockRegionServerServices.java   
@Override
public Leases getLeases() {
  return null;
}
项目:HIndex    文件:MockRegionServer.java   
@Override
public Leases getLeases() {
  // TODO Auto-generated method stub
  return null;
}
项目:HIndex    文件:MockRegionServerServices.java   
@Override
public Leases getLeases() {
  return null;
}
项目:IRIndex    文件:MockRegionServerServices.java   
@Override
public Leases getLeases() {
  return null;
}
项目:hbase    文件:MockRegionServer.java   
@Override
public Leases getLeases() {
  return null;
}
项目:hbase    文件:MockRegionServerServices.java   
@Override
public Leases getLeases() {
  return null;
}
项目:PyroDB    文件:MockRegionServer.java   
@Override
public Leases getLeases() {
  // TODO Auto-generated method stub
  return null;
}
项目:PyroDB    文件:MockRegionServerServices.java   
@Override
public Leases getLeases() {
  return null;
}
项目:c5    文件:HRegionServicesBridge.java   
@Override
public Leases getLeases() {
  return null;
}
项目:c5    文件:MockRegionServer.java   
@Override
public Leases getLeases() {
  // TODO Auto-generated method stub
  return null;
}
项目:c5    文件:MockRegionServerServices.java   
@Override
public Leases getLeases() {
  return null;
}
项目:HBase-Research    文件:MockRegionServerServices.java   
@Override
public Leases getLeases() {
  return null;
}
项目:hbase-0.94.8-qod    文件:MockRegionServerServices.java   
@Override
public Leases getLeases() {
  return null;
}
项目:hbase-0.94.8-qod    文件:MockRegionServerServices.java   
@Override
public Leases getLeases() {
  return null;
}
项目:DominoHBase    文件:MockRegionServer.java   
@Override
public Leases getLeases() {
  // TODO Auto-generated method stub
  return null;
}
项目:DominoHBase    文件:MockRegionServerServices.java   
@Override
public Leases getLeases() {
  return null;
}
项目:hindex    文件:MockRegionServerServices.java   
@Override
public Leases getLeases() {
  return null;
}
项目:hbase-secondary-index    文件:TransactionalRegion.java   
public void setTransactionalLeases(final Leases transactionalLeases) {
    this.transactionLeases = transactionalLeases;
}
项目:hbase-secondary-index    文件:TransactionalRegionServer.java   
protected Leases getTransactionalLeases() {
    return this.transactionLeases;
}