Package com.illumon.iris.db.v2.routing
Class DataImportServiceConfig.Delegating
java.lang.Object
com.illumon.iris.db.v2.routing.DataImportServiceConfig.Delegating
- All Implemented Interfaces:
DataImportServiceConfig,DataRoutingService.PropertyProvider,ServiceRegistryConfig
- Enclosing interface:
- DataImportServiceConfig
public static class DataImportServiceConfig.Delegating extends Object implements DataImportServiceConfig
Delegate method calls to an implementation object.
This is designed to be subclassed.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.illumon.iris.db.v2.routing.DataImportServiceConfig
DataImportServiceConfig.DeferredEndpoint, DataImportServiceConfig.Delegating, DataImportServiceConfig.Endpoint, DataImportServiceConfig.EndpointConfig -
Constructor Summary
Constructors Constructor Description Delegating(DataImportServiceConfig config) -
Method Summary
Modifier and Type Method Description Map<String,String>getAllProperties()Return all properties as a map.DataImportServiceConfig.EndpointConfiggetEndpointConfig()Get the configuration information a data import server needs to set up its services.FiltergetFilter()Get the filter to be used for TableFilter determining what data this DIS should accept TableFilter and TableLocation filter determining how data is routed in a composed TableDataService (note that this filter is not used when the DIS is used directly as a TableDataService)StringgetName()The name of this DataImportService.StringgetProperty(String propertyName)Return the named property value, or null.<T> TgetProperty(String propertyName, T defaultValue)Return the named property value, with the type indicated by the default value.StringgetServiceRegistryType()Returns the value populated for 'serviceregistry' tag under endpoints sub-config.StringgetStorageRoot()Get the location where this Data Import Server will write data.StringgetUserIntradayDirectoryName()Return the name of the subdirectory to use for writing and reader user data.JettyServerHelper.ParametersgetWebServerParameters()Return configuration for an optional diagnostic web service.booleanisTableDataPortEnabled()Return true if this DIS will serve data via the Table Data Protocol.booleanisTailerPortEnabled()Return true if this DIS will accept data via the tailer interface.
-
Constructor Details
-
Method Details
-
getName
Description copied from interface:DataImportServiceConfigThe name of this DataImportService.- Specified by:
getNamein interfaceDataImportServiceConfig- Returns:
- the configured DIS name.
-
getUserIntradayDirectoryName
Description copied from interface:DataImportServiceConfigReturn the name of the subdirectory to use for writing and reader user data.- Specified by:
getUserIntradayDirectoryNamein interfaceDataImportServiceConfig- Returns:
- the user data directory for this data import server. Not all service instances will use this.
-
getFilter
Description copied from interface:DataImportServiceConfigGet the filter to be used for- TableFilter determining what data this DIS should accept
- TableFilter and TableLocation filter determining how data is routed in a composed TableDataService (note that this filter is not used when the DIS is used directly as a TableDataService)
- Specified by:
getFilterin interfaceDataImportServiceConfig- Returns:
- the filter for this DataImportServer
-
isTableDataPortEnabled
public boolean isTableDataPortEnabled()Description copied from interface:DataImportServiceConfigReturn true if this DIS will serve data via the Table Data Protocol.- Specified by:
isTableDataPortEnabledin interfaceDataImportServiceConfig- Returns:
- true if this DIS will serve data via table data protocol
-
isTailerPortEnabled
public boolean isTailerPortEnabled()Description copied from interface:DataImportServiceConfigReturn true if this DIS will accept data via the tailer interface.- Specified by:
isTailerPortEnabledin interfaceDataImportServiceConfig- Returns:
- true if this DIS will accept data
-
getStorageRoot
Description copied from interface:DataImportServiceConfigGet the location where this Data Import Server will write data.- Specified by:
getStorageRootin interfaceDataImportServiceConfig- Returns:
- the root folder to which data will be written
-
getWebServerParameters
Description copied from interface:DataImportServiceConfigReturn configuration for an optional diagnostic web service.- Specified by:
getWebServerParametersin interfaceDataImportServiceConfig- Returns:
- configuration for the optional web service (which might be disabled).
-
getEndpointConfig
Description copied from interface:DataImportServiceConfigGet the configuration information a data import server needs to set up its services.- Specified by:
getEndpointConfigin interfaceDataImportServiceConfig- Returns:
- DataImportServiceEndpointConfig that determines how services will be started.
-
getProperty
Description copied from interface:DataRoutingService.PropertyProviderReturn the named property value, or null.- Specified by:
getPropertyin interfaceDataRoutingService.PropertyProvider- Parameters:
propertyName- the name of the property to fetch- Returns:
- the value of the property, or null if not set
-
getProperty
Description copied from interface:DataRoutingService.PropertyProviderReturn the named property value, with the type indicated by the default value. If the property isn't set, return the default value.- Specified by:
getPropertyin interfaceDataRoutingService.PropertyProvider- 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
-
getAllProperties
Description copied from interface:DataRoutingService.PropertyProviderReturn all properties as a map. This is useful for interactions outside the DB project.- Specified by:
getAllPropertiesin interfaceDataRoutingService.PropertyProvider- Returns:
- a map containing all keys and values for this provider
-
getServiceRegistryType
Description copied from interface:ServiceRegistryConfigReturns the value populated for 'serviceregistry' tag under endpoints sub-config.- Specified by:
getServiceRegistryTypein interfaceServiceRegistryConfig
-