Package com.illumon.iris.db.v2.routing
Interface DataRoutingService.PropertyProvider
- All Known Subinterfaces:
DataImportServiceConfig,DataImportServiceConfig.EndpointConfig,DataRoutingService.EndpointConfig,DisEndpointConfigImpl,LogAggregatorConfig,LogAggregatorConfig.EndpointConfig,TableDataServiceConfig
- All Known Implementing Classes:
DataImportServiceConfig.Delegating,DataImportServiceConfigImpl,DataImportServiceEndpointConfigImpl,DataRoutingService.NullPropertyProvider,TableDataServiceConfigImpl,TableDataServiceData
- Enclosing interface:
- DataRoutingService
public static interface DataRoutingService.PropertyProvider
Provides access to "other" configuration properties for several interfaces.
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanCompare two PropertyProviders, allowing for conversion of values to Strings.Return all properties as a map.default StringgetProperty(String propertyName) Return the named property value, or null.default <T> TgetProperty(String propertyName, T defaultValue) Return the named property value, with the type indicated by the default value.
-
Method Details
-
getProperty
Return the named property value, or null.- Parameters:
propertyName- the name of the property to fetch- Returns:
- the value of the property, or null if not set
-
getProperty
Return the named property value, with the type indicated by the default value. If the property isn't set, return the default value.- Type Parameters:
T- The return value will be cast to this type, as defined by the default value- Parameters:
propertyName- the name of the property to fetchdefaultValue- the typed default value to return if the property is not set- Returns:
- the value of the property, or null if not set
- Throws:
DataRoutingConfigurationException- if the actual value cannot be returned as the defaultValue type
-
getProperties
Return all properties as a map. This is useful for interactions outside the DB project.- Returns:
- a map containing all keys and values for this provider
-
equals
static boolean equals(DataRoutingService.PropertyProvider lhs, DataRoutingService.PropertyProvider rhs) Compare two PropertyProviders, allowing for conversion of values to Strings.- Parameters:
lhs- one maprhs- the other map- Returns:
- true if the maps are the same size and have equivalent values
-