Package com.illumon.iris.db.v2.routing
Class DataImportServiceConfig.Delegating
java.lang.Object
com.illumon.iris.db.v2.routing.DataImportServiceConfig.Delegating
- All Implemented Interfaces:
StringUtils.StringKeyedObject
,DataImportServiceConfig
,DataRoutingService.PropertyProvider
,ServiceRegistryConfig
,NamedImplementation
- 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
ConstructorsConstructorDescriptionDelegating
(DataImportServiceConfig config) Constructor: Delegate to the given DataImportServiceConfig. -
Method Summary
Modifier and TypeMethodDescriptionData Import Servers (with table data ports) can be used as a TableDataService.Get the claims explicitly made by this DIS.Get the configuration information a data import server needs to set up its services.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)getGroup()
The optional group for this DataImportService.getName()
The name of this DataImportService.Return all properties as a map.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.Returns the value populated for 'serviceregistry' tag under endpoints sub-config.Get the name of the storage configuration to use for this Data Import Server.Get the location where this Data Import Server will write data.Return the name of the subdirectory to use for writing and reader user data.Return configuration for an optional diagnostic web service.toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.illumon.iris.db.v2.routing.DataImportServiceConfig
getStringRepresentation, toStringHelper
Methods inherited from interface com.illumon.util.type.NamedImplementation
getImplementationName
-
Constructor Details
-
Delegating
Constructor: Delegate to the given DataImportServiceConfig.- Parameters:
config
- delegate to this DataImportServiceConfig
-
-
Method Details
-
getName
Description copied from interface:DataImportServiceConfig
The name of this DataImportService.- Specified by:
getName
in interfaceDataImportServiceConfig
- Returns:
- the configured DIS name.
-
getGroup
Description copied from interface:DataImportServiceConfig
The optional group for this DataImportService. Matching DIS instances may be part of a named failover group.- Specified by:
getGroup
in interfaceDataImportServiceConfig
- Returns:
- the group name, or null
-
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
-
getClaims
Description copied from interface:DataImportServiceConfig
Get the claims explicitly made by this DIS. The claims filter interacts with the data routing service and may differ from this list.- Specified by:
getClaims
in interfaceDataImportServiceConfig
- Returns:
- the set of claims for this DIS
-
getStorageName
Description copied from interface:DataImportServiceConfig
Get the name of the storage configuration to use for this Data Import Server. "private" is a special value that indicates that the DIS will bring its own storage configuration.- Specified by:
getStorageName
in interfaceDataImportServiceConfig
- Returns:
- the configured storage name
-
getStorageRoot
Description copied from interface:DataImportServiceConfig
Get the location where this Data Import Server will write data. May returns null if the DIS is expected to bring its own storage configuration or if this DataImportServiceConfig has not been realized by a DataRoutingService.- Specified by:
getStorageRoot
in interfaceDataImportServiceConfig
- Returns:
- the root folder to which data will be written, or null
-
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
- 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
-
getProperties
Description copied from interface:DataRoutingService.PropertyProvider
Return all properties as a map. This is useful for interactions outside the DB project.- Specified by:
getProperties
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 interfaceDataImportServiceConfig
- Specified by:
getServiceRegistryType
in interfaceServiceRegistryConfig
-
asTableDataServiceConfig
Description copied from interface:DataImportServiceConfig
Data Import Servers (with table data ports) can be used as a TableDataService. This returns a TableDataServiceConfig based on the DIS configuration.- Specified by:
asTableDataServiceConfig
in interfaceDataImportServiceConfig
- Returns:
- a TableDataServiceConfig
-
toString
-