wso2is/5.0.0/plugins/wso2is-500-startup-handler.py
def export_host_names(self, topology, app_id):
        """
        Set hostnames of services read from topology for worker manager instances
        exports MgtHostName and HostName

        :return: void
        """
        mgt_host_name = None
        host_name = None
        for service_name in self.SERVICES:
            if service_name.endswith(self.CONST_MANAGER):
                mgr_cluster = self.get_cluster_of_service(topology, service_name, app_id)
                if mgr_cluster is not None:
                    mgt_host_name = mgr_cluster.hostnames[0]
            elif service_name.endswith(self.CONST_WORKER):
                worker_cluster = self.get_cluster_of_service(topology, service_name, app_id)
                if worker_cluster is not None:
                    host_name = worker_cluster.hostnames[0]

        self.export_env_var(self.ENV_CONFIG_PARAM_MGT_HOST_NAME, mgt_host_name)
        self.export_env_var(self.ENV_CONFIG_PARAM_HOST_NAME, host_name)

        Set hostnames of services read from topology for worker manager instances
        exports MgtHostName and HostName

        :return: void
        
Set hostnames of services read from topology for worker manager instances
exports MgtHostName and HostName
Set hostnames of services read from topology for worker manager instances exports MgtHostName and HostName
def export_host_names(self, topology, app_id):
        mgt_host_name = None
        host_name = None
        for service_name in self.SERVICES:
            if service_name.endswith(self.CONST_MANAGER):
                mgr_cluster = self.get_cluster_of_service(topology, service_name, app_id)
                if mgr_cluster is not None:
                    mgt_host_name = mgr_cluster.hostnames[0]
            elif service_name.endswith(self.CONST_WORKER):
                worker_cluster = self.get_cluster_of_service(topology, service_name, app_id)
                if worker_cluster is not None:
                    host_name = worker_cluster.hostnames[0]
        self.export_env_var(self.ENV_CONFIG_PARAM_MGT_HOST_NAME, mgt_host_name)
        self.export_env_var(self.ENV_CONFIG_PARAM_HOST_NAME, host_name)
def export_host_names ( self , topology , app_id ) : mgt_host_name = None host_name = None for service_name in self . SERVICES : if service_name . endswith ( self . CONST_MANAGER ) : mgr_cluster = self . get_cluster_of_service ( topology , service_name , app_id ) if mgr_cluster is not None : mgt_host_name = mgr_cluster . hostnames [ 0 ] elif service_name . endswith ( self . CONST_WORKER ) : worker_cluster = self . get_cluster_of_service ( topology , service_name , app_id ) if worker_cluster is not None : host_name = worker_cluster . hostnames [ 0 ] self . export_env_var ( self . ENV_CONFIG_PARAM_MGT_HOST_NAME , mgt_host_name ) self . export_env_var ( self . ENV_CONFIG_PARAM_HOST_NAME , host_name )
Set hostnames of services read from topology for worker manager instances
exports MgtHostName and HostName
Set hostnames of services read from topology for worker manager instances exports MgtHostName and HostName
"""
        Set hostnames of services read from topology for worker manager instances
        exports MgtHostName and HostName

        :return: void
        """
None
self
topology
app_id