当前位置: 首页>>代码示例>>Java>>正文


Java SnapshotDescriptionUtils.DEFAULT_MAX_WAIT_TIME属性代码示例

本文整理汇总了Java中org.apache.hadoop.hbase.snapshot.SnapshotDescriptionUtils.DEFAULT_MAX_WAIT_TIME属性的典型用法代码示例。如果您正苦于以下问题:Java SnapshotDescriptionUtils.DEFAULT_MAX_WAIT_TIME属性的具体用法?Java SnapshotDescriptionUtils.DEFAULT_MAX_WAIT_TIME怎么用?Java SnapshotDescriptionUtils.DEFAULT_MAX_WAIT_TIME使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在org.apache.hadoop.hbase.snapshot.SnapshotDescriptionUtils的用法示例。


在下文中一共展示了SnapshotDescriptionUtils.DEFAULT_MAX_WAIT_TIME属性的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: execProcedure

/**
 * Triggers an asynchronous attempt to run a distributed procedure.
 * {@inheritDoc}
 */
@Override
public ExecProcedureResponse execProcedure(RpcController controller,
    ExecProcedureRequest request) throws ServiceException {
  try {
    master.checkInitialized();
    ProcedureDescription desc = request.getProcedure();
    MasterProcedureManager mpm = master.mpmHost.getProcedureManager(
      desc.getSignature());
    if (mpm == null) {
      throw new ServiceException("The procedure is not registered: "
        + desc.getSignature());
    }

    LOG.info(master.getClientIdAuditPrefix() + " procedure request for: "
      + desc.getSignature());

    mpm.execProcedure(desc);

    // send back the max amount of time the client should wait for the procedure
    // to complete
    long waitTime = SnapshotDescriptionUtils.DEFAULT_MAX_WAIT_TIME;
    return ExecProcedureResponse.newBuilder().setExpectedTimeout(
      waitTime).build();
  } catch (IOException e) {
    throw new ServiceException(e);
  }
}
 
开发者ID:grokcoder,项目名称:pbase,代码行数:31,代码来源:MasterRpcServices.java

示例2: execProcedure

/**
 * Triggers an asynchronous attempt to run a distributed procedure.
 * {@inheritDoc}
 */
@Override
public ExecProcedureResponse execProcedure(RpcController controller,
    ExecProcedureRequest request) throws ServiceException {
  ProcedureDescription desc = request.getProcedure();
  MasterProcedureManager mpm = this.mpmHost.getProcedureManager(desc
      .getSignature());
  if (mpm == null) {
    throw new ServiceException("The procedure is not registered: "
        + desc.getSignature());
  }

  LOG.info(getClientIdAuditPrefix() + " procedure request for: "
      + desc.getSignature());

  try {
    mpm.execProcedure(desc);
  } catch (IOException e) {
    throw new ServiceException(e);
  }

  // send back the max amount of time the client should wait for the procedure
  // to complete
  long waitTime = SnapshotDescriptionUtils.DEFAULT_MAX_WAIT_TIME;
  return ExecProcedureResponse.newBuilder().setExpectedTimeout(waitTime)
      .build();
}
 
开发者ID:tenggyut,项目名称:HIndex,代码行数:30,代码来源:HMaster.java


注:本文中的org.apache.hadoop.hbase.snapshot.SnapshotDescriptionUtils.DEFAULT_MAX_WAIT_TIME属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。