# Path: monasca_notification/conf/types.py
# LOG = log.getLogger(__name__)
# class Plugin(types.String):
# class PluginOpt(cfg.Opt):
# class HostAddressPortType(types.HostAddress):
#     def __init__(self, ignore_missing=False, choices=None, plugin_map=None):
#     def __call__(self, value):
#     def _get_actual_target(self, value):
#     def __init__(self, name, choices=None, plugin_map=None, **kwargs):
#     def __init__(self, version=None):
#     def __call__(self, value):
#     def _validate_port(port=80):
#     def _validate_addr(self, addr):


from oslo_config import cfg
from monasca_notification.conf import types
}

zookeeper_group = cfg.OptGroup('zookeeper',
                               title='Zookeeper Options',
                               help='Options under this group allow to '
                                    'configure settings for zookeeper '
                                    'handling.')

zookeeper_opts = [
    cfg.ListOpt(name='url', item_type=types.HostAddressPortType(),
                default=_DEFAULT_URL, required=True,
                help='List of addresses (with ports) pointing '
                     'at zookeeper cluster.'),
    cfg.StrOpt(name='notification_path', default=_DEFAULT_NOTIFICATION_PATH,
               required=True, advanced=True,
               help='Path in zookeeper tree to track notification offsets.'),
    cfg.StrOpt(name='notification_retry_path', default=_DEFAULT_RETRY_PATH,
               required=True, advanced=True,
               help='Path in zookeeper tree to track notification '
                    'retries offsets.'),
    cfg.DictOpt(name='periodic_path', default=_DEFAULT_PERIODIC_PATH,
                required=True, advanced=True,
                help='Paths in zookeeper tree to track periodic offsets. '
                     'Keys must be integers describing the interval '
                     'of periodic notification. Values are actual '
                     'paths inside zookeeper tree.')
]


def register_opts(conf):

# Path: monasca_notification/conf/types.py
# LOG = log.getLogger(__name__)
# class Plugin(types.String):
# class PluginOpt(cfg.Opt):
# class HostAddressPortType(types.HostAddress):
#     def __init__(self, ignore_missing=False, choices=None, plugin_map=None):
#     def __call__(self, value):
#     def _get_actual_target(self, value):
#     def __init__(self, name, choices=None, plugin_map=None, **kwargs):
#     def __init__(self, version=None):
#     def __call__(self, value):
#     def _validate_port(port=80):
#     def _validate_addr(self, addr):


# Path: monasca_notification/conf/zookeeper.py
from oslo_config import cfg
from monasca_notification.conf import types

}

zookeeper_group = cfg.OptGroup('zookeeper',
                               title='Zookeeper Options',
                               help='Options under this group allow to '
                                    'configure settings for zookeeper '
                                    'handling.')

zookeeper_opts = [
    cfg.ListOpt(name='url', item_type=types.HostAddressPortType(),
                default=_DEFAULT_URL, required=True,
                help='List of addresses (with ports) pointing '
                     'at zookeeper cluster.'),
    cfg.StrOpt(name='notification_path', default=_DEFAULT_NOTIFICATION_PATH,
               required=True, advanced=True,
               help='Path in zookeeper tree to track notification offsets.'),
    cfg.StrOpt(name='notification_retry_path', default=_DEFAULT_RETRY_PATH,
               required=True, advanced=True,
               help='Path in zookeeper tree to track notification '
                    'retries offsets.'),
    cfg.DictOpt(name='periodic_path', default=_DEFAULT_PERIODIC_PATH,
                required=True, advanced=True,
                help='Paths in zookeeper tree to track periodic offsets. '
                     'Keys must be integers describing the interval '
                     'of periodic notification. Values are actual '
                     'paths inside zookeeper tree.')
]


def register_opts(conf):

    conf.register_group(zookeeper_group)