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

Public Member Functions

def __init__ (self, imagename, cmdargs=None, dockerargs=None, cleanupwhendone=False)
 
def __del__ (self)
 
def start (self)
 
def stop (self)
 
def destroy (self)
 
def runinimage (self, cmdargs, detached=True)
 
def docker_nsenter (self, cmdargs, detached=True)
 
def docker_exec (self, cmdargs, detached=True)
 
def startservice (self, servicename, async=False)
 
def stopservice (self, servicename, async=False)
 
def startneo4j (self)
 
def stopneo4j (self)
 
- Public Member Functions inherited from docker.TestSystem
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 run (dockerargs)
 
- Static Public Member Functions inherited from docker.TestSystem
def find (name)
 
def delete (name)
 
def cleanupall ()
 

Data Fields

 dockerargs
 
 runningservices
 
 hostname
 
 ipaddr
 
 pid
 
 debug
 
 cleanupwhendone
 
 status
 
- Data Fields inherited from docker.TestSystem
 name
 
 tmpfile
 
 cmdargs
 
 imagename
 
 status
 
 pid
 
 hostname
 
 ipaddr
 

Static Public Attributes

string dockercmd = '/usr/bin/docker'
 
string servicecmd = '/usr/bin/service'
 
string nsentercmd = '/usr/bin/nsenter'
 
- Static Public Attributes inherited from docker.TestSystem
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 111 of file docker.py.

Constructor & Destructor Documentation

def docker.DockerSystem.__init__ (   self,
  imagename,
  cmdargs = None,
  dockerargs = None,
  cleanupwhendone = False 
)

Definition at line 117 of file docker.py.

def docker.DockerSystem.__del__ (   self)

Definition at line 130 of file docker.py.

Member Function Documentation

def docker.DockerSystem.docker_exec (   self,
  cmdargs,
  detached = True 
)
def docker.DockerSystem.docker_nsenter (   self,
  cmdargs,
  detached = True 
)

Definition at line 222 of file docker.py.

References docker.TestSystem.pid.

def docker.DockerSystem.run (   dockerargs)
static

Definition at line 135 of file docker.py.

def docker.DockerSystem.runinimage (   self,
  cmdargs,
  detached = True 
)
def docker.DockerSystem.start (   self)

Definition at line 144 of file docker.py.

def docker.DockerSystem.startneo4j (   self)

Definition at line 276 of file docker.py.

References docker.DockerSystem.runinimage().

Referenced by docker.DockerSystem.startservice().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 281 of file docker.py.

References docker.DockerSystem.runinimage().

Referenced by docker.DockerSystem.stopservice().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Field Documentation

docker.DockerSystem.cleanupwhendone

Definition at line 127 of file docker.py.

Referenced by docker.SystemTestEnvironment.__del__().

docker.DockerSystem.dockerargs

Definition at line 121 of file docker.py.

string docker.DockerSystem.dockercmd = '/usr/bin/docker'
static

Definition at line 113 of file docker.py.

docker.DockerSystem.hostname

Definition at line 123 of file docker.py.

docker.DockerSystem.ipaddr

Definition at line 124 of file docker.py.

string docker.DockerSystem.nsentercmd = '/usr/bin/nsenter'
static

Definition at line 115 of file docker.py.

docker.DockerSystem.pid

Definition at line 125 of file docker.py.

docker.DockerSystem.runningservices
string docker.DockerSystem.servicecmd = '/usr/bin/service'
static

Definition at line 114 of file docker.py.

docker.DockerSystem.status

Definition at line 146 of file docker.py.


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