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


Java RefreshQueuesResponse类代码示例

本文整理汇总了Java中org.apache.hadoop.yarn.server.api.protocolrecords.RefreshQueuesResponse的典型用法代码示例。如果您正苦于以下问题:Java RefreshQueuesResponse类的具体用法?Java RefreshQueuesResponse怎么用?Java RefreshQueuesResponse使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


RefreshQueuesResponse类属于org.apache.hadoop.yarn.server.api.protocolrecords包,在下文中一共展示了RefreshQueuesResponse类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: refreshQueues

import org.apache.hadoop.yarn.server.api.protocolrecords.RefreshQueuesResponse; //导入依赖的package包/类
@Override
public RefreshQueuesResponse refreshQueues(RefreshQueuesRequest request)
    throws YarnException, StandbyException {
  String argName = "refreshQueues";
  final String msg = "refresh queues.";
  UserGroupInformation user = checkAcls(argName);

  checkRMStatus(user.getShortUserName(), argName, msg);

  RefreshQueuesResponse response =
      recordFactory.newRecordInstance(RefreshQueuesResponse.class);
  try {
    rmContext.getScheduler().reinitialize(getConfig(), this.rmContext);
    // refresh the reservation system
    ReservationSystem rSystem = rmContext.getReservationSystem();
    if (rSystem != null) {
      rSystem.reinitialize(getConfig(), rmContext);
    }
    RMAuditLogger.logSuccess(user.getShortUserName(), argName,
        "AdminService");
    return response;
  } catch (IOException ioe) {
    throw logAndWrapException(ioe, user.getShortUserName(), argName, msg);
  }
}
 
开发者ID:naver,项目名称:hadoop,代码行数:26,代码来源:AdminService.java

示例2: refreshQueues

import org.apache.hadoop.yarn.server.api.protocolrecords.RefreshQueuesResponse; //导入依赖的package包/类
@Override
public RefreshQueuesResponse refreshQueues(RefreshQueuesRequest request)
    throws YarnException {
  UserGroupInformation user = checkAcls("refreshQueues");
  try {
    scheduler.reinitialize(conf, this.rmContext);
    RMAuditLogger.logSuccess(user.getShortUserName(), "refreshQueues", 
        "AdminService");
    return recordFactory.newRecordInstance(RefreshQueuesResponse.class);
  } catch (IOException ioe) {
    LOG.info("Exception refreshing queues ", ioe);
    RMAuditLogger.logFailure(user.getShortUserName(), "refreshQueues",
        adminAcl.toString(), "AdminService",
        "Exception refreshing queues");
    throw RPCUtil.getRemoteException(ioe);
  }
}
 
开发者ID:ict-carch,项目名称:hadoop-plus,代码行数:18,代码来源:AdminService.java

示例3: refreshQueues

import org.apache.hadoop.yarn.server.api.protocolrecords.RefreshQueuesResponse; //导入依赖的package包/类
@Override
public RefreshQueuesResponse refreshQueues(RefreshQueuesRequest request)
    throws YarnException, StandbyException {
  final String operation = "refreshQueues";
  final String msg = "refresh queues.";
  UserGroupInformation user = checkAcls(operation);

  checkRMStatus(user.getShortUserName(), operation, msg);

  RefreshQueuesResponse response =
      recordFactory.newRecordInstance(RefreshQueuesResponse.class);
  try {
    rmContext.getScheduler().reinitialize(getConfig(), this.rmContext);
    // refresh the reservation system
    ReservationSystem rSystem = rmContext.getReservationSystem();
    if (rSystem != null) {
      rSystem.reinitialize(getConfig(), rmContext);
    }
    RMAuditLogger.logSuccess(user.getShortUserName(), operation,
        "AdminService");
    return response;
  } catch (IOException ioe) {
    throw logAndWrapException(ioe, user.getShortUserName(), operation, msg);
  }
}
 
开发者ID:hopshadoop,项目名称:hops,代码行数:26,代码来源:AdminService.java

示例4: refreshQueues

import org.apache.hadoop.yarn.server.api.protocolrecords.RefreshQueuesResponse; //导入依赖的package包/类
@Override
public RefreshQueuesResponse refreshQueues(RefreshQueuesRequest request)
    throws YarnException, IOException {
  RefreshQueuesRequestProto requestProto = 
    ((RefreshQueuesRequestPBImpl)request).getProto();
  try {
    return new RefreshQueuesResponsePBImpl(
        proxy.refreshQueues(null, requestProto));
  } catch (ServiceException e) {
    RPCUtil.unwrapAndThrowException(e);
    return null;
  }
}
 
开发者ID:naver,项目名称:hadoop,代码行数:14,代码来源:ResourceManagerAdministrationProtocolPBClientImpl.java

示例5: testRefreshQueues

