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.EndpointConfig
getEndpointConfig()
Get the configuration information a data import server needs to set up its services.Filter
getFilter()
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)String
getName()
The name of this DataImportService.String
getProperty(String propertyName)
Return the named property value, or null.<T> T
getProperty(String propertyName, T defaultValue)
Return the named property value, with the type indicated by the default value.String
getServiceRegistryType()
Returns the value populated for 'serviceregistry' tag under endpoints sub-config.String
getStorageRoot()
Get the location where this Data Import Server will write data.String
getUserIntradayDirectoryName()
Return the name of the subdirectory to use for writing and reader user data.JettyServerHelper.Parameters
getWebServerParameters()
Return configuration for an optional diagnostic web service.boolean
isTableDataPortEnabled()
Return true if this DIS will serve data via the Table Data Protocol.boolean
isTailerPortEnabled()
Return true if this DIS will accept data via the tailer interface.
-
Constructor Details
-
Method Details
-
getName
Description copied from interface:DataImportServiceConfig
The name of this DataImportService.- Specified by:
getName
in interfaceDataImportServiceConfig
- Returns:
- the configured DIS name.
-
getUserIntradayDirectoryName
Description copied from interface:DataImportServiceConfig
Return the name of the subdirectory to use for writing and reader user data.- Specified by:
getUserIntradayDirectoryName
in interfaceDataImportServiceConfig
- Returns:
- the user data directory for this data import server. Not all service instances will use this.
-
getFilter
Description copied from interface:DataImportServiceConfig
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)
- Specified by:
getFilter
in interfaceDataImportServiceConfig
- Returns:
- the filter for this DataImportServer
-
isTableDataPortEnabled
public boolean isTableDataPortEnabled()Description copied from interface:DataImportServiceConfig
Return true if this DIS will serve data via the Table Data Protocol.- Specified by:
isTableDataPortEnabled
in interfaceDataImportServiceConfig
- Returns:
- true if this DIS will serve data via table data protocol
-
isTailerPortEnabled
public boolean isTailerPortEnabled()Description copied from interface:DataImportServiceConfig
Return true if this DIS will accept data via the tailer interface.- Specified by:
isTailerPortEnabled
in interfaceDataImportServiceConfig
- Returns:
- true if this DIS will accept data
-
getStorageRoot
Description copied from interface:DataImportServiceConfig
Get the location where this Data Import Server will write data.- Specified by:
getStorageRoot
in interfaceDataImportServiceConfig
- Returns:
- the root folder to which data will be written
-
getWebServerParameters
Description copied from interface:DataImportServiceConfig
Return configuration for an optional diagnostic web service.- Specified by:
getWebServerParameters
in interfaceDataImportServiceConfig
- Returns:
- configuration for the optional web service (which might be disabled).
-
getEndpointConfig
Description copied from interface:DataImportServiceConfig
Get the configuration information a data import server needs to set up its services.- Specified by:
getEndpointConfig
in interfaceDataImportServiceConfig
- Returns:
- DataImportServiceEndpointConfig that determines how services will be started.
-
getProperty
Description copied from interface:DataRoutingService.PropertyProvider
Return the named property value, or null.- Specified by:
getProperty
in 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.PropertyProvider
Return the named property value, with the type indicated by the default value. If the property isn't set, return the default value.- Specified by:
getProperty
in 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.PropertyProvider
Return all properties as a map. This is useful for interactions outside the DB project.- Specified by:
getAllProperties
in interfaceDataRoutingService.PropertyProvider
- Returns:
- a map containing all keys and values for this provider
-
getServiceRegistryType
Description copied from interface:ServiceRegistryConfig
Returns the value populated for 'serviceregistry' tag under endpoints sub-config.- Specified by:
getServiceRegistryType
in interfaceServiceRegistryConfig
-