OhmData/c5 — pull request #282 by joshua-g (2014-09-11 20:31:37+00:00)
Title: Log readers for non-C5DB replicator clients

The commits in this PR work towards creating a general-purpose reader of our replicator log.

Although OLogReader already existed, it exposed implementation details such as the control entries in the log, as well as the type of log entry itself (e.g. OLogEntry). This genericizes OLogReader, and it introduces a new simplified kind of "entry" for the replicator client to use -- ReplicatorEntry. ReplicatorEntry only knows about sequence number and data -- nothing else such as "terms" or "quorums". The commits in this PR then implement decoding the log into instances of ReplicatorEntry.

The motivation is to support an interface abstract enough that if our replicator implementation is used for some arbitrary non-C5DB use, such as replicating HBase WALs, the user will not be tied to implementation details.