org.apache.hadoop.hdfs
Class ShortCircuitShm.ShmId

java.lang.Object
  extended by org.apache.hadoop.hdfs.ShortCircuitShm.ShmId
All Implemented Interfaces:
Comparable<ShortCircuitShm.ShmId>
Enclosing class:
ShortCircuitShm

public static class ShortCircuitShm.ShmId
extends Object
implements Comparable<ShortCircuitShm.ShmId>

Identifies a DfsClientShm.


Constructor Summary
ShortCircuitShm.ShmId(long hi, long lo)
           
 
Method Summary
 int compareTo(ShortCircuitShm.ShmId other)
           
static ShortCircuitShm.ShmId createRandom()
          Generate a random ShmId.
 boolean equals(Object o)
           
 long getHi()
           
 long getLo()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ShortCircuitShm.ShmId

public ShortCircuitShm.ShmId(long hi,
                             long lo)
Method Detail

createRandom

public static ShortCircuitShm.ShmId createRandom()
Generate a random ShmId. We generate ShmIds randomly to prevent a malicious client from successfully guessing one and using that to interfere with another client.


getHi

public long getHi()

getLo

public long getLo()

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object

compareTo

public int compareTo(ShortCircuitShm.ShmId other)
Specified by:
compareTo in interface Comparable<ShortCircuitShm.ShmId>


Copyright © 2014 Apache Software Foundation. All Rights Reserved.