Class RemoteTierMasterAgent
- java.lang.Object
-
- org.apache.flink.runtime.io.network.partition.hybrid.tiered.tier.remote.RemoteTierMasterAgent
-
- All Implemented Interfaces:
TierMasterAgent
public class RemoteTierMasterAgent extends Object implements TierMasterAgent
The implementation ofTierMasterAgentfor the remote tier.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TierShuffleDescriptoraddPartitionAndGetShuffleDescriptor(org.apache.flink.api.common.JobID jobID, int numSubpartitions, ResultPartitionID resultPartitionID)Add a new tiered storage partition and get theTierShuffleDescriptor.voidclose()Close this tier master agent.CompletableFuture<Map<ResultPartitionID,ShuffleMetrics>>getPartitionWithMetrics(org.apache.flink.api.common.JobID jobId, Duration timeout, Set<ResultPartitionID> expectedPartitions)Retrieves specified partitions and their metrics (identified byexpectedPartitions), the metrics include sizes of sub-partitions in a result partition.booleanpartitionInRemote()Is this tier manage the partition in remote cluster instead of flink taskmanager.voidregisterJob(org.apache.flink.api.common.JobID jobID, TierShuffleHandler tierShuffleHandler)Register a job id with aTierShuffleHandler.voidreleasePartition(TierShuffleDescriptor shuffleDescriptor)Release a tiered storage partition.voidunregisterJob(org.apache.flink.api.common.JobID jobID)Unregister a job id.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.flink.runtime.io.network.partition.hybrid.tiered.tier.TierMasterAgent
restoreState, restoreState, snapshotState, snapshotState
-
-
-
-
Method Detail
-
registerJob
public void registerJob(org.apache.flink.api.common.JobID jobID, TierShuffleHandler tierShuffleHandler)Description copied from interface:TierMasterAgentRegister a job id with aTierShuffleHandler.- Specified by:
registerJobin interfaceTierMasterAgent
-
unregisterJob
public void unregisterJob(org.apache.flink.api.common.JobID jobID)
Description copied from interface:TierMasterAgentUnregister a job id.- Specified by:
unregisterJobin interfaceTierMasterAgent
-
addPartitionAndGetShuffleDescriptor
public TierShuffleDescriptor addPartitionAndGetShuffleDescriptor(org.apache.flink.api.common.JobID jobID, int numSubpartitions, ResultPartitionID resultPartitionID)
Description copied from interface:TierMasterAgentAdd a new tiered storage partition and get theTierShuffleDescriptor.- Specified by:
addPartitionAndGetShuffleDescriptorin interfaceTierMasterAgent
-
getPartitionWithMetrics
public CompletableFuture<Map<ResultPartitionID,ShuffleMetrics>> getPartitionWithMetrics(org.apache.flink.api.common.JobID jobId, Duration timeout, Set<ResultPartitionID> expectedPartitions)
Description copied from interface:TierMasterAgentRetrieves specified partitions and their metrics (identified byexpectedPartitions), the metrics include sizes of sub-partitions in a result partition.- Specified by:
getPartitionWithMetricsin interfaceTierMasterAgent- Parameters:
jobId- ID of the target jobtimeout- The timeout used for retrieve the specified partitions.expectedPartitions- The set of identifiers for the result partitions whose metrics are to be fetched.- Returns:
- A future will contain a map of the partitions with their metrics that could be retrieved from the expected partitions within the specified timeout period.
-
releasePartition
public void releasePartition(TierShuffleDescriptor shuffleDescriptor)
Description copied from interface:TierMasterAgentRelease a tiered storage partition.- Specified by:
releasePartitionin interfaceTierMasterAgent- Parameters:
shuffleDescriptor- the partition shuffle descriptor to be released
-
close
public void close()
Description copied from interface:TierMasterAgentClose this tier master agent.- Specified by:
closein interfaceTierMasterAgent
-
partitionInRemote
public boolean partitionInRemote()
Description copied from interface:TierMasterAgentIs this tier manage the partition in remote cluster instead of flink taskmanager.- Specified by:
partitionInRemotein interfaceTierMasterAgent
-
-