Package io.openlineage.client
Class OpenLineageConfig<T extends OpenLineageConfig>
- java.lang.Object
-
- io.openlineage.client.OpenLineageConfig<T>
-
- Type Parameters:
T
- generic type extendingOpenLineageConfig
, used for merging config objects
- All Implemented Interfaces:
MergeConfig<T>
public class OpenLineageConfig<T extends OpenLineageConfig> extends java.lang.Object implements MergeConfig<T>
Configuration forOpenLineageClient
.
-
-
Field Summary
Fields Modifier and Type Field Description protected CircuitBreakerConfig
circuitBreaker
protected DatasetConfig
datasetConfig
protected FacetsConfig
facetsConfig
protected java.util.Map<java.lang.String,java.lang.Object>
metricsConfig
protected TransportConfig
transportConfig
-
Constructor Summary
Constructors Constructor Description OpenLineageConfig()
OpenLineageConfig(TransportConfig transportConfig, FacetsConfig facetsConfig, DatasetConfig datasetConfig, CircuitBreakerConfig circuitBreaker, java.util.Map<java.lang.String,java.lang.Object> metricsConfig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CircuitBreakerConfig
getCircuitBreaker()
DatasetConfig
getDatasetConfig()
FacetsConfig
getFacetsConfig()
java.util.Map<java.lang.String,java.lang.Object>
getMetricsConfig()
TransportConfig
getTransportConfig()
OpenLineageConfig
mergeWithNonNull(OpenLineageConfig other)
Overwrites existing object with properties of other config entries whenever they're present.void
setCircuitBreaker(CircuitBreakerConfig circuitBreaker)
void
setDatasetConfig(DatasetConfig datasetConfig)
void
setFacetsConfig(FacetsConfig facetsConfig)
void
setMetricsConfig(java.util.Map<java.lang.String,java.lang.Object> metricsConfig)
void
setTransportConfig(TransportConfig transportConfig)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.openlineage.client.MergeConfig
mergePropertyWith, mergePropertyWith, mergeWith, mergeWithDefaultValue
-
-
-
-
Field Detail
-
transportConfig
protected TransportConfig transportConfig
-
facetsConfig
protected FacetsConfig facetsConfig
-
datasetConfig
protected DatasetConfig datasetConfig
-
circuitBreaker
protected CircuitBreakerConfig circuitBreaker
-
metricsConfig
protected java.util.Map<java.lang.String,java.lang.Object> metricsConfig
-
-
Constructor Detail
-
OpenLineageConfig
public OpenLineageConfig()
-
OpenLineageConfig
public OpenLineageConfig(TransportConfig transportConfig, FacetsConfig facetsConfig, DatasetConfig datasetConfig, CircuitBreakerConfig circuitBreaker, java.util.Map<java.lang.String,java.lang.Object> metricsConfig)
-
-
Method Detail
-
mergeWithNonNull
public OpenLineageConfig mergeWithNonNull(OpenLineageConfig other)
Overwrites existing object with properties of other config entries whenever they're present.- Specified by:
mergeWithNonNull
in interfaceMergeConfig<T extends OpenLineageConfig>
- Parameters:
other
- value to merge- Returns:
- merged config entry
-
getTransportConfig
public TransportConfig getTransportConfig()
-
getFacetsConfig
public FacetsConfig getFacetsConfig()
-
getDatasetConfig
public DatasetConfig getDatasetConfig()
-
getCircuitBreaker
public CircuitBreakerConfig getCircuitBreaker()
-
getMetricsConfig
public java.util.Map<java.lang.String,java.lang.Object> getMetricsConfig()
-
setTransportConfig
public void setTransportConfig(TransportConfig transportConfig)
-
setFacetsConfig
public void setFacetsConfig(FacetsConfig facetsConfig)
-
setDatasetConfig
public void setDatasetConfig(DatasetConfig datasetConfig)
-
setCircuitBreaker
public void setCircuitBreaker(CircuitBreakerConfig circuitBreaker)
-
setMetricsConfig
public void setMetricsConfig(java.util.Map<java.lang.String,java.lang.Object> metricsConfig)
-
-