def __init__(self):
    super(SettingXdcr, self).__init__()
    self.parser.prog = 'couchbase-cli setting-xdcr'
    group = self.parser.add_argument_group('XDCR Settings')
    group.add_argument('--checkpoint-interval', dest='chk_int', type=int, metavar='<num>', help='Intervals between checkpoints in seconds (60 to 14400)')
    group.add_argument('--worker-batch-size', dest='worker_batch_size', metavar='<num>', type=int, help='Doc batch size (500 to 10000)')
    group.add_argument('--doc-batch-size', dest='doc_batch_size', type=int, metavar='<KB>', help='Document batching size in KB (10 to 100000)')
    group.add_argument('--failure-restart-interval', dest='fail_interval', metavar='<seconds>', type=int, help='Interval for restarting failed xdcr in seconds (1 to 300)')
    group.add_argument('--optimistic-replication-threshold', dest='rep_thresh', type=int, metavar='<bytes>', help=('Document body size threshold (bytes) to trigger optimistic ' + 'replication'))
    group.add_argument('--source-nozzle-per-node', dest='src_nozzles', metavar='<num>', type=int, help='The number of source nozzles per source node (1 to 10)')
    group.add_argument('--target-nozzle-per-node', dest='dst_nozzles', metavar='<num>', type=int, help='The number of outgoing nozzles per target node (1 to 10)')
    group.add_argument('--bandwidth-usage-limit', dest='usage_limit', type=int, metavar='<num>', help='The bandwidth usage limit in MiB/Sec')
    group.add_argument('--enable-compression', dest='compression', metavar='<1|0>', choices=['1', '0'], help='Enable/disable compression')
    group.add_argument('--log-level', dest='log_level', metavar='<level>', choices=['Error', 'Info', 'Debug', 'Trace'], help='The XDCR log level')
    group.add_argument('--stats-interval', dest='stats_interval', metavar='<ms>', help='The interval for statistics updates (in milliseconds)')
    group.add_argument('--max-processes', dest='max_proc', metavar='<num>', type=int, help='Number of processes to be allocated to XDCR. The default is 4.')
def __init__(self):
    super(SettingXdcr, self).__init__()
    self.parser.prog = 'couchbase-cli setting-xdcr'
    group = self.parser.add_argument_group('XDCR Settings')
    group.add_argument('--checkpoint-interval', dest='chk_int', type=int, metavar='<num>', help='Intervals between checkpoints in seconds (60 to 14400)')
    group.add_argument('--worker-batch-size', dest='worker_batch_size', metavar='<num>', type=int, help='Doc batch size (500 to 10000)')
    group.add_argument('--doc-batch-size', dest='doc_batch_size', type=int, metavar='<KB>', help='Document batching size in KB (10 to 100000)')
    group.add_argument('--failure-restart-interval', dest='fail_interval', metavar='<seconds>', type=int, help='Interval for restarting failed xdcr in seconds (1 to 300)')
    group.add_argument('--optimistic-replication-threshold', dest='rep_thresh', type=int, metavar='<bytes>', help=('Document body size threshold (bytes) to trigger optimistic ' + 'replication'))
    group.add_argument('--source-nozzle-per-node', dest='src_nozzles', metavar='<num>', type=int, help='The number of source nozzles per source node (1 to 10)')
    group.add_argument('--target-nozzle-per-node', dest='dst_nozzles', metavar='<num>', type=int, help='The number of outgoing nozzles per target node (1 to 10)')
    group.add_argument('--bandwidth-usage-limit', dest='usage_limit', type=int, metavar='<num>', help='The bandwidth usage limit in MiB/Sec')
    group.add_argument('--enable-compression', dest='compression', metavar='<1|0>', choices=['1', '0'], help='Enable/disable compression')
    group.add_argument('--log-level', dest='log_level', metavar='<level>', choices=['Error', 'Info', 'Debug', 'Trace'], help='The XDCR log level')
    group.add_argument('--stats-interval', dest='stats_interval', metavar='<ms>', help='The interval for statistics updates (in milliseconds)')
    group.add_argument('--max-processes', dest='max_proc', metavar='<num>', type=int, help='Number of processes to be allocated to XDCR. The default is 4.')