Did I find the right examples for you? yes no

All Samples(12)  |  Call(8)  |  Derive(0)  |  Import(4)

src/e/p/epumgmt-HEAD/src/python/epumgmt/main/em_core_persistence.py   epumgmt(Download)
from epumgmt.api import RunVM
from epumgmt.api.exceptions import *
from cloudminer import CloudMiner
from cloudyvents.cyvents import CYvent
 
    def validate(self):
        self.cdb = CloudMiner(self._find_db_conf())
 
    def new_vm(self, run_name, vm):
        """Adds VM to a run_vms list if it exists for "run_name".  If list

src/c/l/cloudminer-0.2/cloudminer/tests/test_simple_cm.py   cloudminer(Download)
import time
import cloudyvents.cyvents as cyvents
from cloudminer import CloudMiner
from cloudyvents.cyvents import CYvent
import tempfile
    def setUp(self):
        self.cdb = CloudMiner('sqlite:///:memory:')
        self.runname = "run1"
        self.iaasid = "iaasid1"
        self.nodeid = "nodeid1"
        self.cdb.commit()
 
        cdb2 = CloudMiner('sqlite:///:memory:')
        cdb2.add_cloudyvent(self.runname, self.iaasid, self.nodeid, self.hostname, self.service_type, self.parent, self.runlogdir, self.vmlogdir, cye)
        cdb2.commit()
        self.cdb.commit()
 
        cdb2 = CloudMiner('sqlite:///:memory:')
        cdb2.add_cloudyvent(self.runname, self.iaasid, self.nodeid, self.hostname, self.service_type, self.parent, self.runlogdir, self.vmlogdir, cye)
        cdb2.commit()

src/c/l/cloudminer-0.2/cloudminer/tests/test_iaasid_cm.py   cloudminer(Download)
import time
import cloudyvents.cyvents as cyvents
from cloudminer import CloudMiner
from cloudyvents.cyvents import CYvent
import tempfile
    def setUp(self):
        self.cdb = CloudMiner('sqlite:///:memory:')
        self.runname = "run1"
        self.iaasid = "iceicebaby"
        self.nodeid = "toocold"

src/c/l/cloudminer-0.2/cloudminer/tests/test_filedb_cm.py   cloudminer(Download)
import time
import cloudyvents.cyvents as cyvents
from cloudminer import CloudMiner
from cloudyvents.cyvents import CYvent
import tempfile
    def setUp(self):
        (osf, self.filename) = tempfile.mkstemp()
        os.close(osf)
        print self.filename
        self.cdb = CloudMiner('sqlite:///' + self.filename)
 
        cye = CYvent('src1', 'name1', 'key2', datetime.datetime.now(), extras)
        cdb2 = CloudMiner('sqlite:///' + self.filename)
        cdb2.add_cloudyvent(self.runname, self.iaasid, self.nodeid, self.hostname, self.service_type, self.parent, self.runlogdir, self.vmlogdir, cye)
        cdb2.commit()
        self.cdb.add_cloudyvent(self.runname, self.iaasid, self.nodeid, self.hostname, self.service_type, self.parent, self.runlogdir, self.vmlogdir, cye)
 
        cdb2 = CloudMiner('sqlite:///' + self.filename)
 
        rc = cdb2.get_events_by_runname(self.runname)