Rename BatchStepTagsProvider to BatchStepKeyValuesProvider
This rename is for consistency with
BatchJobKeyValuesProvider
Related to a19eefa7fd
This commit is contained in:
@@ -22,9 +22,10 @@ import io.micrometer.observation.Observation;
|
||||
* {@link Observation.KeyValuesProvider} for {@link BatchStepContext}.
|
||||
*
|
||||
* @author Marcin Grzejszczak
|
||||
* @author Mahmoud Ben Hassine
|
||||
* @since 5.0
|
||||
*/
|
||||
public interface BatchStepTagsProvider extends Observation.KeyValuesProvider<BatchStepContext> {
|
||||
public interface BatchStepKeyValuesProvider extends Observation.KeyValuesProvider<BatchStepContext> {
|
||||
|
||||
@Override
|
||||
default boolean supportsContext(Observation.Context context) {
|
||||
@@ -20,13 +20,13 @@ import io.micrometer.common.KeyValues;
|
||||
import org.springframework.batch.core.StepExecution;
|
||||
|
||||
/**
|
||||
* Default {@link BatchStepTagsProvider} implementation.
|
||||
* Default {@link BatchStepKeyValuesProvider} implementation.
|
||||
*
|
||||
* @author Marcin Grzejszczak
|
||||
* @author Mahmoud Ben Hassine
|
||||
* @since 5.0
|
||||
*/
|
||||
public class DefaultBatchStepTagsProvider implements BatchStepTagsProvider {
|
||||
public class DefaultBatchStepKeyValuesProvider implements BatchStepKeyValuesProvider {
|
||||
|
||||
@Override
|
||||
public KeyValues getLowCardinalityKeyValues(BatchStepContext context) {
|
||||
@@ -38,8 +38,8 @@ import org.springframework.batch.core.listener.CompositeStepExecutionListener;
|
||||
import org.springframework.batch.core.observability.BatchMetrics;
|
||||
import org.springframework.batch.core.observability.BatchStepContext;
|
||||
import org.springframework.batch.core.observability.BatchStepObservation;
|
||||
import org.springframework.batch.core.observability.BatchStepTagsProvider;
|
||||
import org.springframework.batch.core.observability.DefaultBatchStepTagsProvider;
|
||||
import org.springframework.batch.core.observability.BatchStepKeyValuesProvider;
|
||||
import org.springframework.batch.core.observability.DefaultBatchStepKeyValuesProvider;
|
||||
import org.springframework.batch.core.repository.JobRepository;
|
||||
import org.springframework.batch.core.scope.context.StepSynchronizationManager;
|
||||
import org.springframework.batch.item.ExecutionContext;
|
||||
@@ -74,7 +74,7 @@ public abstract class AbstractStep implements Step, InitializingBean, BeanNameAw
|
||||
|
||||
private JobRepository jobRepository;
|
||||
|
||||
private BatchStepTagsProvider keyValuesProvider = new DefaultBatchStepTagsProvider();
|
||||
private BatchStepKeyValuesProvider keyValuesProvider = new DefaultBatchStepKeyValuesProvider();
|
||||
|
||||
/**
|
||||
* Default constructor.
|
||||
@@ -418,7 +418,7 @@ public abstract class AbstractStep implements Step, InitializingBean, BeanNameAw
|
||||
return exitStatus;
|
||||
}
|
||||
|
||||
public void setKeyValuesProvider(BatchStepTagsProvider keyValuesProvider) {
|
||||
public void setKeyValuesProvider(BatchStepKeyValuesProvider keyValuesProvider) {
|
||||
this.keyValuesProvider = keyValuesProvider;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user