def get_publisher(conf, url, namespace='ceilometer.publisher'):
 parse_result = netutils.urlsplit(url)
 loaded_driver = driver.DriverManager(namespace, parse_result.scheme)
 if issubclass(loaded_driver.driver, ConfigPublisherBase):
  return loaded_driver.driver(conf, parse_result)
 else:
  return loaded_driver.driver(parse_result)

def get_publisher ( conf , url , namespace = 'ceilometer.publisher' ) : parse_result = netutils . urlsplit ( url ) loaded_driver = driver . DriverManager ( namespace , parse_result . scheme ) if issubclass ( loaded_driver . driver , ConfigPublisherBase ) : return loaded_driver . driver ( conf , parse_result ) else : return loaded_driver . driver ( parse_result )
get publisher driver and load it .