org.apache.hadoop.io.retry.Idempotent类的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(6.2k)|赞(0)|评价(0)|浏览(175)

本文整理了Java中org.apache.hadoop.io.retry.Idempotent类的一些代码示例,展示了Idempotent类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Idempotent类的具体详情如下:
包路径:org.apache.hadoop.io.retry.Idempotent
类名称:Idempotent

Idempotent介绍

暂无

代码示例

代码示例来源:origin: org.apache.hadoop/hadoop-common

  1. /**
  2. * Get the groups which are mapped to the given user.
  3. * @param user The user to get the groups for.
  4. * @return The set of groups the user belongs to.
  5. * @throws IOException
  6. */
  7. @Idempotent
  8. public String[] getGroupsForUser(String user) throws IOException;
  9. }

代码示例来源:origin: org.apache.hadoop/hadoop-common

  1. /**
  2. * Refresh user to group mappings.
  3. * @throws IOException
  4. */
  5. @Idempotent
  6. public void refreshUserToGroupsMappings() throws IOException;

代码示例来源:origin: org.apache.hadoop/hadoop-common

  1. /**
  2. * Refresh superuser proxy group list
  3. * @throws IOException
  4. */
  5. @Idempotent
  6. public void refreshSuperUserGroupsConfiguration() throws IOException;
  7. }

代码示例来源:origin: org.apache.hadoop/hadoop-common

  1. /**
  2. * Refresh the resource based on identity passed in.
  3. * @throws IOException
  4. */
  5. @Idempotent
  6. Collection<RefreshResponse> refresh(String identifier, String[] args)
  7. throws IOException;
  8. }

代码示例来源:origin: org.apache.hadoop/hadoop-common

  1. /**
  2. * Refresh the callqueue.
  3. * @throws IOException
  4. */
  5. @Idempotent
  6. void refreshCallQueue() throws IOException;
  7. }

代码示例来源:origin: org.apache.hadoop/hadoop-common

  1. /**
  2. * List the currently active trace span receivers.
  3. *
  4. * @throws IOException On error.
  5. */
  6. @Idempotent
  7. public SpanReceiverInfo[] listSpanReceivers() throws IOException;

代码示例来源:origin: org.apache.hadoop/hadoop-common

  1. /**
  2. * Refresh the service-level authorization policy in-effect.
  3. * @throws IOException
  4. */
  5. @Idempotent
  6. void refreshServiceAcl() throws IOException;
  7. }

代码示例来源:origin: org.apache.hadoop/hadoop-common

  1. /**
  2. * Return the current status of the service. The status indicates
  3. * the current <em>state</em> (e.g ACTIVE/STANDBY) as well as
  4. * some additional information.
  5. *
  6. * @throws AccessControlException
  7. * if access is denied.
  8. * @throws IOException
  9. * if other errors happen
  10. * @see HAServiceStatus
  11. */
  12. @Idempotent
  13. public HAServiceStatus getServiceStatus() throws AccessControlException,
  14. IOException;
  15. }

代码示例来源:origin: org.apache.hadoop/hadoop-common

  1. /**
  2. * Request service to transition to active state. No operation, if the
  3. * service is already in active state.
  4. *
  5. * @throws ServiceFailedException
  6. * if transition from standby to active fails.
  7. * @throws AccessControlException
  8. * if access is denied.
  9. * @throws IOException
  10. * if other errors happen
  11. */
  12. @Idempotent
  13. public void transitionToActive(StateChangeRequestInfo reqInfo)
  14. throws ServiceFailedException,
  15. AccessControlException,
  16. IOException;

代码示例来源:origin: org.apache.hadoop/hadoop-common

  1. /**
  2. * Request service to transition to standby state. No operation, if the
  3. * service is already in standby state.
  4. *
  5. * @throws ServiceFailedException
  6. * if transition from active to standby fails.
  7. * @throws AccessControlException
  8. * if access is denied.
  9. * @throws IOException
  10. * if other errors happen
  11. */
  12. @Idempotent
  13. public void transitionToStandby(StateChangeRequestInfo reqInfo)
  14. throws ServiceFailedException,
  15. AccessControlException,
  16. IOException;

