fixed variable name

This commit is contained in:
jisookim0513 2014-10-17 00:13:30 -07:00
parent 7d5c5f2083
commit b8cbe2457a
6 changed files with 10 additions and 10 deletions

View File

@ -81,7 +81,7 @@ public class SegmentInsertAction implements TaskAction<Set<DataSegment>>
{ {
toolbox.verifyTaskLocksAndSinglePartitionSettitude(task, segments, true); toolbox.verifyTaskLocksAndSinglePartitionSettitude(task, segments, true);
final Set<DataSegment> retVal = toolbox.getIndexerDBCoordinator().announceHistoricalSegments(segments); final Set<DataSegment> retVal = toolbox.getIndexerMetadataStorageCoordinator().announceHistoricalSegments(segments);
// Emit metrics // Emit metrics
final ServiceMetricEvent.Builder metricBuilder = new ServiceMetricEvent.Builder() final ServiceMetricEvent.Builder metricBuilder = new ServiceMetricEvent.Builder()

View File

@ -68,7 +68,7 @@ public class SegmentListUnusedAction implements TaskAction<List<DataSegment>>
@Override @Override
public List<DataSegment> perform(Task task, TaskActionToolbox toolbox) throws IOException public List<DataSegment> perform(Task task, TaskActionToolbox toolbox) throws IOException
{ {
return toolbox.getIndexerDBCoordinator().getUnusedSegmentsForInterval(dataSource, interval); return toolbox.getIndexerMetadataStorageCoordinator().getUnusedSegmentsForInterval(dataSource, interval);
} }
@Override @Override

View File

@ -68,7 +68,7 @@ public class SegmentListUsedAction implements TaskAction<List<DataSegment>>
@Override @Override
public List<DataSegment> perform(Task task, TaskActionToolbox toolbox) throws IOException public List<DataSegment> perform(Task task, TaskActionToolbox toolbox) throws IOException
{ {
return toolbox.getIndexerDBCoordinator().getUsedSegmentsForInterval(dataSource, interval); return toolbox.getIndexerMetadataStorageCoordinator().getUsedSegmentsForInterval(dataSource, interval);
} }
@Override @Override

View File

@ -42,7 +42,7 @@ public class SegmentMetadataUpdateAction implements TaskAction<Void>
) throws IOException ) throws IOException
{ {
toolbox.verifyTaskLocksAndSinglePartitionSettitude(task, segments, true); toolbox.verifyTaskLocksAndSinglePartitionSettitude(task, segments, true);
toolbox.getIndexerDBCoordinator().updateSegmentMetadata(segments); toolbox.getIndexerMetadataStorageCoordinator().updateSegmentMetadata(segments);
// Emit metrics // Emit metrics
final ServiceMetricEvent.Builder metricBuilder = new ServiceMetricEvent.Builder() final ServiceMetricEvent.Builder metricBuilder = new ServiceMetricEvent.Builder()

View File

@ -59,7 +59,7 @@ public class SegmentNukeAction implements TaskAction<Void>
public Void perform(Task task, TaskActionToolbox toolbox) throws IOException public Void perform(Task task, TaskActionToolbox toolbox) throws IOException
{ {
toolbox.verifyTaskLocksAndSinglePartitionSettitude(task, segments, true); toolbox.verifyTaskLocksAndSinglePartitionSettitude(task, segments, true);
toolbox.getIndexerDBCoordinator().deleteSegments(segments); toolbox.getIndexerMetadataStorageCoordinator().deleteSegments(segments);
// Emit metrics // Emit metrics
final ServiceMetricEvent.Builder metricBuilder = new ServiceMetricEvent.Builder() final ServiceMetricEvent.Builder metricBuilder = new ServiceMetricEvent.Builder()

View File

@ -37,18 +37,18 @@ import java.util.Set;
public class TaskActionToolbox public class TaskActionToolbox
{ {
private final TaskLockbox taskLockbox; private final TaskLockbox taskLockbox;
private final IndexerMetadataStorageCoordinator indexerDBCoordinator; private final IndexerMetadataStorageCoordinator indexerMetadataStorageCoordinator;
private final ServiceEmitter emitter; private final ServiceEmitter emitter;
@Inject @Inject
public TaskActionToolbox( public TaskActionToolbox(
TaskLockbox taskLockbox, TaskLockbox taskLockbox,
IndexerMetadataStorageCoordinator indexerDBCoordinator, IndexerMetadataStorageCoordinator indexerMetadataStorageCoordinator,
ServiceEmitter emitter ServiceEmitter emitter
) )
{ {
this.taskLockbox = taskLockbox; this.taskLockbox = taskLockbox;
this.indexerDBCoordinator = indexerDBCoordinator; this.indexerMetadataStorageCoordinator = indexerMetadataStorageCoordinator;
this.emitter = emitter; this.emitter = emitter;
} }
@ -57,9 +57,9 @@ public class TaskActionToolbox
return taskLockbox; return taskLockbox;
} }
public IndexerMetadataStorageCoordinator getIndexerDBCoordinator() public IndexerMetadataStorageCoordinator getIndexerMetadataStorageCoordinator()
{ {
return indexerDBCoordinator; return indexerMetadataStorageCoordinator;
} }
public ServiceEmitter getEmitter() public ServiceEmitter getEmitter()