@NotThreadSafe public class AllMasterRegistrationBlockWorker extends DefaultBlockWorker
DefaultBlockWorker.Metrics, DefaultBlockWorker.StorageChecker
mAddress, mBlockStore, mFileSystemMasterClient, mResourceCloser, mWorkerId
Constructor and Description |
---|
AllMasterRegistrationBlockWorker(BlockMasterClientPool blockMasterClientPool,
FileSystemMasterClient fileSystemMasterClient,
Sessions sessions,
BlockStore blockStore,
AtomicReference<Long> workerId)
Constructs a block worker when workers register to all masters.
|
Modifier and Type | Method and Description |
---|---|
BlockSyncMasterGroup |
getBlockSyncMasterGroup() |
protected void |
setupBlockMasterSync() |
void |
start(WorkerNetAddress address)
Runs the block worker.
|
abortBlock, askForWorkerId, asyncCache, cache, cleanupSession, clearMetrics, commitBlock, commitBlockInUfs, createBlock, createBlockReader, createBlockWriter, createUfsBlockReader, freeWorker, getBlockStore, getConfiguration, getDependencies, getFileInfo, getName, getReport, getServices, getStoreMeta, getStoreMetaFull, getWhiteList, getWorkerAddress, getWorkerId, load, removeBlock, requestSpace, stop, updatePinList
close, getExecutorService
public AllMasterRegistrationBlockWorker(BlockMasterClientPool blockMasterClientPool, FileSystemMasterClient fileSystemMasterClient, Sessions sessions, BlockStore blockStore, AtomicReference<Long> workerId)
blockMasterClientPool
- a client pool for talking to the block masterfileSystemMasterClient
- a client for talking to the file system mastersessions
- an object for tracking and cleaning up client sessionsblockStore
- an Alluxio block storeworkerId
- worker idprotected void setupBlockMasterSync()
setupBlockMasterSync
in class DefaultBlockWorker
public void start(WorkerNetAddress address) throws IOException
DefaultBlockWorker
start
in interface Server<WorkerNetAddress>
start
in class DefaultBlockWorker
address
- the start optionsIOException
public BlockSyncMasterGroup getBlockSyncMasterGroup()
Copyright © 2023. All Rights Reserved.