| Package | Description |
|---|---|
| org.apache.hadoop.hdfs.server.namenode | |
| org.apache.hadoop.hdfs.server.namenode.snapshot |
| Modifier and Type | Method | Description |
|---|---|---|
Snapshot |
INodeDirectory.addSnapshot(SnapshotManager snapshotManager,
java.lang.String name,
LeaseManager leaseManager,
long mtime) |
Add a snapshot.
|
Snapshot |
FSImageFormat.Loader.getSnapshot(java.io.DataInput in) |
|
Snapshot |
INodeDirectory.getSnapshot(byte[] snapshotName) |
|
Snapshot |
INodeDirectory.removeSnapshot(INode.ReclaimContext reclaimContext,
java.lang.String snapshotName,
long mtime,
SnapshotManager snapshotManager) |
Delete a snapshot.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
INode.ReclaimContext.setSnapshotToBeDeleted(Snapshot snapshot) |
Set the snapshot to be deleted
for
FSEditLogOpCodes.OP_DELETE_SNAPSHOT. |
| Modifier and Type | Field | Description |
|---|---|---|
static java.util.Comparator<Snapshot> |
Snapshot.ID_COMPARATOR |
Compare snapshot with IDs, where null indicates the current status thus
is greater than any non-null snapshot.
|
| Modifier and Type | Method | Description |
|---|---|---|
Snapshot |
DirectorySnapshottableFeature.addSnapshot(INodeDirectory snapshotRoot,
SnapshotManager snapshotManager,
java.lang.String name,
LeaseManager leaseManager,
long now) |
Add a snapshot.
|
Snapshot |
DirectorySnapshottableFeature.getSnapshot(byte[] snapshotName) |
|
Snapshot |
DirectorySnapshottableFeature.getSnapshotById(int sid) |
|
Snapshot |
DirectorySnapshottableFeature.getSnapshotByName(INodeDirectory snapshotRoot,
java.lang.String snapshotName) |
Find the snapshot matching the given name.
|
Snapshot |
DirectorySnapshottableFeature.removeSnapshot(INode.ReclaimContext reclaimContext,
INodeDirectory snapshotRoot,
java.lang.String snapshotName,
long now,
SnapshotManager snapshotManager) |
Remove the snapshot with the given name from
DirectorySnapshottableFeature.snapshotsByNames,
and delete all the corresponding DirectoryDiff. |
| Modifier and Type | Method | Description |
|---|---|---|
ReadOnlyList<Snapshot> |
DirectorySnapshottableFeature.getSnapshotList() |
|
java.util.Map<java.lang.Integer,Snapshot> |
SnapshotManager.read(java.io.DataInput in,
FSImageFormat.Loader loader) |
Read values of
SnapshotManager.snapshotCounter, SnapshotManager.numSnapshots, and
all snapshots from the DataInput |
| Modifier and Type | Method | Description |
|---|---|---|
static java.lang.String |
Snapshot.generateDeletedSnapshotName(Snapshot s) |
|
static int |
Snapshot.getSnapshotId(Snapshot s) |
|
static SnapshotInfo.Bean |
SnapshotManager.toBean(Snapshot s) |
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.