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


Java Idempotent类代码示例

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


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

示例1:

import org.apache.hadoop.io.retry.Idempotent; //导入依赖的package包/类
@Public
@Stable
@Idempotent
public RefreshSuperUserGroupsConfigurationResponse 
refreshSuperUserGroupsConfiguration(
    RefreshSuperUserGroupsConfigurationRequest request)
throws StandbyException, YarnException, IOException;
 
开发者ID:naver,项目名称:hadoop,代码行数:8,代码来源:ResourceManagerAdministrationProtocol.java

示例2: checkAnnotations

import org.apache.hadoop.io.retry.Idempotent; //导入依赖的package包/类
@Test
public void checkAnnotations() {
  Method[] methods = NamenodeProtocols.class.getMethods();
  for (Method m : methods) {
    Assert.assertTrue(
        "Idempotent or AtMostOnce annotation is not present " + m,
        m.isAnnotationPresent(Idempotent.class)
            || m.isAnnotationPresent(AtMostOnce.class));
  }
}
 
开发者ID:naver,项目名称:hadoop,代码行数:11,代码来源:TestAnnotations.java

示例3: versionRequest

import org.apache.hadoop.io.retry.Idempotent; //导入依赖的package包/类
@Idempotent
public NamespaceInfo versionRequest() throws IOException;
 
开发者ID:naver,项目名称:hadoop,代码行数:3,代码来源:DatanodeProtocol.java

示例4: registerNodeManager

import org.apache.hadoop.io.retry.Idempotent; //导入依赖的package包/类
@Idempotent
public RegisterNodeManagerResponse registerNodeManager(
    RegisterNodeManagerRequest request) throws YarnException,
    IOException;
 
开发者ID:naver,项目名称:hadoop,代码行数:5,代码来源:ResourceTracker.java

示例5: refreshQueues

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

示例6: refreshNodes

import org.apache.hadoop.io.retry.Idempotent; //导入依赖的package包/类
@Public
@Stable
@Idempotent
public RefreshNodesResponse refreshNodes(RefreshNodesRequest request)
throws StandbyException, YarnException, IOException;
 
开发者ID:naver,项目名称:hadoop,代码行数:6,代码来源:ResourceManagerAdministrationProtocol.java

示例7: refreshUserToGroupsMappings

import org.apache.hadoop.io.retry.Idempotent; //导入依赖的package包/类
@Public
@Stable
@Idempotent
public RefreshUserToGroupsMappingsResponse refreshUserToGroupsMappings(
    RefreshUserToGroupsMappingsRequest request)
throws StandbyException, YarnException, IOException;
 
开发者ID:naver,项目名称:hadoop,代码行数:7,代码来源:ResourceManagerAdministrationProtocol.java

示例8: refreshAdminAcls

import org.apache.hadoop.io.retry.Idempotent; //导入依赖的package包/类
@Public
@Stable
@Idempotent
public RefreshAdminAclsResponse refreshAdminAcls(
    RefreshAdminAclsRequest request)
throws YarnException, IOException;
 
开发者ID:naver,项目名称:hadoop,代码行数:7,代码来源:ResourceManagerAdministrationProtocol.java

示例9: refreshServiceAcls

import org.apache.hadoop.io.retry.Idempotent; //导入依赖的package包/类
@Public
@Stable
@Idempotent
public RefreshServiceAclsResponse refreshServiceAcls(
    RefreshServiceAclsRequest request)
throws YarnException, IOException;
 
开发者ID:naver,项目名称:hadoop,代码行数:7,代码来源:ResourceManagerAdministrationProtocol.java

示例10: replaceLabelsOnNode

import org.apache.hadoop.io.retry.Idempotent; //导入依赖的package包/类
@Public
@Evolving
@Idempotent
public ReplaceLabelsOnNodeResponse replaceLabelsOnNode(
    ReplaceLabelsOnNodeRequest request) throws YarnException, IOException;
 
开发者ID:naver,项目名称:hadoop,代码行数:6,代码来源:ResourceManagerAdministrationProtocol.java

示例11: getDatanodeStorageReport

import org.apache.hadoop.io.retry.Idempotent; //导入依赖的package包/类
/**
 * Get a report on the current datanode storages.
 */
@Idempotent
public DatanodeStorageReport[] getDatanodeStorageReport(
    HdfsConstants.DatanodeReportType type) throws IOException;
 
开发者ID:naver,项目名称:hadoop,代码行数:7,代码来源:ClientProtocol.java

示例12: errorReport

import org.apache.hadoop.io.retry.Idempotent; //导入依赖的package包/类
/**
 * errorReport() tells the NameNode about something that has gone
 * awry.  Useful for debugging.
 */
@Idempotent
public void errorReport(DatanodeRegistration registration,
                        int errorCode, 
                        String msg) throws IOException;
 
开发者ID:naver,项目名称:hadoop,代码行数:9,代码来源:DatanodeProtocol.java

示例13: commitBlockSynchronization

import org.apache.hadoop.io.retry.Idempotent; //导入依赖的package包/类
/**
 * Commit block synchronization in lease recovery
 */
@Idempotent
public void commitBlockSynchronization(ExtendedBlock block,
    long newgenerationstamp, long newlength,
    boolean closeFile, boolean deleteblock, DatanodeID[] newtargets,
    String[] newtargetstorages) throws IOException;
 
开发者ID:naver,项目名称:hadoop,代码行数:9,代码来源:DatanodeProtocol.java

示例14: getEZForPath

import org.apache.hadoop.io.retry.Idempotent; //导入依赖的package包/类
/**
 * Get the encryption zone for a path.
 */
@Idempotent
public EncryptionZone getEZForPath(String src)
  throws IOException;
 
开发者ID:naver,项目名称:hadoop,代码行数:7,代码来源:ClientProtocol.java

示例15: sendHeartbeat

import org.apache.hadoop.io.retry.Idempotent; //导入依赖的package包/类
/**
 * sendHeartbeat() tells the NameNode that the DataNode is still
 * alive and well.  Includes some status info, too. 
 * It also gives the NameNode a chance to return 
 * an array of "DatanodeCommand" objects in HeartbeatResponse.
 * A DatanodeCommand tells the DataNode to invalidate local block(s), 
 * or to copy them to other DataNodes, etc.
 * @param registration datanode registration information
 * @param reports utilization report per storage
 * @param xmitsInProgress number of transfers from this datanode to others
 * @param xceiverCount number of active transceiver threads
 * @param failedVolumes number of failed volumes
 * @param volumeFailureSummary info about volume failures
 * @throws IOException on error
 */
@Idempotent
public HeartbeatResponse sendHeartbeat(DatanodeRegistration registration,
                                     StorageReport[] reports,
                                     long dnCacheCapacity,
                                     long dnCacheUsed,
                                     int xmitsInProgress,
                                     int xceiverCount,
                                     int failedVolumes,
                                     VolumeFailureSummary volumeFailureSummary)
    throws IOException;
 
开发者ID:naver,项目名称:hadoop,代码行数:26,代码来源:DatanodeProtocol.java


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