public class DataNodeInfo extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
CSIZE |
| Constructor and Description |
|---|
DataNodeInfo() |
DataNodeInfo(int storageType,
int storageClass,
int locationClass,
byte[] ipAddress,
int port) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getIpAddress() |
int |
getLocationClass() |
int |
getPort() |
int |
getStorageClass() |
int |
getStorageType() |
long |
key() |
String |
toString() |
void |
update(ByteBuffer buffer) |
int |
write(ByteBuffer buffer) |
public static final int CSIZE
public DataNodeInfo()
public DataNodeInfo(int storageType,
int storageClass,
int locationClass,
byte[] ipAddress,
int port)
public int write(ByteBuffer buffer)
public void update(ByteBuffer buffer) throws UnknownHostException
UnknownHostExceptionpublic byte[] getIpAddress()
public int getPort()
public int getLocationClass()
public int getStorageType()
public int getStorageClass()
public long key()
Copyright © 2018 The Apache Software Foundation. All rights reserved.