container
v1
|
#include <resource_limit.h>
Public Member Functions | |
ResourceLimit (const Json::Value &storage) | |
ResourceLimit (Json::Value *storage) | |
virtual | ~ResourceLimit () |
const StringPiece | GetTypeName () const |
bool | has_maximum () const |
void | clear_maximum () |
int64 | get_maximum () const |
void | set_maximum (int64 value) |
bool | has_minimum () const |
void | clear_minimum () |
int64 | get_minimum () const |
void | set_minimum (int64 value) |
bool | has_resource_type () const |
void | clear_resource_type () |
const StringPiece | get_resource_type () const |
void | set_resource_type (const StringPiece &value) |
Static Public Member Functions | |
static ResourceLimit * | New () |
Contains information about amount of some resource in the cluster. For memory, value should be in GB.
|
explicit |
Standard constructor for an immutable data object instance.
[in] | storage | The underlying data storage for this instance. |
|
explicit |
Standard constructor for a mutable data object instance.
[in] | storage | The underlying data storage for this instance. |
|
virtual |
Standard destructor.
|
inline |
Clears the 'maximum
' attribute.
|
inline |
Clears the 'minimum
' attribute.
|
inline |
Clears the 'resourceType
' attribute.
|
inline |
Get the value of the 'maximum
' attribute.
|
inline |
Get the value of the 'minimum
' attribute.
|
inline |
Get the value of the 'resourceType
' attribute.
|
inline |
Returns a string denoting the type of this data object.
|
inline |
Determine if the 'maximum
' attribute was set.
maximum
' attribute was set.
|
inline |
Determine if the 'minimum
' attribute was set.
minimum
' attribute was set.
|
inline |
Determine if the 'resourceType
' attribute was set.
resourceType
' attribute was set.
|
static |
Creates a new default instance.
|
inline |
Change the 'maximum
' attribute.
Maximum amount of the resource in the cluster.
[in] | value | The new value. |
|
inline |
Change the 'minimum
' attribute.
Minimum amount of the resource in the cluster.
[in] | value | The new value. |
|
inline |
Change the 'resourceType
' attribute.
Resource name "cpu", "memory" or gpu-specific string.
[in] | value | The new value. |