Class StorageClusterStatusModel.Node
java.lang.Object
org.apache.hadoop.hbase.rest.model.StorageClusterStatusModel.Node
- All Implemented Interfaces:
Serializable
- Enclosing class:
- StorageClusterStatusModel
Represents a region server.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Represents a region hosted on a region server. -
Field Summary
Modifier and TypeFieldDescriptionprivate int
private int
private String
private long
private static final long
private long
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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 listint
Returns the current heap size, in MBint
Returns the maximum heap size, in MBgetName()
Returns the region server's namegetRegion
(int index) Returns the list of regions served by the region serverlong
Returns the number of requests per second processed by the region serverlong
Returns the region server's start codevoid
setHeapSizeMB
(int heapSizeMB) void
setMaxHeapSizeMB
(int maxHeapSizeMB) void
void
void
setRequests
(long requests) void
setStartCode
(long startCode)
-
Field Details
-
serialVersionUID
- See Also:
-
name
-
startCode
-
requests
-
heapSizeMB
-
maxHeapSizeMB
-
regions
-
-
Constructor Details
-
Node
public Node()Default constructor -
Node
Constructor- Parameters:
name
- the region server namestartCode
- the region server's start code
-
-
Method Details
-
addRegion
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) Add a region name to the list- Parameters:
name
- the region name
-
getRegion
- Parameters:
index
- the index- Returns:
- the region name
-
getName
Returns the region server's name -
getStartCode
Returns the region server's start code -
getHeapSizeMB
Returns the current heap size, in MB -
getMaxHeapSizeMB
Returns the maximum heap size, in MB -
getRegions
Returns the list of regions served by the region server -
getRequests
Returns the number of requests per second processed by the region server -
setName
- Parameters:
name
- the region server's hostname
-
setStartCode
- Parameters:
startCode
- the region server's start code
-
setHeapSizeMB
- Parameters:
heapSizeMB
- the current heap size, in MB
-
setMaxHeapSizeMB
- Parameters:
maxHeapSizeMB
- the maximum heap size, in MB
-
setRegions
- Parameters:
regions
- a list of regions served by the region server
-
setRequests
- Parameters:
requests
- the number of requests per second processed by the region server
-