public class BlockInfo extends Object
Modifier and Type | Field and Description |
---|---|
long |
BLOCK_ID |
int |
BLOCK_INDEX |
long |
LENGTH |
long |
OFFSET |
Modifier and Type | Method and Description |
---|---|
void |
addLocation(long workerId,
NetAddress workerAddress) |
static long |
computeBlockId(int inodeId,
int blockIndex) |
static int |
computeBlockIndex(long blockId) |
static int |
computeInodeId(long blockId) |
ClientBlockInfo |
generateClientBlockInfo() |
List<Pair<Long,Long>> |
getBlockIdWorkerIdPairs() |
InodeFile |
getInodeFile() |
List<NetAddress> |
getLocations() |
boolean |
isInMemory() |
void |
removeLocation(long workerId) |
String |
toString() |
public final int BLOCK_INDEX
public final long BLOCK_ID
public final long OFFSET
public final long LENGTH
public static long computeBlockId(int inodeId, int blockIndex)
public static int computeBlockIndex(long blockId)
public static int computeInodeId(long blockId)
public void addLocation(long workerId, NetAddress workerAddress)
public ClientBlockInfo generateClientBlockInfo()
public InodeFile getInodeFile()
public List<NetAddress> getLocations()
public boolean isInMemory()
public void removeLocation(long workerId)
Copyright © 2014. All rights reserved.