def _replication_request(command, host=None, core_name=None, params=None):
 params = ([] if (params is None) else params)
 extra = (['command={0}'.format(command)] + params)
 url = _format_url('replication', host=host, core_name=core_name, extra=extra)
 return _http_request(url)

def _replication_request ( command , host = None , core_name = None , params = None ) : params = ( [ ] if ( params is None ) else params ) extra = ( [ 'command={0}' . format ( command ) ] + params ) url = _format_url ( 'replication' , host = host , core_name = core_name , extra = extra ) return _http_request ( url )
private method performs the requested replication command and returns a dictionary with success .