public class BlockInfo extends Object
| Modifier and Type | Field and Description |
|---|---|
protected long |
addr |
static int |
CSIZE |
protected DataNodeInfo |
dnInfo |
protected long |
lba |
protected int |
length |
protected int |
lkey |
| Constructor and Description |
|---|
BlockInfo() |
BlockInfo(DataNodeInfo dnInfo,
long lba,
long addr,
int length,
int lkey) |
| Modifier and Type | Method and Description |
|---|---|
long |
getAddr() |
DataNodeInfo |
getDnInfo() |
long |
getLba() |
int |
getLength() |
int |
getLkey() |
void |
setBlockInfo(BlockInfo blockInfo) |
String |
toString() |
void |
update(ByteBuffer buffer) |
int |
write(ByteBuffer buffer) |
public static int CSIZE
protected DataNodeInfo dnInfo
protected long lba
protected long addr
protected int length
protected int lkey
public BlockInfo()
public BlockInfo(DataNodeInfo dnInfo, long lba, long addr, int length, int lkey)
public void setBlockInfo(BlockInfo blockInfo)
public int write(ByteBuffer buffer)
public void update(ByteBuffer buffer) throws UnknownHostException
UnknownHostExceptionpublic long getLba()
public long getAddr()
public int getLength()
public int getLkey()
public DataNodeInfo getDnInfo()
Copyright © 2018 The Apache Software Foundation. All rights reserved.