public static class StorageClusterStatusModel.Node extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
StorageClusterStatusModel.Node.Region
Represents a region hosted on a region server.
|
Modifier and Type | Field and Description |
---|---|
private int |
heapSizeMB |
private int |
maxHeapSizeMB |
private String |
name |
private List<StorageClusterStatusModel.Node.Region> |
regions |
private long |
requests |
private static long |
serialVersionUID |
private long |
startCode |
Constructor and Description |
---|
Node()
Default constructor
|
Node(String name,
long startCode)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addRegion(byte[] name,
int stores,
int storefiles,
int storefileSizeMB,
int memstoreSizeMB,
long storefileIndexSizeKB,
long readRequestsCount,
long writeRequestsCount,
int rootIndexSizeKB,
int totalStaticIndexSizeKB,
int totalStaticBloomSizeKB,
long totalCompactingKVs,
long currentCompactedKVs)
Add a region name to the list
|
int |
getHeapSizeMB()
Returns the current heap size, in MB
|
int |
getMaxHeapSizeMB()
Returns the maximum heap size, in MB
|
String |
getName()
Returns the region server's name
|
StorageClusterStatusModel.Node.Region |
getRegion(int index) |
List<StorageClusterStatusModel.Node.Region> |
getRegions()
Returns the list of regions served by the region server
|
long |
getRequests()
Returns the number of requests per second processed by the region server
|
long |
getStartCode()
Returns the region server's start code
|
void |
setHeapSizeMB(int heapSizeMB) |
void |
setMaxHeapSizeMB(int maxHeapSizeMB) |
void |
setName(String name) |
void |
setRegions(List<StorageClusterStatusModel.Node.Region> regions) |
void |
setRequests(long requests) |
void |
setStartCode(long startCode) |
private static final long serialVersionUID
private long startCode
private long requests
private int heapSizeMB
private int maxHeapSizeMB
private List<StorageClusterStatusModel.Node.Region> regions
public Node()
public void addRegion(byte[] name, int stores, int storefiles, int storefileSizeMB, int memstoreSizeMB, long storefileIndexSizeKB, long readRequestsCount, long writeRequestsCount, int rootIndexSizeKB, int totalStaticIndexSizeKB, int totalStaticBloomSizeKB, long totalCompactingKVs, long currentCompactedKVs)
name
- the region namepublic StorageClusterStatusModel.Node.Region getRegion(int index)
index
- the indexpublic long getStartCode()
public int getHeapSizeMB()
public int getMaxHeapSizeMB()
public List<StorageClusterStatusModel.Node.Region> getRegions()
public long getRequests()
public 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(long requests)
requests
- the number of requests per second processed by the region serverCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.