Source:
public MergedStreamService(ConduitConfig config, Cluster srcCluster, Cluster destinationCluster, Cluster currentCluster, CheckpointProvider provider, Set<String> streamsToProcess, HCatClientUtil hcatUtil) throws Exception { super(config, "MergedStreamService_" + getServiceName(streamsToProcess), srcCluster, destinationCluster, currentCluster, provider, streamsToProcess, hcatUtil); for (String eachStream : streamsToProcess) { ConduitMetrics.registerSlidingWindowGauge(getServiceType(), AbstractService.RETRY_CHECKPOINT, eachStream); ConduitMetrics.registerSlidingWindowGauge(getServiceType(), AbstractService.RETRY_MKDIR, eachStream); ConduitMetrics.registerSlidingWindowGauge(getServiceType(), AbstractService.RETRY_RENAME, eachStream); ConduitMetrics.registerSlidingWindowGauge(getServiceType(), AbstractService.EMPTYDIR_CREATE, eachStream); ConduitMetrics.registerSlidingWindowGauge(getServiceType(), AbstractService.FILES_COPIED_COUNT, eachStream); ConduitMetrics.registerSlidingWindowGauge(getServiceType(), RUNTIME, eachStream); ConduitMetrics.registerSlidingWindowGauge(getServiceType(), FAILURES, eachStream); ConduitMetrics.registerSlidingWindowGauge(getServiceType(), COMMIT_TIME, eachStream); ConduitMetrics.registerAbsoluteGauge(getServiceType(), LAST_FILE_PROCESSED, eachStream); ConduitMetrics.registerSlidingWindowGauge(getServiceType(), ADD_PARTITIONS_FAILURES, eachStream); ConduitMetrics.registerSlidingWindowGauge(getServiceType(), CONNECTION_FAILURES, eachStream); } streamHcatEnableMap = new HashMap<String, Boolean>(); lastAddedPartitionMap = new HashMap<String, Long>(); }

Target:
public MergedStreamService(ConduitConfig config, Cluster srcCluster, Cluster destinationCluster, Cluster currentCluster, CheckpointProvider provider, Set<String> streamsToProcess, HCatClientUtil hcatUtil) throws Exception { super(config, "MergedStreamService_" + getServiceName(streamsToProcess), srcCluster, destinationCluster, currentCluster, provider, streamsToProcess, hcatUtil); for (String eachStream : streamsToProcess) { ConduitMetrics.registerSlidingWindowGauge(getServiceType(), AbstractService.RETRY_CHECKPOINT, eachStream); ConduitMetrics.registerSlidingWindowGauge(getServiceType(), AbstractService.RETRY_MKDIR, eachStream); ConduitMetrics.registerSlidingWindowGauge(getServiceType(), AbstractService.RETRY_RENAME, eachStream); ConduitMetrics.registerSlidingWindowGauge(getServiceType(), AbstractService.EMPTYDIR_CREATE, eachStream); ConduitMetrics.registerSlidingWindowGauge(getServiceType(), AbstractService.FILES_COPIED_COUNT, eachStream); ConduitMetrics.registerSlidingWindowGauge(getServiceType(), RUNTIME, eachStream); ConduitMetrics.registerSlidingWindowGauge(getServiceType(), FAILURES, eachStream); ConduitMetrics.registerSlidingWindowGauge(getServiceType(), COMMIT_TIME, eachStream); ConduitMetrics.registerAbsoluteGauge(getServiceType(), LAST_FILE_PROCESSED, eachStream); ConduitMetrics.registerSlidingWindowGauge(getServiceType(), HCAT_ADD_PARTITIONS_COUNT, eachStream); ConduitMetrics.registerSlidingWindowGauge(getServiceType(), HCAT_CONNECTION_FAILURES, eachStream); ConduitMetrics.registerSlidingWindowGauge(getServiceType(), FAILED_TO_GET_HCAT_CLIENT_COUNT, eachStream); } }