Package com.dtsx.astra.sdk.db.domain
Class DatabaseStorage
java.lang.Object
com.dtsx.astra.sdk.db.domain.DatabaseStorage
Represents Storage information for the db.
- Author:
- Cedrick LUNVEN (@clunven)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintGetter accessor for attribute 'nodeCount'.intGetter accessor for attribute 'replicationFactor'.intGetter accessor for attribute 'totalStorage'.intGetter accessor for attribute 'usedStorage'.voidsetNodeCount(int nodeCount) Setter accessor for attribute 'nodeCount'.voidsetReplicationFactor(int replicationFactor) Setter accessor for attribute 'replicationFactor'.voidsetTotalStorage(int totalStorage) Setter accessor for attribute 'totalStorage'.voidsetUsedStorage(int usedStorage) Setter accessor for attribute 'usedStorage'.
-
Constructor Details
-
DatabaseStorage
public DatabaseStorage()
-
-
Method Details
-
getNodeCount
public int getNodeCount()Getter accessor for attribute 'nodeCount'.- Returns:
- current value of 'nodeCount'
-
setNodeCount
public void setNodeCount(int nodeCount) Setter accessor for attribute 'nodeCount'.- Parameters:
nodeCount- new value for 'nodeCount '
-
getReplicationFactor
public int getReplicationFactor()Getter accessor for attribute 'replicationFactor'.- Returns:
- current value of 'replicationFactor'
-
setReplicationFactor
public void setReplicationFactor(int replicationFactor) Setter accessor for attribute 'replicationFactor'.- Parameters:
replicationFactor- new value for 'replicationFactor '
-
getTotalStorage
public int getTotalStorage()Getter accessor for attribute 'totalStorage'.- Returns:
- current value of 'totalStorage'
-
setTotalStorage
public void setTotalStorage(int totalStorage) Setter accessor for attribute 'totalStorage'.- Parameters:
totalStorage- new value for 'totalStorage '
-
getUsedStorage
public int getUsedStorage()Getter accessor for attribute 'usedStorage'.- Returns:
- current value of 'usedStorage'
-
setUsedStorage
public void setUsedStorage(int usedStorage) Setter accessor for attribute 'usedStorage'.- Parameters:
usedStorage- new value for 'usedStorage '
-