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.
|
Constructor and Description |
---|
StorageClusterStatusModel.Node()
Default constructor
|
StorageClusterStatusModel.Node(String name,
long startCode)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addRegion(byte[] name,
int stores,
int storefiles,
int storefileSizeMB,
int memstoreSizeMB,
int storefileIndexSizeMB,
long readRequestsCount,
long writeRequestsCount,
int rootIndexSizeKB,
int totalStaticIndexSizeKB,
int totalStaticBloomSizeKB,
long totalCompactingKVs,
long currentCompactedKVs)
Add a region name to the list
|
int |
getHeapSizeMB() |
int |
getMaxHeapSizeMB() |
String |
getName() |
StorageClusterStatusModel.Node.Region |
getRegion(int index) |
List<StorageClusterStatusModel.Node.Region> |
getRegions() |
long |
getRequests() |
long |
getStartCode() |
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) |
public StorageClusterStatusModel.Node()
public StorageClusterStatusModel.Node(String name, long startCode)
name
- the region server namestartCode
- the region server's start codepublic void addRegion(byte[] name, int stores, int storefiles, int storefileSizeMB, int memstoreSizeMB, int storefileIndexSizeMB, 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 String getName()
public long getStartCode()
public int getHeapSizeMB()
public int getMaxHeapSizeMB()
public List<StorageClusterStatusModel.Node.Region> getRegions()
public long 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(long requests)
requests
- the number of requests per second processed by the
region serverCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.