| Package | Description |
|---|---|
| org.apache.hadoop.hdfs.protocol | |
| org.apache.hadoop.hdfs.server.datanode | |
| org.apache.hadoop.hdfs.server.datanode.fsdataset |
| Modifier and Type | Class | Description |
|---|---|---|
static class |
BlockListAsLongs.BlockReportReplica |
| Modifier and Type | Method | Description |
|---|---|---|
void |
BlockListAsLongs.Builder.add(Replica replica) |
| Modifier and Type | Method | Description |
|---|---|---|
static BlockListAsLongs |
BlockListAsLongs.encode(java.util.Collection<? extends Replica> replicas) |
Prepare an instance to encode the collection of replicas into an
efficient ByteString.
|
| Modifier and Type | Interface | Description |
|---|---|---|
interface |
ReplicaInPipeline |
This defines the interface of a replica in Pipeline that's being written to
|
| Modifier and Type | Class | Description |
|---|---|---|
class |
FinalizedProvidedReplica |
This class is used for provided replicas that are finalized.
|
class |
FinalizedReplica |
This class describes a replica that has been finalized.
|
class |
LocalReplica |
This class is used for all replicas which are on local storage media
and hence, are backed by files.
|
class |
LocalReplicaInPipeline |
This class defines a replica in a pipeline, which
includes a persistent replica being written to by a dfs client or
a temporary replica being replicated by a source datanode or
being copied for the balancing purpose.
|
class |
ProvidedReplica |
This abstract class is used as a base class for provided replicas.
|
class |
ReplicaBeingWritten |
This class represents replicas being written.
|
class |
ReplicaInfo |
This class is used by datanodes to maintain meta data of its replicas.
|
class |
ReplicaUnderRecovery |
This class represents replicas that are under block recovery
It has a recovery id that is equal to the generation stamp
that the replica will be bumped to after recovery
The recovery id is used to handle multiple concurrent block recoveries.
|
class |
ReplicaWaitingToBeRecovered |
This class represents a replica that is waiting to be recovered.
|
| Modifier and Type | Method | Description |
|---|---|---|
Replica |
FsDatasetSpi.getReplica(java.lang.String bpid,
long blockId) |
Deprecated.
|
Replica |
FsDatasetSpi.recoverClose(org.apache.hadoop.hdfs.protocol.ExtendedBlock b,
long newGS,
long expectedBlockLen) |
Recover a failed pipeline close.
|
Replica |
FsDatasetSpi.updateReplicaUnderRecovery(org.apache.hadoop.hdfs.protocol.ExtendedBlock oldBlock,
long recoveryId,
long newBlockId,
long newLength) |
Update replica's generation stamp and length and finalize it.
|
| Modifier and Type | Method | Description |
|---|---|---|
java.util.Set<? extends Replica> |
FsDatasetSpi.deepCopyReplica(java.lang.String bpid) |
Deep copy the replica info belonging to given block pool.
|
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.