public class ShortCircuitShm.Slot extends Object
Modifier and Type | Method and Description |
---|---|
boolean |
addAnchor()
Try to add an anchor for a given slot.
|
org.apache.hadoop.hdfs.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() |
public ShortCircuitShm getShm()
public org.apache.hadoop.hdfs.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()
Copyright © 2018 Apache Software Foundation. All Rights Reserved.