public class EncryptionZoneManager extends Object
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 FSDirectorypublic void pauseReencryptForTesting()
public void resumeReencryptForTesting()
public void pauseForTestingAfterNthSubmission(int count)
public void pauseReencryptUpdaterForTesting()
public void resumeReencryptUpdaterForTesting()
public void pauseForTestingAfterNthCheckpoint(String zone, int count) throws IOException
IOException
public void resetMetricsForTesting()
public org.apache.hadoop.hdfs.protocol.ReencryptionStatus getReencryptionStatus()
public org.apache.hadoop.hdfs.protocol.ZoneReencryptionStatus getZoneStatus(String zone) throws IOException
IOException
public int getNumEncryptionZones()
public boolean hasCreatedEncryptionZone()
Copyright © 2008–2018 Apache Software Foundation. All rights reserved.