CLUSTER Model.
More...
Static Public Member Functions |
def | get |
Static Public Attributes |
tuple | address = models.CharField(max_length=20) |
| network address of the Cluster
|
tuple | name = models.CharField(max_length=40, unique=True) |
| human-readable name of the Cluster (one that is displayed in web interface)
|
tuple | port = models.IntegerField() |
| port on which Cluster is running
|
tuple | state = models.IntegerField() |
| whether cluster is available or locked, see also: src.common.states.cluster_states
|
Detailed Description
CLUSTER Model.
Cluster is set of virtualization Nodes connected within single network.
Definition at line 36 of file cluster.py.
Member Function Documentation
def src.clm.models.cluster.Cluster.__unicode__ |
( |
|
self | ) |
|
def src.clm.models.cluster.Cluster.dict |
( |
|
self | ) |
|
def src.clm.models.cluster.Cluster.get |
( |
|
cluster_id | ) |
|
|
static |
- Parameters
-
cluster_id | (int ) id of the requested Cluster |
- Returns
- (
Cluster
) instance of the requested Cluster
- Exceptions
-
CLMException('cluster_get') | no such Cluster |
CLMException('cluster_locked') | Cluster is locked |
Definition at line 97 of file cluster.py.
def src.clm.models.cluster.Cluster.short_dict |
( |
|
self | ) |
|
Member Data Documentation
tuple src.clm.models.cluster.Cluster.address = models.CharField(max_length=20) |
|
static |
network address of the Cluster
- Note
- each instance of the model has corresponding non-static attribute
Definition at line 38 of file cluster.py.
tuple src.clm.models.cluster.Cluster.name = models.CharField(max_length=40, unique=True) |
|
static |
human-readable name of the Cluster (one that is displayed in web interface)
- Note
- each instance of the model has corresponding non-static attribute
Definition at line 42 of file cluster.py.
tuple src.clm.models.cluster.Cluster.port = models.IntegerField() |
|
static |
port on which Cluster is running
- Note
- each instance of the model has corresponding non-static attribute
Definition at line 40 of file cluster.py.
tuple src.clm.models.cluster.Cluster.state = models.IntegerField() |
|
static |
The documentation for this class was generated from the following file: