wso2das/3.0.0/plugins/wso2das-startup-handler.py
def export_spark_master_count(self, cluster_of_service):
        """
        Set spark master count of services read from topology for server instances

        :return: void
        """
        properties = None
        if cluster_of_service is not None:
            cluster_id_of_service = cluster_of_service.cluster_id
            members = cluster_of_service.get_members()
            if members is not None:
                for member in members:
                    properties = member.properties
            if properties is not None:
                self.export_env_var(self.ENV_CONFIG_PARAM_CARBON_SPARK_MASTER_COUNT, properties["MIN_COUNT"])

        Set spark master count of services read from topology for server instances

        :return: void
        
Set spark master count of services read from topology for server instances
Set spark master count of services read from topology for server instances
def export_spark_master_count(self, cluster_of_service):
        properties = None
        if cluster_of_service is not None:
            cluster_id_of_service = cluster_of_service.cluster_id
            members = cluster_of_service.get_members()
            if members is not None:
                for member in members:
                    properties = member.properties
            if properties is not None:
                self.export_env_var(self.ENV_CONFIG_PARAM_CARBON_SPARK_MASTER_COUNT, properties["MIN_COUNT"])
def export_spark_master_count ( self , cluster_of_service ) : properties = None if cluster_of_service is not None : cluster_id_of_service = cluster_of_service . cluster_id members = cluster_of_service . get_members ( ) if members is not None : for member in members : properties = member . properties if properties is not None : self . export_env_var ( self . ENV_CONFIG_PARAM_CARBON_SPARK_MASTER_COUNT , properties [ "MIN_COUNT" ] )
Set spark master count of services read from topology for server instances
Set spark master count of services read from topology for server instances
"""
        Set spark master count of services read from topology for server instances

        :return: void
        """
None
self
cluster_of_service