The Assimilation Project  based on Assimilation version 1.1.7.1474836767
docker.TestSystem Class Reference
Inheritance diagram for docker.TestSystem:
Collaboration diagram for docker.TestSystem:

Public Member Functions

def __init__ (self, imagename, cmdargs=None)
 
def start (self)
 
def stop (self)
 
def destroy (self)
 
def startservice (self, servicename, async=False)
 
def stopservice (self, servicename, async=False)
 

Static Public Member Functions

def find (name)
 
def delete (name)
 
def cleanupall ()
 

Data Fields

 name
 
 tmpfile
 
 cmdargs
 
 imagename
 
 status
 
 pid
 
 hostname
 
 ipaddr
 

Static Public Attributes

int nameindex = 0
 
string nameformat = '%s.%05d-%05d'
 
string tmpprefix = ''
 
string tmpbasedir = '/var/tmp/'
 
string tmpsuffix = '.AssimTest'
 
 tmpdir = None
 
int NOTINIT = 0
 
int RUNNING = 1
 
int STOPPED = 2
 
dictionary ManagedSystems = {}
 

Detailed Description

Definition at line 37 of file docker.py.

Constructor & Destructor Documentation

def docker.TestSystem.__init__ (   self,
  imagename,
  cmdargs = None 
)

Definition at line 50 of file docker.py.

Member Function Documentation

def docker.TestSystem.cleanupall ( )
static

Definition at line 78 of file docker.py.

def docker.TestSystem.delete (   name)
static

Definition at line 73 of file docker.py.

def docker.TestSystem.destroy (   self)

Definition at line 98 of file docker.py.

def docker.TestSystem.find (   name)
static

Definition at line 68 of file docker.py.

def docker.TestSystem.start (   self)

Definition at line 90 of file docker.py.

def docker.TestSystem.startservice (   self,
  servicename,
  async = False 
)

Definition at line 102 of file docker.py.

def docker.TestSystem.stop (   self)

Definition at line 94 of file docker.py.

def docker.TestSystem.stopservice (   self,
  servicename,
  async = False 
)

Definition at line 106 of file docker.py.

Field Documentation

docker.TestSystem.cmdargs

Definition at line 59 of file docker.py.

docker.TestSystem.hostname

Definition at line 63 of file docker.py.

docker.TestSystem.imagename

Definition at line 60 of file docker.py.

docker.TestSystem.ipaddr

Definition at line 64 of file docker.py.

dictionary docker.TestSystem.ManagedSystems = {}
static

Definition at line 48 of file docker.py.

string docker.TestSystem.nameformat = '%s.%05d-%05d'
static

Definition at line 40 of file docker.py.

int docker.TestSystem.nameindex = 0
static

Definition at line 39 of file docker.py.

int docker.TestSystem.NOTINIT = 0
static

Definition at line 45 of file docker.py.

docker.TestSystem.pid

Definition at line 62 of file docker.py.

Referenced by docker.DockerSystem.docker_nsenter(), and docker.DockerSystem.stop().

int docker.TestSystem.RUNNING = 1
static

Definition at line 46 of file docker.py.

int docker.TestSystem.STOPPED = 2
static

Definition at line 47 of file docker.py.

string docker.TestSystem.tmpbasedir = '/var/tmp/'
static

Definition at line 42 of file docker.py.

docker.TestSystem.tmpdir = None
static

Definition at line 44 of file docker.py.

docker.TestSystem.tmpfile

Definition at line 58 of file docker.py.

string docker.TestSystem.tmpprefix = ''
static

Definition at line 41 of file docker.py.

string docker.TestSystem.tmpsuffix = '.AssimTest'
static

Definition at line 43 of file docker.py.


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