@InterfaceAudience.Private public class ReplicationProtbufUtil extends Object
| Constructor and Description |
|---|
ReplicationProtbufUtil() |
| Modifier and Type | Method and Description |
|---|---|
static Pair<AdminProtos.ReplicateWALEntryRequest,CellScanner> |
buildReplicateWALEntryRequest(HLog.Entry[] entries)
Create a new ReplicateWALEntryRequest from a list of HLog entries
|
static void |
replicateWALEntry(AdminProtos.AdminService.BlockingInterface admin,
HLog.Entry[] entries)
A helper to replicate a list of HLog entries using admin protocol.
|
public static void replicateWALEntry(AdminProtos.AdminService.BlockingInterface admin, HLog.Entry[] entries) throws IOException
admin - entries - IOExceptionpublic static Pair<AdminProtos.ReplicateWALEntryRequest,CellScanner> buildReplicateWALEntryRequest(HLog.Entry[] entries)
entries - the HLog entries to be replicatedCopyright © 2014 The Apache Software Foundation. All rights reserved.