public class ReplLoadWork extends Object implements Serializable, ReplLoadWorkMBean
| Modifier and Type | Field and Description |
|---|---|
static boolean |
disableMbeanUnregistrationForTests |
boolean |
isFirstFailover |
boolean |
isSecondFailover |
List<String> |
tablesToBootstrap |
List<String> |
tablesToDrop |
| Constructor and Description |
|---|
ReplLoadWork(HiveConf hiveConf,
String dumpDirectory,
String sourceDbName,
String dbNameToLoadIn,
org.apache.hadoop.hive.common.repl.ReplScope currentReplScope,
LineageState lineageState,
boolean isIncrementalDump,
Long eventTo,
Long dumpExecutionId,
ReplicationMetricCollector metricCollector,
boolean replScopeModified) |
| Modifier and Type | Method and Description |
|---|---|
List<Task<?>> |
externalTableCopyTasks(TaskTracker tracker,
HiveConf conf) |
String |
getCurrentEventId()
Gets the event id that just got processed.
|
String |
getDumpDirectory()
Gets the dump directory.
|
Long |
getDumpExecutionId() |
String |
getExecutionId()
Gets the execution id of the policy.
|
Iterator<String> |
getExternalTableDataCopyItr() |
Long |
getLastEventId()
Gets the last event id for the load.
|
ReplicationMetricCollector |
getMetricCollector() |
String |
getReplicationType()
Gets the Replication Type.
|
String |
getReplStats()
Gets the string representation of replication statistics
|
Task<?> |
getRootTask() |
String |
getScheduledQueryName()
Gets the name of scheduled query being run.
|
String |
getSourceDatabase()
Gets the name of the database which is being loaded.
|
String |
getSourceDbName() |
String |
getTargetDatabase()
Gets the name of the database on which load is happening.
|
boolean |
isLastReplIDUpdated() |
void |
setExternalTableDataCopyItr(Iterator<String> externalTableDataCopyItr) |
void |
setLastReplIDUpdated(boolean lastReplIDUpdated) |
static void |
setMbeansParamsForTesting(boolean enableRegistration,
boolean disableUnregistration)
Enable JMX tracking for testing.
|
void |
setRootTask(Task<?> rootTask) |
public static boolean disableMbeanUnregistrationForTests
public boolean isFirstFailover
public boolean isSecondFailover
public ReplLoadWork(HiveConf hiveConf, String dumpDirectory, String sourceDbName, String dbNameToLoadIn, org.apache.hadoop.hive.common.repl.ReplScope currentReplScope, LineageState lineageState, boolean isIncrementalDump, Long eventTo, Long dumpExecutionId, ReplicationMetricCollector metricCollector, boolean replScopeModified) throws IOException, SemanticException
IOExceptionSemanticExceptionpublic Task<?> getRootTask()
public String getDumpDirectory()
ReplLoadWorkMBeangetDumpDirectory in interface ReplLoadWorkMBeanpublic void setRootTask(Task<?> rootTask)
public boolean isLastReplIDUpdated()
public void setLastReplIDUpdated(boolean lastReplIDUpdated)
public String getSourceDbName()
public ReplicationMetricCollector getMetricCollector()
public Long getDumpExecutionId()
public List<Task<?>> externalTableCopyTasks(TaskTracker tracker, HiveConf conf) throws IOException
IOExceptionpublic void setExternalTableDataCopyItr(Iterator<String> externalTableDataCopyItr)
public String getSourceDatabase()
ReplLoadWorkMBeangetSourceDatabase in interface ReplLoadWorkMBeanpublic String getTargetDatabase()
ReplLoadWorkMBeangetTargetDatabase in interface ReplLoadWorkMBeanpublic String getReplicationType()
ReplLoadWorkMBeangetReplicationType in interface ReplLoadWorkMBeanpublic String getScheduledQueryName()
ReplLoadWorkMBeangetScheduledQueryName in interface ReplLoadWorkMBeanpublic String getExecutionId()
ReplLoadWorkMBeangetExecutionId in interface ReplLoadWorkMBeanpublic String getReplStats()
ReplLoadWorkMBeangetReplStats in interface ReplLoadWorkMBeanpublic String getCurrentEventId()
ReplLoadWorkMBeangetCurrentEventId in interface ReplLoadWorkMBeanpublic Long getLastEventId()
ReplLoadWorkMBeangetLastEventId in interface ReplLoadWorkMBeanpublic static void setMbeansParamsForTesting(boolean enableRegistration,
boolean disableUnregistration)
enableRegistration - enable registering MBeans.disableUnregistration - disable unregistering MBeans, so that value can be used by tests to validate.Copyright © 2022 The Apache Software Foundation. All rights reserved.