public class EncryptionZoneManager extends Object
The EncryptionZoneManager has its own lock, but relies on the FSDirectory lock being held for many operations. The FSDirectory lock should not be taken if the manager lock is already held.
Modifier and Type | Field and Description |
---|---|
static org.apache.hadoop.fs.BatchedRemoteIterator.BatchedListEntries<org.apache.hadoop.hdfs.protocol.ZoneReencryptionStatus> |
EMPTY_LIST |
static org.slf4j.Logger |
LOG |
Constructor and Description |
---|
EncryptionZoneManager(org.apache.hadoop.hdfs.server.namenode.FSDirectory dir,
org.apache.hadoop.conf.Configuration conf)
Construct a new EncryptionZoneManager.
|
Modifier and Type | Method and Description |
---|---|
int |
getNumEncryptionZones() |
org.apache.hadoop.hdfs.protocol.ReencryptionStatus |
getReencryptionStatus() |
org.apache.hadoop.hdfs.protocol.ZoneReencryptionStatus |
getZoneStatus(String zone) |
boolean |
hasCreatedEncryptionZone() |
void |
pauseForTestingAfterNthCheckpoint(String zone,
int count) |
void |
pauseForTestingAfterNthSubmission(int count) |
void |
pauseReencryptForTesting() |
void |
pauseReencryptUpdaterForTesting() |
void |
resetMetricsForTesting() |
void |
resumeReencryptForTesting() |
void |
resumeReencryptUpdaterForTesting() |
public static final org.slf4j.Logger LOG
public static final org.apache.hadoop.fs.BatchedRemoteIterator.BatchedListEntries<org.apache.hadoop.hdfs.protocol.ZoneReencryptionStatus> EMPTY_LIST
public EncryptionZoneManager(org.apache.hadoop.hdfs.server.namenode.FSDirectory dir, org.apache.hadoop.conf.Configuration conf)
dir
- Enclosing FSDirectory@VisibleForTesting public void pauseReencryptForTesting()
@VisibleForTesting public void resumeReencryptForTesting()
@VisibleForTesting public void pauseForTestingAfterNthSubmission(int count)
@VisibleForTesting public void pauseReencryptUpdaterForTesting()
@VisibleForTesting public void resumeReencryptUpdaterForTesting()
@VisibleForTesting public void pauseForTestingAfterNthCheckpoint(String zone, int count) throws IOException
IOException
@VisibleForTesting public void resetMetricsForTesting()
@VisibleForTesting public org.apache.hadoop.hdfs.protocol.ReencryptionStatus getReencryptionStatus()
@VisibleForTesting public org.apache.hadoop.hdfs.protocol.ZoneReencryptionStatus getZoneStatus(String zone) throws IOException
IOException
public int getNumEncryptionZones()
public boolean hasCreatedEncryptionZone()
Copyright © 2008–2024 Apache Software Foundation. All rights reserved.