Consumer that applies batches sequentially in second database.
Requirements:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
init_optparse(self,
parser=None)
Initialize a OptionParser() instance that will be used to parse
command line arguments. |
source code
|
|
|
|
is_batch_done(self,
dst_curs)
Helper function to keep track of last successful batch in external
database. |
source code
|
|
|
|
|
|
|
| process_remote_batch(self,
db,
batch_id,
event_list,
dst_db) |
source code
|
|
|
|
|
|
|
set_batch_done(self,
dst_curs)
Helper function to set last successful batch in external
database. |
source code
|
|
|
|
|
|
Inherited from Consumer:
get_batch_info,
process_event,
register_consumer,
stat_end,
stat_start,
unregister_consumer,
work
Inherited from skytools.scripting.DBScript:
close_database,
get_database,
hook_sighup,
hook_sigint,
reload,
reset,
run,
run_once,
send_signal,
send_stats,
set_single_loop,
start,
stat_add,
stat_increase,
stat_put,
stop
Inherited from object:
__delattr__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__repr__,
__setattr__,
__str__
|