コード例 #1
0
ファイル: host.py プロジェクト: mleist/ict-ok.org
 def __init__(self, **data):
     """
     constructor of the object
     """
     LogicalDevice.__init__(self, **data)
     refAttributeNames = getRefAttributeNames(Host)
     # initialize OS List
     self.osList = []
     self.eventInpObjs_shutdown = set([])
     for (name, value) in data.items():
         if name in IHost.names() or \
            name in IEventIfEventHost.names():
             if name not in refAttributeNames:
                 setattr(self, name, value)
     self.ikRevision = __version__
     self.workflows[WfPdNagios.id] = nagios_wf = WfPdNagios()
     setattr(nagios_wf.workflowRelevantData, "ddd", 5)
     setattr(nagios_wf.workflowRelevantData, "state", "-")
     setattr(nagios_wf.workflowRelevantData, "object", self)
     setattr(nagios_wf.workflowRelevantData, "new_state", "2_start")
     nagios_wf.start()
     #health
     self._counter = {'r': 500}
     self._health = 1.0
     self._weight = {'r': 1.0}
     self._weight_user = 0.5
コード例 #2
0
ファイル: appsoftware.py プロジェクト: mleist/ict-ok.org
 def __init__(self, **data):
     """
     constructor of the object
     """
     SoftwareComponent.__init__(self, **data)
     refAttributeNames = getRefAttributeNames(ApplicationSoftware)
     for (name, value) in data.items():
         if name in IApplicationSoftware.names() and \
            name not in refAttributeNames:
             setattr(self, name, value)
     self.ikRevision = __version__
コード例 #3
0
 def __init__(self, **data):
     """
     constructor of the object
     """
     Credential.__init__(self, **data)
     refAttributeNames = getRefAttributeNames(X509Certificate)
     for (name, value) in data.items():
         if name in IX509Certificate.names():
             if name not in refAttributeNames:
                 setattr(self, name, value)
     self.ikRevision = __version__
コード例 #4
0
ファイル: person.py プロジェクト: mleist/ict-ok.org
 def __init__(self, **data):
     """
     constructor of the object
     """
     ContactItem.__init__(self, **data)
     refAttributeNames = getRefAttributeNames(Person)
     for (name, value) in data.items():
         if name in IPerson.names() and \
            name not in refAttributeNames:
             setattr(self, name, value)
     self.ikRevision = __version__
コード例 #5
0
 def __init__(self, **data):
     """
     constructor of the object
     """
     Component.__init__(self, **data)
     refAttributeNames = getRefAttributeNames(LogicalComponent)
     for (name, value) in data.items():
         if name in ILogicalComponent.names():
             if name not in refAttributeNames:
                 setattr(self, name, value)
     self.ikRevision = __version__
コード例 #6
0
 def __init__(self, **data):
     """
     constructor of the object
     """
     Device.__init__(self, **data)
     refAttributeNames = getRefAttributeNames(HardwareAppliance)
     for (name, value) in data.items():
         if name in IHardwareAppliance.names() and \
            name not in refAttributeNames:
             setattr(self, name, value)
     self.ikRevision = __version__
コード例 #7
0
ファイル: ipc.py プロジェクト: mleist/ict-ok.org
 def __init__(self, **data):
     """
     constructor of the object
     """
     Device.__init__(self, **data)
     refAttributeNames = getRefAttributeNames(IndustrialComputer)
     for (name, value) in data.items():
         if name in IIndustrialComputer.names() and \
            name not in refAttributeNames:
             setattr(self, name, value)
     self.ikRevision = __version__
コード例 #8
0
ファイル: component.py プロジェクト: mleist/ict-ok.org
 def __init__(self, **data):
     """
     constructor of the object
     """
     Supernode.__init__(self, **data)
     self.requirements = []
     refAttributeNames = getRefAttributeNames(Component)
     for (name, value) in data.items():
         if name in IComponent.names() and \
            name not in refAttributeNames:
             setattr(self, name, value)
     self.ikRevision = __version__
コード例 #9
0
ファイル: net.py プロジェクト: mleist/ict-ok.org
 def __init__(self, **data):
     """
     constructor of the object
     """
     Component.__init__(self, **data)
     refAttributeNames = getRefAttributeNames(Net)
     for (name, value) in data.items():
         if name in INet.names():
             if name not in refAttributeNames:
                 setattr(self, name, value)
     self.eventInpObjs_inward_relaying_shutdown = set([])
     self.ikRevision = __version__
