Class ExportedBlockKeys
java.lang.Object
org.apache.hadoop.hdfs.security.token.block.ExportedBlockKeys
- All Implemented Interfaces:
org.apache.hadoop.io.Writable
Object for passing block keys
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionExportedBlockKeys(boolean isBlockTokenEnabled, long keyUpdateInterval, long tokenLifetime, BlockKey currentKey, BlockKey[] allKeys) -
Method Summary
Modifier and TypeMethodDescriptionBlockKey[]longlongbooleanvoidreadFields(DataInput in) voidwrite(DataOutput out)
-
Field Details
-
DUMMY_KEYS
-
-
Constructor Details
-
ExportedBlockKeys
public ExportedBlockKeys() -
ExportedBlockKeys
-
-
Method Details
-
isBlockTokenEnabled
public boolean isBlockTokenEnabled() -
getKeyUpdateInterval
public long getKeyUpdateInterval() -
getTokenLifetime
public long getTokenLifetime() -
getCurrentKey
-
getAllKeys
-
write
- Specified by:
writein interfaceorg.apache.hadoop.io.Writable- Throws:
IOException
-
readFields
- Specified by:
readFieldsin interfaceorg.apache.hadoop.io.Writable- Throws:
IOException
-