@InterfaceAudience.Private public class ReplicationProtbufUtil extends Object
| Constructor and Description | 
|---|
| ReplicationProtbufUtil() | 
| Modifier and Type | Method and Description | 
|---|---|
| static Pair<org.apache.hadoop.hbase.protobuf.generated.AdminProtos.ReplicateWALEntryRequest,CellScanner> | buildReplicateWALEntryRequest(WAL.Entry[] entries)Create a new ReplicateWALEntryRequest from a list of WAL entries | 
| static Pair<org.apache.hadoop.hbase.protobuf.generated.AdminProtos.ReplicateWALEntryRequest,CellScanner> | buildReplicateWALEntryRequest(WAL.Entry[] entries,
                             byte[] encodedRegionName,
                             String replicationClusterId,
                             org.apache.hadoop.fs.Path sourceBaseNamespaceDir,
                             org.apache.hadoop.fs.Path sourceHFileArchiveDir)Create a new ReplicateWALEntryRequest from a list of HLog entries | 
| static void | replicateWALEntry(org.apache.hadoop.hbase.protobuf.generated.AdminProtos.AdminService.BlockingInterface admin,
                 WAL.Entry[] entries,
                 String replicationClusterId,
                 org.apache.hadoop.fs.Path sourceBaseNamespaceDir,
                 org.apache.hadoop.fs.Path sourceHFileArchiveDir)A helper to replicate a list of WAL entries using admin protocol. | 
public static void replicateWALEntry(org.apache.hadoop.hbase.protobuf.generated.AdminProtos.AdminService.BlockingInterface admin,
                     WAL.Entry[] entries,
                     String replicationClusterId,
                     org.apache.hadoop.fs.Path sourceBaseNamespaceDir,
                     org.apache.hadoop.fs.Path sourceHFileArchiveDir)
                              throws IOException
admin - Admin serviceentries - Array of WAL entries to be replicatedreplicationClusterId - Id which will uniquely identify source cluster FS client
          configurations in the replication configuration directorysourceBaseNamespaceDir - Path to source cluster base namespace directorysourceHFileArchiveDir - Path to the source cluster hfile archive directoryIOExceptionpublic static Pair<org.apache.hadoop.hbase.protobuf.generated.AdminProtos.ReplicateWALEntryRequest,CellScanner> buildReplicateWALEntryRequest(WAL.Entry[] entries)
entries - the WAL entries to be replicatedpublic static Pair<org.apache.hadoop.hbase.protobuf.generated.AdminProtos.ReplicateWALEntryRequest,CellScanner> buildReplicateWALEntryRequest(WAL.Entry[] entries, byte[] encodedRegionName, String replicationClusterId, org.apache.hadoop.fs.Path sourceBaseNamespaceDir, org.apache.hadoop.fs.Path sourceHFileArchiveDir)
entries - the HLog entries to be replicatedencodedRegionName - alternative region name to use if not nullreplicationClusterId - Id which will uniquely identify source cluster FS client
          configurations in the replication configuration directorysourceBaseNamespaceDir - Path to source cluster base namespace directorysourceHFileArchiveDir - Path to the source cluster hfile archive directoryCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.