Package | Description |
---|---|
alluxio.client.block | |
alluxio.client.block.policy | |
alluxio.client.block.stream | |
alluxio.client.file | |
alluxio.client.file.policy | |
alluxio.client.keyvalue | |
alluxio.master | |
alluxio.master.block | |
alluxio.master.block.meta | |
alluxio.util | |
alluxio.util.network | |
alluxio.wire | |
alluxio.worker |
Worker process and utils for working with the worker remotely.
|
alluxio.worker.block | |
alluxio.worker.file | |
alluxio.worker.keyvalue |
Modifier and Type | Method and Description |
---|---|
WorkerNetAddress |
BlockWorkerInfo.getNetAddress() |
Modifier and Type | Method and Description |
---|---|
BlockOutStream |
AlluxioBlockStore.getOutStream(long blockId,
long blockSize,
WorkerNetAddress address,
OutStreamOptions options)
Gets a stream to write data to a block.
|
Modifier and Type | Method and Description |
---|---|
BlockInStream |
AlluxioBlockStore.getInStream(long blockId,
InStreamOptions options,
Map<WorkerNetAddress,Long> failedWorkers)
Gets a stream to read the data of a block.
|
Constructor and Description |
---|
BlockWorkerInfo(WorkerNetAddress netAddress,
long capacityBytes,
long usedBytes)
Constructs the block worker information.
|
Modifier and Type | Method and Description |
---|---|
WorkerNetAddress |
DeterministicHashPolicy.getWorker(GetWorkerOptions options) |
WorkerNetAddress |
BlockLocationPolicy.getWorker(GetWorkerOptions options)
Gets the worker's network address for serving operations requested for the block.
|
Modifier and Type | Method and Description |
---|---|
WorkerNetAddress |
BlockOutStream.getAddress() |
WorkerNetAddress |
BlockInStream.getAddress() |
Modifier and Type | Method and Description |
---|---|
static BlockInStream |
BlockInStream.create(FileSystemContext context,
BlockInfo info,
WorkerNetAddress dataSource,
BlockInStream.BlockInStreamSource dataSourceType,
InStreamOptions options)
Creates a
BlockInStream . |
static PacketWriter |
PacketWriter.Factory.create(FileSystemContext context,
long blockId,
long blockSize,
WorkerNetAddress address,
OutStreamOptions options) |
static BlockOutStream |
BlockOutStream.create(FileSystemContext context,
long blockId,
long blockSize,
WorkerNetAddress address,
OutStreamOptions options)
Creates an
BlockOutStream . |
static NettyPacketWriter |
NettyPacketWriter.create(FileSystemContext context,
WorkerNetAddress address,
long id,
long length,
Protocol.RequestType type,
OutStreamOptions options) |
static LocalFilePacketWriter |
LocalFilePacketWriter.create(FileSystemContext context,
WorkerNetAddress address,
long blockId,
OutStreamOptions options)
Creates an instance of
LocalFilePacketWriter . |
static UnderFileSystemFileOutStream |
UnderFileSystemFileOutStream.create(FileSystemContext context,
WorkerNetAddress address,
OutStreamOptions options)
Creates an instance of
UnderFileSystemFileOutStream that writes to a UFS file. |
static BlockInStream |
BlockInStream.createRemoteBlockInStream(FileSystemContext context,
long blockId,
WorkerNetAddress address,
BlockInStream.BlockInStreamSource blockSource,
long blockSize,
Protocol.OpenUfsBlockOptions ufsOptions)
Creates a
BlockInStream to read from a specific remote server. |
Constructor and Description |
---|
BlockInStream(PacketReader.Factory packetReaderFactory,
WorkerNetAddress address,
BlockInStream.BlockInStreamSource blockSource,
long id,
long length)
Creates an instance of
BlockInStream . |
BlockOutStream(PacketWriter packetWriter,
long length,
WorkerNetAddress address)
Constructs a new
BlockOutStream with only one PacketWriter . |
Factory(FileSystemContext context,
WorkerNetAddress address,
long blockId,
long packetSize,
InStreamOptions options)
Creates an instance of
LocalFilePacketReader.Factory . |
Factory(FileSystemContext context,
WorkerNetAddress address,
Protocol.ReadRequest readRequestPartial)
Creates an instance of
NettyPacketReader.Factory for block reads. |
UnderFileSystemFileOutStream(PacketWriter packetWriter,
WorkerNetAddress address)
Constructs a new
UnderFileSystemFileOutStream with only one PacketWriter . |
Modifier and Type | Method and Description |
---|---|
WorkerNetAddress |
FileSystemContext.getLocalWorker() |
Modifier and Type | Method and Description |
---|---|
io.netty.channel.Channel |
FileSystemContext.acquireNettyChannel(WorkerNetAddress workerNetAddress)
Acquires a netty channel from the channel pools.
|
void |
FileSystemContext.releaseNettyChannel(WorkerNetAddress workerNetAddress,
io.netty.channel.Channel channel)
Releases a netty channel to the channel pools.
|
Modifier and Type | Method and Description |
---|---|
WorkerNetAddress |
RoundRobinPolicy.getWorker(GetWorkerOptions options) |
WorkerNetAddress |
MostAvailableFirstPolicy.getWorker(GetWorkerOptions options) |
WorkerNetAddress |
SpecificHostPolicy.getWorker(GetWorkerOptions options) |
WorkerNetAddress |
LocalFirstAvoidEvictionPolicy.getWorker(GetWorkerOptions options) |
WorkerNetAddress |
LocalFirstPolicy.getWorker(GetWorkerOptions options) |
WorkerNetAddress |
RoundRobinPolicy.getWorkerForNextBlock(Iterable<BlockWorkerInfo> workerInfoList,
long blockSizeBytes)
The policy uses the first fetch of worker info list as the base, and visits each of them in a
round-robin manner in the subsequent calls.
|
WorkerNetAddress |
MostAvailableFirstPolicy.getWorkerForNextBlock(Iterable<BlockWorkerInfo> workerInfoList,
long blockSizeBytes) |
WorkerNetAddress |
SpecificHostPolicy.getWorkerForNextBlock(Iterable<BlockWorkerInfo> workerInfoList,
long blockSizeBytes) |
WorkerNetAddress |
LocalFirstAvoidEvictionPolicy.getWorkerForNextBlock(Iterable<BlockWorkerInfo> workerInfoList,
long blockSizeBytes) |
WorkerNetAddress |
LocalFirstPolicy.getWorkerForNextBlock(Iterable<BlockWorkerInfo> workerInfoList,
long blockSizeBytes) |
WorkerNetAddress |
FileWriteLocationPolicy.getWorkerForNextBlock(Iterable<BlockWorkerInfo> workerInfoList,
long blockSizeBytes)
Gets the worker's host name for the next block to write to.
|
Constructor and Description |
---|
KeyValueWorkerClient(WorkerNetAddress workerNetAddress)
Creates a
KeyValueWorkerClient . |
Modifier and Type | Method and Description |
---|---|
WorkerNetAddress |
LocalAlluxioCluster.getWorkerAddress() |
Modifier and Type | Method and Description |
---|---|
long |
DefaultBlockMaster.getWorkerId(WorkerNetAddress workerNetAddress) |
long |
BlockMaster.getWorkerId(WorkerNetAddress workerNetAddress)
Returns a worker id for the given worker, creating one if the worker is new.
|
Modifier and Type | Method and Description |
---|---|
WorkerNetAddress |
MasterWorkerInfo.getWorkerAddress() |
Constructor and Description |
---|
MasterWorkerInfo(long id,
WorkerNetAddress address)
Creates a new instance of
MasterWorkerInfo . |
Modifier and Type | Method and Description |
---|---|
static boolean |
CommonUtils.isLocalHost(WorkerNetAddress address) |
Modifier and Type | Method and Description |
---|---|
static SocketAddress |
NetworkAddressUtils.getDataPortSocketAddress(WorkerNetAddress netAddress)
Extracts dataPort socket address from Alluxio representation of network address.
|
static String |
NetworkAddressUtils.getFqdnHost(WorkerNetAddress addr)
Gets FQDN(Full Qualified Domain Name) from Alluxio representation of network address.
|
static InetSocketAddress |
NetworkAddressUtils.getRpcPortSocketAddress(WorkerNetAddress netAddress)
Extracts rpcPort InetSocketAddress from Alluxio representation of network address.
|
static boolean |
NettyUtils.isDomainSocketSupported(WorkerNetAddress workerNetAddress) |
Modifier and Type | Method and Description |
---|---|
static WorkerNetAddress |
WorkerNetAddress.fromThrift(WorkerNetAddress address)
Creates a new instance of
WorkerNetAddress from thrift representation. |
WorkerNetAddress |
WorkerInfo.getAddress() |
WorkerNetAddress |
BlockLocation.getWorkerAddress() |
WorkerNetAddress |
WorkerNetAddress.setDataPort(int dataPort) |
WorkerNetAddress |
WorkerNetAddress.setDomainSocketPath(String domainSocketPath) |
WorkerNetAddress |
WorkerNetAddress.setHost(String host) |
WorkerNetAddress |
WorkerNetAddress.setRpcPort(int rpcPort) |
WorkerNetAddress |
WorkerNetAddress.setTieredIdentity(TieredIdentity tieredIdentity) |
WorkerNetAddress |
WorkerNetAddress.setWebPort(int webPort) |
Modifier and Type | Method and Description |
---|---|
WorkerInfo |
WorkerInfo.setAddress(WorkerNetAddress address) |
BlockLocation |
BlockLocation.setWorkerAddress(WorkerNetAddress workerAddress) |
Modifier and Type | Method and Description |
---|---|
WorkerNetAddress |
AlluxioWorkerProcess.getAddress() |
WorkerNetAddress |
WorkerProcess.getAddress() |
Modifier and Type | Method and Description |
---|---|
long |
BlockMasterClient.getId(WorkerNetAddress address)
Returns a worker id for a workers net address.
|
void |
DefaultBlockWorker.start(WorkerNetAddress address)
Runs the block worker.
|
Modifier and Type | Method and Description |
---|---|
void |
DefaultFileSystemWorker.start(WorkerNetAddress address) |
Modifier and Type | Method and Description |
---|---|
void |
KeyValueWorker.start(WorkerNetAddress address) |
Copyright © 2023. All Rights Reserved.