def __init__(self, element, doc=None):
     super(RedHatClusterNode, self).__init__(element, doc)
     from helper import getClusterHelper, HelperNotSupportedError
     try:
         self.helper=getClusterHelper()
     except HelperNotSupportedError:
         self.helper=None
     self.addNonStatic("state")
     self.addNonStatic("local")
     self.addNonStatic("estranged")
     self.addNonStatic("rgmanager")
     self.addNonStatic("rgmanager_master")
     self.addNonStatic("qdisk")
    def __init__(self, clusterRepository):
        """
        Set used clusterRepository
        @param clusterRepository: clusterRepository to use
        @type clusterRepository: L{RedhatClusterRepository}
        """
        from comoonics.cluster.ComClusterRepository import RedHatClusterRepository
        from helper import getClusterHelper, HelperNotSupportedError
        super(RedHatClusterInfo, self).__init__(clusterRepository)
        try:
            self.helper=getClusterHelper()
        except HelperNotSupportedError:
            self.helper=None
        self.addNonStatic("name", xpathjoin(RedHatClusterRepository.getDefaultClustatXPath(), RedHatClusterRepository.element_clustat_cluster, "@"+RedHatClusterRepository.attribute_clustat_cluster_name))
#        self.addNonStatic(RedhatClusterInfo, "id")
        self.addNonStatic("generation",         xpathjoin(RedHatClusterRepository.getDefaultClustatXPath(), RedHatClusterRepository.element_clustat_cluster, "@"+RedHatClusterRepository.attribute_clustat_cluster_generation))
        self.addNonStatic("quorum_quorate",     xpathjoin(RedHatClusterRepository.getDefaultClustatXPath(), RedHatClusterRepository.element_quorum, "@"+RedHatClusterRepository.attribute_quorum_quorate))
        self.addNonStatic("quorum_groupmember", xpathjoin(RedHatClusterRepository.getDefaultClustatXPath(), RedHatClusterRepository.element_quorum, "@"+RedHatClusterRepository.attribute_quorum_groupmember))