|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hbase.rest.model.StorageClusterStatusModel.Node
public static class StorageClusterStatusModel.Node
Represents a region server.
Nested Class Summary | |
---|---|
static class |
StorageClusterStatusModel.Node.Region
Represents a region hosted on a region server. |
Constructor Summary | |
---|---|
StorageClusterStatusModel.Node()
Default constructor |
|
StorageClusterStatusModel.Node(String name,
long startCode)
Constructor |
Method Summary | |
---|---|
void |
addRegion(byte[] name,
int stores,
int storefiles,
int storefileSizeMB,
int memstoreSizeMB,
int storefileIndexSizeMB)
Add a region name to the list |
int |
getHeapSizeMB()
|
int |
getMaxHeapSizeMB()
|
String |
getName()
|
StorageClusterStatusModel.Node.Region |
getRegion(int index)
|
List<StorageClusterStatusModel.Node.Region> |
getRegions()
|
int |
getRequests()
|
long |
getStartCode()
|
void |
setHeapSizeMB(int heapSizeMB)
|
void |
setMaxHeapSizeMB(int maxHeapSizeMB)
|
void |
setName(String name)
|
void |
setRegions(List<StorageClusterStatusModel.Node.Region> regions)
|
void |
setRequests(int requests)
|
void |
setStartCode(long startCode)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StorageClusterStatusModel.Node()
public StorageClusterStatusModel.Node(String name, long startCode)
name
- the region server namestartCode
- the region server's start codeMethod Detail |
---|
public void addRegion(byte[] name, int stores, int storefiles, int storefileSizeMB, int memstoreSizeMB, int storefileIndexSizeMB)
name
- the region namepublic StorageClusterStatusModel.Node.Region getRegion(int index)
index
- the index
public String getName()
public long getStartCode()
public int getHeapSizeMB()
public int getMaxHeapSizeMB()
public List<StorageClusterStatusModel.Node.Region> getRegions()
public int getRequests()
public void setName(String name)
name
- the region server's hostnamepublic void setStartCode(long startCode)
startCode
- the region server's start codepublic void setHeapSizeMB(int heapSizeMB)
heapSizeMB
- the current heap size, in MBpublic void setMaxHeapSizeMB(int maxHeapSizeMB)
maxHeapSizeMB
- the maximum heap size, in MBpublic void setRegions(List<StorageClusterStatusModel.Node.Region> regions)
regions
- a list of regions served by the region serverpublic void setRequests(int requests)
requests
- the number of requests per second processed by the
region server
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |