org.apache.hadoop.hbase.rest.model
Class StorageClusterStatusModel.Node.Region

java.lang.Object
  extended by org.apache.hadoop.hbase.rest.model.StorageClusterStatusModel.Node.Region
Enclosing class:
StorageClusterStatusModel.Node

public static class StorageClusterStatusModel.Node.Region
extends Object

Represents a region hosted on a region server.


Constructor Summary
StorageClusterStatusModel.Node.Region()
          Default constructor
StorageClusterStatusModel.Node.Region(byte[] name)
          Constructor
StorageClusterStatusModel.Node.Region(byte[] name, int stores, int storefiles, int storefileSizeMB, int memstoreSizeMB, int storefileIndexSizeMB)
          Constructor
 
Method Summary
 int getMemstoreSizeMB()
           
 byte[] getName()
           
 int getStorefileIndexSizeMB()
           
 int getStorefiles()
           
 int getStorefileSizeMB()
           
 int getStores()
           
 void setMemstoreSizeMB(int memstoreSizeMB)
           
 void setName(byte[] name)
           
 void setStorefileIndexSizeMB(int storefileIndexSizeMB)
           
 void setStorefiles(int storefiles)
           
 void setStorefileSizeMB(int storefileSizeMB)
           
 void setStores(int stores)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StorageClusterStatusModel.Node.Region

public StorageClusterStatusModel.Node.Region()
Default constructor


StorageClusterStatusModel.Node.Region

public StorageClusterStatusModel.Node.Region(byte[] name)
Constructor

Parameters:
name - the region name

StorageClusterStatusModel.Node.Region

public StorageClusterStatusModel.Node.Region(byte[] name,
                                             int stores,
                                             int storefiles,
                                             int storefileSizeMB,
                                             int memstoreSizeMB,
                                             int storefileIndexSizeMB)
Constructor

Parameters:
name - the region name
stores - the number of stores
storefiles - the number of store files
storefileSizeMB - total size of store files, in MB
memstoreSizeMB - total size of memstore, in MB
storefileIndexSizeMB - total size of store file indexes, in MB
Method Detail

getName

public byte[] getName()
Returns:
the region name

getStores

public int getStores()
Returns:
the number of stores

getStorefiles

public int getStorefiles()
Returns:
the number of store files

getStorefileSizeMB

public int getStorefileSizeMB()
Returns:
the total size of store files, in MB

getMemstoreSizeMB

public int getMemstoreSizeMB()
Returns:
memstore size, in MB

getStorefileIndexSizeMB

public int getStorefileIndexSizeMB()
Returns:
the total size of store file indexes, in MB

setName

public void setName(byte[] name)
Parameters:
name - the region name

setStores

public void setStores(int stores)
Parameters:
stores - the number of stores

setStorefiles

public void setStorefiles(int storefiles)
Parameters:
storefiles - the number of store files

setStorefileSizeMB

public void setStorefileSizeMB(int storefileSizeMB)
Parameters:
storefileSizeMB - total size of store files, in MB

setMemstoreSizeMB

public void setMemstoreSizeMB(int memstoreSizeMB)
Parameters:
memstoreSizeMB - memstore size, in MB

setStorefileIndexSizeMB

public void setStorefileIndexSizeMB(int storefileIndexSizeMB)
Parameters:
storefileIndexSizeMB - total size of store file indexes, in MB


Copyright © 2011 The Apache Software Foundation. All Rights Reserved.