代码示例来源:origin: org.apache.hadoop/hadoop-common

  1. /**
  2. * Monitor the health of service. This periodically called by the HA
  3. * frameworks to monitor the health of the service.
  4. *
  5. * Service is expected to perform checks to ensure it is functional.
  6. * If the service is not healthy due to failure or partial failure,
  7. * it is expected to throw {@link HealthCheckFailedException}.
  8. * The definition of service not healthy is left to the service.
  9. *
  10. * Note that when health check of an Active service fails,
  11. * failover to standby may be done.
  12. *
  13. * @throws HealthCheckFailedException
  14. * if the health check of a service fails.
  15. * @throws AccessControlException
  16. * if access is denied.
  17. * @throws IOException
  18. * if other errors happen
  19. */
  20. @Idempotent
  21. public void monitorHealth() throws HealthCheckFailedException,
  22. AccessControlException,
  23. IOException;

代码示例来源:origin: org.apache.hadoop/hadoop-common

  1. /**
  2. * Request that this node try to become active through a graceful failover.
  3. *
  4. * If the node is already active, this is a no-op and simply returns success
  5. * without taking any further action.
  6. *
  7. * If the node is not healthy, it will throw an exception indicating that it
  8. * is not able to become active.
  9. *
  10. * If the node is healthy and not active, it will try to initiate a graceful
  11. * failover to become active, returning only when it has successfully become
  12. * active. See {@link ZKFailoverController#gracefulFailoverToYou()} for the
  13. * implementation details.
  14. *
  15. * If the node fails to successfully coordinate the failover, throws an
  16. * exception indicating the reason for failure.
  17. *
  18. * @throws IOException if graceful failover fails
  19. * @throws AccessControlException if the operation is disallowed
  20. */
  21. @Idempotent
  22. public void gracefulFailover()
  23. throws IOException, AccessControlException;
  24. }

代码示例来源:origin: org.apache.hadoop/hadoop-common

  1. @Idempotent
  2. public void cedeActive(int millisToCede)
  3. throws IOException, AccessControlException;

代码示例来源:origin: org.apache.hadoop/hadoop-hdfs

  1. /**
  2. * Discard journal segments whose first TxId is greater than or equal to the
  3. * given txid.
  4. */
  5. @Idempotent
  6. void discardSegments(String journalId,
  7. String nameServiceId,
  8. long startTxId)
  9. throws IOException;

代码示例来源:origin: org.apache.hadoop/hadoop-hdfs

  1. /**
  2. * same as {@link org.apache.hadoop.hdfs.protocol.ClientProtocol#reportBadBlocks(LocatedBlock[])}
  3. * }
  4. */
  5. @Idempotent
  6. public void reportBadBlocks(LocatedBlock[] blocks) throws IOException;

代码示例来源:origin: org.apache.hadoop/hadoop-hdfs

  1. /**
  2. * Request name-node version and storage information.
  3. *
  4. * @return {@link NamespaceInfo} identifying versions and storage information
  5. * of the name-node
  6. * @throws IOException
  7. */
  8. @Idempotent
  9. public NamespaceInfo versionRequest() throws IOException;

代码示例来源:origin: org.apache.hadoop/hadoop-hdfs

  1. @Idempotent
  2. void sendLifeline(DatanodeRegistration registration, StorageReport[] reports,
  3. long dnCacheCapacity, long dnCacheUsed, int xmitsInProgress,
  4. int xceiverCount, int failedVolumes,
  5. VolumeFailureSummary volumeFailureSummary) throws IOException;
  6. }

代码示例来源:origin: org.apache.hadoop/hadoop-hdfs

  1. /**
  2. * errorReport() tells the NameNode about something that has gone
  3. * awry. Useful for debugging.
  4. */
  5. @Idempotent
  6. public void errorReport(DatanodeRegistration registration,
  7. int errorCode,
  8. String msg) throws IOException;

代码示例来源:origin: org.apache.hadoop/hadoop-hdfs

  1. /**
  2. * Return a structure containing details about all edit logs
  3. * available to be fetched from the NameNode.
  4. * @param sinceTxId return only logs that contain transactions >= sinceTxId
  5. */
  6. @Idempotent
  7. public RemoteEditLogManifest getEditLogManifest(long sinceTxId)
  8. throws IOException;

代码示例来源:origin: org.apache.hadoop/hadoop-hdfs

  1. /**
  2. * Get the associated block pool id.
  3. * @return the block pool id associated with the Namenode running
  4. * the in-memory alias map.
  5. */
  6. @Idempotent
  7. String getBlockPoolId() throws IOException;
  8. }

相关文章

Idempotent类方法