def __init__(self, ipaddr, sshport=22, name=""): """ is host running the hypervisor """ NodeBase.__init__(self, ipaddr=ipaddr, sshport=sshport, role="host", name=name) self.startMonitor()
def __init__(self,ipaddr,sshport=22,name=""): """ is host running the hypervisor """ NodeBase.__init__(self,ipaddr=ipaddr,sshport=sshport,role="host",name=name) self.startMonitor()
def __init__(self, ipaddr, sshport=22, nrdisks=0, fstype="xfs", debugdisk="", name=""): NodeBase.__init__(self, ipaddr=ipaddr, sshport=sshport, role="nas", name=name) self.debugdisk = debugdisk if self.debugdisk != "": self.debug = True self.disks = [] self.nrdisks = int(nrdisks) self.fstype = fstype # self.initDisks() self.perftester = PerfTestTools(self) disks = [item.devnameshort for item in self.disks] self.startMonitor(disks=disks) self.initTest()
def __init__(self, ipaddr, sshport, name=""): NodeBase.__init__(self, ipaddr=ipaddr, sshport=sshport, role="monitor", name=name) if self.name == "": self.name = "monitor"
def __init__(self, x, y, ss): # pass parameters to parent NodeBase.__init__(self, x, y, ss) # hopsize (estimated) self.hopsize = 0 # reference of the last correction self.last_corr = None # table for landmark information self.table = dict() # estimated position of node self.u = None
def __init__(self, rn: str, api: str, originator: str = None, nodeRN: str = None, nodeID: str = None, nodeOriginator: str = None) -> None: super().__init__(rn, originator) self.rn = rn self.originator = originator self.ae = None self.aeNodeBase = None self.appData: dict = None # Get or create the hosting node if nodeRN is not None and nodeID is not None: self.aeNode = NodeBase(nodeRN, nodeID, nodeOriginator) # Try to get the application data and the origionator self.originator = self.getAppData('_originator', originator) # Get or create the AE resource self.ae = self.retrieveCreate( srn=self.srn, jsn={ C.tsAE: { 'rn': self.rn, 'api': api, 'nl': self.aeNode.node.ri if self.aeNode.node is not None else None, 'poa': [Configuration.get('http.address')], 'rr': True, 'srv': ["3", "4"] } }, ty=C.tAE) # assign as originator the assigned aei attribute self.originator = Utils.findXPath( self.ae, "aei") if self.ae is not None else None # Store updated application data self.setAppData('_originator', self.originator) # assign as acpi to use the first assigned acpi self.acpi = Utils.findXPath(self.ae, "acpi")[0] if self.ae is not None else None
def __init__(self, rn: str, api: str, originator: str = None, nodeRN: str = None, nodeID: str = None, nodeOriginator: str = None) -> None: super().__init__(rn, originator) self.rn = rn self.originator = originator self.ae = None self.aeNodeBase = None self.appData:JSON = None # Get or create the hosting node if nodeRN is not None and nodeID is not None: self.aeNode = NodeBase(nodeRN, nodeID, nodeOriginator) # Try to get the application data and the origionator self.originator = self.getAppData('_originator', originator) # Get or create the AE resource self.ae = self.retrieveCreate( srn=self.srn, data={ T.AE.tpe() : { 'rn' : self.rn, 'api' : api, 'nl' : self.aeNode.node.ri if self.aeNode.node is not None else None, 'poa' : [ CSE.httpServer.serverAddress ], 'rr' : True, 'srv' : [ "3", "4" ], 'at' : [ '/id-in'] } }, ty=T.AE) # assign as originator the assigned aei attribute self.originator = self.ae.aei if self.ae is not None else None # Store updated application data self.setAppData('_originator', self.originator)
def __init__(self): NodeBase.__init__(self) self.__current_node = None
def __init__(self): NodeBase.__init__(self) self.__selected_node = None self.__random_param = []
def __init__(self, ipaddr, sshport, name=""): NodeBase.__init__(self, ipaddr=ipaddr, sshport=sshport, role="monitor", name=name) if self.name == "": self.name = "monitor" self.startInfluxPump()