cc1  v2.1
CC1 source code docs
 All Classes Namespaces Files Functions Variables Pages
src.clm.models.cluster.Cluster Class Reference

CLUSTER Model. More...

Classes

class  Meta

Public Member Functions

def __unicode__
def dict
def short_dict

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)

Definition at line 49 of file cluster.py.

def src.clm.models.cluster.Cluster.dict (   self)
Returns
(dict) this Cluster's data
fields:

Definition at line 63 of file cluster.py.

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)
Returns
(dict) this Cluster's shortened data
fields:

Definition at line 81 of file cluster.py.

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

whether cluster is available or locked, see also: src.common.states.cluster_states

Note
each instance of the model has corresponding non-static attribute

Definition at line 44 of file cluster.py.


The documentation for this class was generated from the following file: