Class ExportedBlockKeys

java.lang.Object
org.apache.hadoop.hdfs.security.token.block.ExportedBlockKeys
All Implemented Interfaces:
org.apache.hadoop.io.Writable

@Private public class ExportedBlockKeys extends Object implements org.apache.hadoop.io.Writable
Object for passing block keys
  • Field Details

  • Constructor Details

    • ExportedBlockKeys

      public ExportedBlockKeys()
    • ExportedBlockKeys

      public ExportedBlockKeys(boolean isBlockTokenEnabled, long keyUpdateInterval, long tokenLifetime, BlockKey currentKey, BlockKey[] allKeys)
  • Method Details

    • isBlockTokenEnabled

      public boolean isBlockTokenEnabled()
    • getKeyUpdateInterval

      public long getKeyUpdateInterval()
    • getTokenLifetime

      public long getTokenLifetime()
    • getCurrentKey

      public BlockKey getCurrentKey()
    • getAllKeys

      public BlockKey[] getAllKeys()
    • write

      public void write(DataOutput out) throws IOException
      Specified by:
      write in interface org.apache.hadoop.io.Writable
      Throws:
      IOException
    • readFields

      public void readFields(DataInput in) throws IOException
      Specified by:
      readFields in interface org.apache.hadoop.io.Writable
      Throws:
      IOException