示例#1
0
文件: virtual.py 项目: c0ns0le/LO-PHI
 def __init__(self, vm_name):
     """ Initialize our sensor """
     
     # Set our variables
     self.vm_name = vm_name
     self.name = vm_name+"-CPUSensor"
     
     CPUSensor.__init__(self)
示例#2
0
    def __init__(self, vm_name):
        """ Initialize our sensor """

        # Set our variables
        self.vm_name = vm_name
        self.name = vm_name + "-CPUSensor"

        CPUSensor.__init__(self)
示例#3
0
 def __init__(self, sensor_ip, sensor_port=G.SENSOR_CPU.DEFAULT_PORT, name=None):
     """ Initialize our sensor """
     
     # Set our variables
     self.sensor_ip = sensor_ip
     self.sensor_port = sensor_port
     
     if name is not None:
         self.name = name
         
     CPUSensor.__init__(self)