Class RR::ReplicationRunner
In: lib/rubyrep/replication_runner.rb
Parent: Object

This class implements the functionality of the ‘replicate’ command.

Methods

Attributes

options  [RW]  Provided options. Possible values:
  • +:config_file+: path to config file
termination_requested  [RW]  Should be set to true if the replication runner should be terminated.

Public Class methods

Entry points for executing a processing run. args: the array of command line options that were provided by the user.

Public Instance methods

Removes current Session.

Executes an endless loop of replication runs

Executes a single replication run

Initializes the waiter thread used for replication pauses and processing the process TERM signal.

Wait for the next replication time

Prepares the replication

Parses the given command line parameter array. Returns the status (as per UNIX conventions: 1 if parameters were invalid, 0 otherwise)

Returns the active Session. Loads config file and creates session if necessary.

[Validate]