@InterfaceAudience.Private public class ReplicationProtbufUtil extends Object
Constructor and Description |
---|
ReplicationProtbufUtil() |
Modifier and Type | Method and Description |
---|---|
static Pair<AdminProtos.ReplicateWALEntryRequest,CellScanner> |
buildReplicateWALEntryRequest(WAL.Entry[] entries)
Create a new ReplicateWALEntryRequest from a list of WAL entries
|
static Pair<AdminProtos.ReplicateWALEntryRequest,CellScanner> |
buildReplicateWALEntryRequest(WAL.Entry[] entries,
byte[] encodedRegionName)
Create a new ReplicateWALEntryRequest from a list of HLog entries
|
static void |
replicateWALEntry(AdminProtos.AdminService.BlockingInterface admin,
WAL.Entry[] entries)
A helper to replicate a list of WAL entries using admin protocol.
|
public static void replicateWALEntry(AdminProtos.AdminService.BlockingInterface admin, WAL.Entry[] entries) throws IOException
admin
- entries
- IOException
public static Pair<AdminProtos.ReplicateWALEntryRequest,CellScanner> buildReplicateWALEntryRequest(WAL.Entry[] entries)
entries
- the WAL entries to be replicatedpublic static Pair<AdminProtos.ReplicateWALEntryRequest,CellScanner> buildReplicateWALEntryRequest(WAL.Entry[] entries, byte[] encodedRegionName)
entries
- the HLog entries to be replicatedencodedRegionName
- alternative region name to use if not nullCopyright © 2007-2016 The Apache Software Foundation. All Rights Reserved.