Class DataImportServiceEndpointConfigImpl
java.lang.Object
com.illumon.iris.db.v2.routing.impl.yaml.DataImportServiceEndpointConfigImpl
- All Implemented Interfaces:
DataImportServiceConfig.EndpointConfig,DataRoutingService.EndpointConfig,DataRoutingService.PropertyProvider
public class DataImportServiceEndpointConfigImpl
extends Object
implements DataImportServiceConfig.EndpointConfig
YAML based implementation of DataImportServiceConfig.EndpointConfig.
-
Method Summary
Modifier and TypeMethodDescriptionDataImportServiceEndpointConfigImpl represents tailer and tds endpoints.@NotNull StringgetName()Return the name of this configuration, which is likely to be a service name.Return all properties as a map.@Nullable StringgetProperty(@NotNull String name) Return the named property value, or null.@NotNull StringReturn the string representation of the service registry scheme.inttoString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.illumon.iris.db.v2.routing.DataImportServiceConfig.EndpointConfig
isTableDataPortEnabled, isTailerPortEnabledMethods inherited from interface com.illumon.iris.db.v2.routing.DataRoutingService.EndpointConfig
getName, getServiceRegistryTypeMethods inherited from interface com.illumon.iris.db.v2.routing.DataRoutingService.PropertyProvider
getProperties, getProperty, getProperty
-
Method Details
-
getThrottleKBps
public int getThrottleKBps()- Specified by:
getThrottleKBpsin interfaceDataImportServiceConfig.EndpointConfig
-
asTableDataServiceEndpointConfig
DataImportServiceEndpointConfigImpl represents tailer and tds endpoints. By default, the "port" is the tailer port. When we use this object as a TableDataServiceConfig, we need to change that.- Returns:
- the endpoint config as a table data service endpoint
-
toString
-
getServiceRegistryType
Description copied from interface:DataRoutingService.EndpointConfigReturn the string representation of the service registry scheme. Service and client implementations should be able to register new services or look up registered services based on this string.- Specified by:
getServiceRegistryTypein interfaceDataRoutingService.EndpointConfig- Returns:
- the name of the service registry scheme
-
getProperty
Description copied from interface:DataRoutingService.PropertyProviderReturn the named property value, or null.- Specified by:
getPropertyin interfaceDataRoutingService.PropertyProvider- Parameters:
name- the name of the property to fetch- Returns:
- the value of the property, or null if not set
-
getProperties
Description copied from interface:DataRoutingService.PropertyProviderReturn all properties as a map. This is useful for interactions outside the DB project.- Specified by:
getPropertiesin interfaceDataRoutingService.PropertyProvider- Returns:
- a map containing all keys and values for this provider
-
getName
Description copied from interface:DataRoutingService.EndpointConfigReturn the name of this configuration, which is likely to be a service name.- Specified by:
getNamein interfaceDataRoutingService.EndpointConfig- Returns:
- the configuration name
-