|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hdfs.ShortCircuitShm.Slot
public class ShortCircuitShm.Slot
A slot containing information about a replica. The format is: word 0 bit 0:32 Slot flags (see below). bit 33:63 Anchor count. word 1:7 Reserved for future use, such as statistics. Padding is also useful for avoiding false sharing. Little-endian versus big-endian is not relevant here since both the client and the server reside on the same computer and use the same orientation.
Method Summary | |
---|---|
boolean |
addAnchor()
Try to add an anchor for a given slot. |
ExtendedBlockId |
getBlockId()
Get the ExtendedBlockId associated with this slot. |
ShortCircuitShm |
getShm()
Get the short-circuit memory segment associated with this Slot. |
ShortCircuitShm.SlotId |
getSlotId()
Get the SlotId of this slot, containing both shmId and slotIdx. |
int |
getSlotIdx()
Get the Slot index. |
boolean |
isAnchorable()
|
boolean |
isAnchored()
|
boolean |
isValid()
|
void |
makeAnchorable()
|
void |
makeInvalid()
|
void |
makeUnanchorable()
|
void |
makeValid()
|
void |
removeAnchor()
Remove an anchor for a given slot. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public ShortCircuitShm getShm()
public ExtendedBlockId getBlockId()
public ShortCircuitShm.SlotId getSlotId()
public int getSlotIdx()
public boolean isValid()
public void makeValid()
public void makeInvalid()
public boolean isAnchorable()
public void makeAnchorable()
public void makeUnanchorable()
public boolean isAnchored()
public boolean addAnchor()
public void removeAnchor()
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |