org.apache.hadoop.hdfs.security.token.block
Class ExportedBlockKeys

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

@InterfaceAudience.Private
public class ExportedBlockKeys
extends Object
implements org.apache.hadoop.io.Writable

Object for passing block keys


Field Summary
static ExportedBlockKeys DUMMY_KEYS
           
 
Constructor Summary
ExportedBlockKeys()
           
 
Method Summary
 BlockKey[] getAllKeys()
           
 BlockKey getCurrentKey()
           
 long getKeyUpdateInterval()
           
 long getTokenLifetime()
           
 boolean isBlockTokenEnabled()
           
 void readFields(DataInput in)
           
 void write(DataOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DUMMY_KEYS

public static final ExportedBlockKeys DUMMY_KEYS
Constructor Detail

ExportedBlockKeys

public ExportedBlockKeys()
Method Detail

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


Copyright © 2009 The Apache Software Foundation