本文整理汇总了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;
示例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));
}
}
示例3: versionRequest
import org.apache.hadoop.io.retry.Idempotent; //导入依赖的package包/类
@Idempotent
public NamespaceInfo versionRequest() throws IOException;
示例4: registerNodeManager
import org.apache.hadoop.io.retry.Idempotent; //导入依赖的package包/类
@Idempotent
public RegisterNodeManagerResponse registerNodeManager(
RegisterNodeManagerRequest request) throws YarnException,
IOException;
示例5: refreshQueues
import org.apache.hadoop.io.retry.Idempotent; //导入依赖的package包/类
@Public
@Stable
@Idempotent
public RefreshQueuesResponse refreshQueues(RefreshQueuesRequest request)
throws StandbyException, YarnException, IOException;
示例6: refreshNodes
import org.apache.hadoop.io.retry.Idempotent; //导入依赖的package包/类
@Public
@Stable
@Idempotent
public RefreshNodesResponse refreshNodes(RefreshNodesRequest request)
throws StandbyException, YarnException, IOException;
示例7: refreshUserToGroupsMappings
import org.apache.hadoop.io.retry.Idempotent; //导入依赖的package包/类
@Public
@Stable
@Idempotent
public RefreshUserToGroupsMappingsResponse refreshUserToGroupsMappings(
RefreshUserToGroupsMappingsRequest request)
throws StandbyException, YarnException, IOException;
示例8: refreshAdminAcls
import org.apache.hadoop.io.retry.Idempotent; //导入依赖的package包/类
@Public
@Stable
@Idempotent
public RefreshAdminAclsResponse refreshAdminAcls(
RefreshAdminAclsRequest request)
throws YarnException, IOException;
示例9: refreshServiceAcls
import org.apache.hadoop.io.retry.Idempotent; //导入依赖的package包/类
@Public
@Stable
@Idempotent
public RefreshServiceAclsResponse refreshServiceAcls(
RefreshServiceAclsRequest request)
throws YarnException, IOException;
示例10: replaceLabelsOnNode
import org.apache.hadoop.io.retry.Idempotent; //导入依赖的package包/类
@Public
@Evolving
@Idempotent
public ReplaceLabelsOnNodeResponse replaceLabelsOnNode(
ReplaceLabelsOnNodeRequest request) throws YarnException, IOException;
示例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;
示例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;
示例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;
示例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;
示例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;