import org.apache.hadoop.yarn.server.api.protocolrecords.RefreshQueuesResponse; //导入依赖的package包/类
/**
 * Test method refreshQueues. This method is present and it works.
 */
@Test
public void testRefreshQueues() throws Exception {

  RefreshQueuesRequest request = recordFactory
          .newRecordInstance(RefreshQueuesRequest.class);
  RefreshQueuesResponse response = client.refreshQueues(request);
  assertNotNull(response);
}
 
开发者ID:naver,项目名称:hadoop,代码行数:12,代码来源:TestResourceManagerAdministrationProtocolPBClientImpl.java

示例6: refreshQueues

import org.apache.hadoop.yarn.server.api.protocolrecords.RefreshQueuesResponse; //导入依赖的package包/类
@Override
public RefreshQueuesResponse refreshQueues(RefreshQueuesRequest request)
    throws YarnException, StandbyException {
  String argName = "refreshQueues";
  UserGroupInformation user = checkAcls(argName);

  if (!isRMActive()) {
    RMAuditLogger.logFailure(user.getShortUserName(), argName,
        adminAcl.toString(), "AdminService",
        "ResourceManager is not active. Can not refresh queues.");
    throwStandbyException();
  }

  RefreshQueuesResponse response =
      recordFactory.newRecordInstance(RefreshQueuesResponse.class);
  try {
    rmContext.getScheduler().reinitialize(getConfig(), this.rmContext);
    // refresh the reservation system
    ReservationSystem rSystem = rmContext.getReservationSystem();
    if (rSystem != null) {
      rSystem.reinitialize(getConfig(), rmContext);
    }
    RMAuditLogger.logSuccess(user.getShortUserName(), argName,
        "AdminService");
    return response;
  } catch (IOException ioe) {
    LOG.info("Exception refreshing queues ", ioe);
    RMAuditLogger.logFailure(user.getShortUserName(), argName,
        adminAcl.toString(), "AdminService",
        "Exception refreshing queues");
    throw RPCUtil.getRemoteException(ioe);
  }
}
 
开发者ID:Nextzero,项目名称:hadoop-2.6.0-cdh5.4.3,代码行数:34,代码来源:AdminService.java

示例7: refreshQueues

import org.apache.hadoop.yarn.server.api.protocolrecords.RefreshQueuesResponse; //导入依赖的package包/类
@Override
public RefreshQueuesResponse refreshQueues(RefreshQueuesRequest request)
    throws YarnException, StandbyException {
  String argName = "refreshQueues";
  UserGroupInformation user = checkAcls(argName);

  if (!isRMActive()) {
    RMAuditLogger.logFailure(user.getShortUserName(), argName,
        adminAcl.toString(), "AdminService",
        "ResourceManager is not active. Can not refresh queues.");
    throwStandbyException();
  }

  RefreshQueuesResponse response =
      recordFactory.newRecordInstance(RefreshQueuesResponse.class);
  try {
    rmContext.getScheduler().reinitialize(getConfig(), this.rmContext);
    RMAuditLogger.logSuccess(user.getShortUserName(), argName,
        "AdminService");
    return response;
  } catch (IOException ioe) {
    LOG.info("Exception refreshing queues ", ioe);
    RMAuditLogger.logFailure(user.getShortUserName(), argName,
        adminAcl.toString(), "AdminService",
        "Exception refreshing queues");
    throw RPCUtil.getRemoteException(ioe);
  }
}
 
开发者ID:Seagate,项目名称:hadoop-on-lustre2,代码行数:29,代码来源:AdminService.java

示例8: refreshQueues

import org.apache.hadoop.yarn.server.api.protocolrecords.RefreshQueuesResponse; //导入依赖的package包/类
@Public
@Stable
@Idempotent
public RefreshQueuesResponse refreshQueues(RefreshQueuesRequest request) 
throws StandbyException, YarnException, IOException;
 
开发者ID:naver,项目名称:hadoop,代码行数:6,代码来源:ResourceManagerAdministrationProtocol.java

示例9: refreshQueues

import org.apache.hadoop.yarn.server.api.protocolrecords.RefreshQueuesResponse; //导入依赖的package包/类
@Private
@Idempotent
public RefreshQueuesResponse refreshQueues(RefreshQueuesRequest request) 
throws StandbyException, YarnException, IOException;
 
开发者ID:aliyun-beta,项目名称:aliyun-oss-hadoop-fs,代码行数:5,代码来源:ResourceManagerAdministrationProtocol.java

示例10: refreshQueues

import org.apache.hadoop.yarn.server.api.protocolrecords.RefreshQueuesResponse; //导入依赖的package包/类
@Public
@Stable
public RefreshQueuesResponse refreshQueues(RefreshQueuesRequest request) 
throws YarnException, IOException;
 
开发者ID:ict-carch,项目名称:hadoop-plus,代码行数:5,代码来源:ResourceManagerAdministrationProtocol.java


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