Package com.illumon.iris.db.v2.routing
Interface DataImportServiceConfig
- All Superinterfaces:
DataRoutingService.PropertyProvider
,NamedImplementation
,ServiceRegistryConfig
,StringUtils.StringKeyedObject
- All Known Implementing Classes:
DataImportServiceConfig.Delegating
,DataImportServiceConfigImpl
public interface DataImportServiceConfig
extends ServiceRegistryConfig, DataRoutingService.PropertyProvider, StringUtils.StringKeyedObject, NamedImplementation
For use by DIS instance.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface
An endpoint that can be resolved later.static class
Delegate method calls to an implementation object.static interface
For use by consumer of DIS as a data sink.static interface
Configuration for resolving a DataImportService endpoint -
Method Summary
Modifier and TypeMethodDescriptionData Import Servers (with table data ports) can be used as a TableDataService.static boolean
Compare two instances for interface equality.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.default String
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.default String
Allow all implementations to be stored in a KeyedObjectStore, keyed by name.Return the name of the subdirectory to use for writing and reader user data.Return configuration for an optional diagnostic web service.default String
Default implementation of toString() for DataImportServiceConfig.Methods inherited from interface com.illumon.iris.db.v2.routing.DataRoutingService.PropertyProvider
getProperties, getProperty, getProperty
Methods inherited from interface com.illumon.util.type.NamedImplementation
getImplementationName
-
Method Details
-
getName
The name of this DataImportService.- Returns:
- the configured DIS name.
-
getGroup
The optional group for this DataImportService. Matching DIS instances may be part of a named failover group.- Returns:
- the group name, or null
-
getUserIntradayDirectoryName
Return the name of the subdirectory to use for writing and reader user data.- Returns:
- the user data directory for this data import server. Not all service instances will use this.
-
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)
- Returns:
- the filter for this DataImportServer
-
getClaims
Get the claims explicitly made by this DIS. The claims filter interacts with the data routing service and may differ from this list.- Returns:
- the set of claims for this DIS
-
getServiceRegistryType
Description copied from interface:ServiceRegistryConfig
Returns the value populated for 'serviceregistry' tag under endpoints sub-config.- Specified by:
getServiceRegistryType
in interfaceServiceRegistryConfig
-
getStorageName
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.- Returns:
- the configured storage name
-
getStorageRoot
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.- Returns:
- the root folder to which data will be written, or null
- Throws:
IllegalStateException
- if the storage root lookup is needed but not available
-
getWebServerParameters
Return configuration for an optional diagnostic web service.- Returns:
- configuration for the optional web service (which might be disabled).
-
getEndpointConfig
Get the configuration information a data import server needs to set up its services.- Returns:
- DataImportServiceEndpointConfig that determines how services will be started.
-
asTableDataServiceConfig
Data Import Servers (with table data ports) can be used as a TableDataService. This returns a TableDataServiceConfig based on the DIS configuration.- Returns:
- a TableDataServiceConfig
- Throws:
IllegalStateException
- if the DIS is not configured to serve table data
-
toStringHelper
Default implementation of toString() for DataImportServiceConfig. Can be called by toString() implementations.- Returns:
- a string representation of this DataImportServiceConfig
-
equals
Compare two instances for interface equality.- Parameters:
lhs
- the first objectrhs
- the second object- Returns:
- true if the two instances are equal, according to the interface
-
getStringRepresentation
Allow all implementations to be stored in a KeyedObjectStore, keyed by name.- Specified by:
getStringRepresentation
in interfaceStringUtils.StringKeyedObject
- Returns:
- the name of this DataImportServiceConfig
-