org.apache.hadoop.hdfs
Class ShortCircuitShm.ShmId
java.lang.Object
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.
ShortCircuitShm.ShmId
public ShortCircuitShm.ShmId(long hi,
long lo)
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.