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> TgetProperty(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, waitMethods inherited from interface com.illumon.iris.db.v2.routing.DataImportServiceConfig
getStringRepresentation, toStringHelperMethods 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:DataImportServiceConfigThe name of this DataImportService.- Specified by:
getNamein interfaceDataImportServiceConfig- Returns:
- the configured DIS name.
-
getGroup
Description copied from interface:DataImportServiceConfigThe optional group for this DataImportService. Matching DIS instances may be part of a named failover group.- Specified by:
getGroupin interfaceDataImportServiceConfig- Returns:
- the group name, or null
-
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
-
getClaims
Description copied from interface:DataImportServiceConfigGet the claims explicitly made by this DIS. The claims filter interacts with the data routing service and may differ from this list.- Specified by:
getClaimsin interfaceDataImportServiceConfig- Returns:
- the set of claims for this DIS
-
getStorageName
Description copied from interface:DataImportServiceConfigGet 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:
getStorageNamein interfaceDataImportServiceConfig- Returns:
- the configured storage name
-
getStorageRoot
Description copied from interface:DataImportServiceConfigGet 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:
getStorageRootin interfaceDataImportServiceConfig- Returns:
- the root folder to which data will be written, or null
-
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- 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.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
-
getServiceRegistryType
Description copied from interface:ServiceRegistryConfigReturns the value populated for 'serviceregistry' tag under endpoints sub-config.- Specified by:
getServiceRegistryTypein interfaceDataImportServiceConfig- Specified by:
getServiceRegistryTypein interfaceServiceRegistryConfig
-
asTableDataServiceConfig
Description copied from interface:DataImportServiceConfigData Import Servers (with table data ports) can be used as a TableDataService. This returns a TableDataServiceConfig based on the DIS configuration.- Specified by:
asTableDataServiceConfigin interfaceDataImportServiceConfig- Returns:
- a TableDataServiceConfig
-
toString
-