コード例 #10
0
ファイル: switch.py プロジェクト: mleist/ict-ok.org
 def __init__(self, **data):
     """
     constructor of the object
     """
     Device.__init__(self, **data)
     refAttributeNames = getRefAttributeNames(Switch)
     print "dddd: ", refAttributeNames
     for (name, value) in data.items():
         if name in ISwitch.names() and \
            name not in refAttributeNames:
             setattr(self, name, value)
     self.ikRevision = __version__
コード例 #11
0
 def __init__(self, **data):
     """
     constructor of the object
     """
     PhysicalComponent.__init__(self, **data)
     #ipv4List = []
     refAttributeNames = getRefAttributeNames(Interface)
     for (name, value) in data.items():
         if name in IInterface.names():
             if name not in refAttributeNames:
                 setattr(self, name, value)
     self.ikRevision = __version__
コード例 #12
0
ファイル: service.py プロジェクト: mleist/ict-ok.org
 def __init__(self, **data):
     """
     constructor of the object
     """
     Component.__init__(self, **data)
     refAttributeNames = getRefAttributeNames(Service)
     self.product = u""
     self.ipprotocol = None
     for (name, value) in data.items():
         if name in IService.names():
             if name not in refAttributeNames:
                 setattr(self, name, value)
     self.ikRevision = __version__
コード例 #13
0
ファイル: snmpvalue.py プロジェクト: mleist/ict-ok.org
 def __init__(self, **data):
     """
     constructor of the object
     """
     Component.__init__(self, **data)
     refAttributeNames = getRefAttributeNames(SnmpValue)
     for (name, value) in data.items():
         if name in ISnmpValue.names():
             if name not in refAttributeNames:
                 setattr(self, name, value)
     self.ikRevision = __version__
     self.snmpIndexDict = None
     self.snmpIndexDictTimeStamp = 0.0
コード例 #14
0
 def __init__(self, **data):
     """
     constructor of the object
     """
     Component.__init__(self, **data)
     refAttributeNames = getRefAttributeNames(InternalAttachment)
     filedata = data.pop('data')
     for (name, value) in data.items():
         if name in IInternalAttachment.names() and \
            name not in refAttributeNames:
             setattr(self, name, value)
     file = File(filedata, data['contentType'])
     setattr(self, 'file', file)
     self.ikRevision = __version__
コード例 #15
0
 def getRefAttributeNames(self):
     return getRefAttributeNames(LogicalComponent)
コード例 #16
0
ファイル: service.py プロジェクト: mleist/ict-ok.org
 def getRefAttributeNames(self):
     return getRefAttributeNames(Service)
コード例 #17
0
 def getRefAttributeNames(self):
     return getRefAttributeNames(HardwareAppliance)
コード例 #18
0
ファイル: person.py プロジェクト: mleist/ict-ok.org
 def getRefAttributeNames(self):
     return getRefAttributeNames(Person)
コード例 #19
0
ファイル: product.py プロジェクト: mleist/ict-ok.org
 def getRefAttributeNames(self):
     return getRefAttributeNames(Product)
コード例 #20
0
ファイル: net.py プロジェクト: mleist/ict-ok.org
 def getRefAttributeNames(self):
     return getRefAttributeNames(Net)
コード例 #21
0
ファイル: logical_device.py プロジェクト: mleist/ict-ok.org
 def getRefAttributeNames(self):
     return getRefAttributeNames(LogicalDevice)
コード例 #22
0
 def getRefAttributeNames(self):
     return getRefAttributeNames(X509Certificate)
コード例 #23
0
 def getRefAttributeNames(self):
     return getRefAttributeNames(SoftwareComponent)
コード例 #24
0
ファイル: ip_address.py プロジェクト: mleist/ict-ok.org
 def getRefAttributeNames(self):
     return getRefAttributeNames(IpAddress)
コード例 #25
0
 def getRefAttributeNames(self):
     return getRefAttributeNames(Building)
コード例 #26
0
ファイル: appsoftware.py プロジェクト: mleist/ict-ok.org
 def getRefAttributeNames(self):
     return getRefAttributeNames(ApplicationSoftware)
コード例 #27
0
 def getRefAttributeNames(self):
     return getRefAttributeNames(Organization)
コード例 #28
0
 def getRefAttributeNames(self):
     return getRefAttributeNames(Interface)
コード例 #29
0
ファイル: display_unit.py プロジェクト: mleist/ict-ok.org
 def getRefAttributeNames(self):
     return getRefAttributeNames(DisplayUnit)
コード例 #30
0
 def getRefAttributeNames(self):
     return getRefAttributeNames(PhysicalLink)