Class DataRoutingServiceKvImpl
java.lang.Object
com.illumon.iris.db.v2.routing.DataRoutingService.Delegating
com.illumon.iris.db.v2.routing.impl.kv.DataRoutingServiceKvImpl
- All Implemented Interfaces:
DataRoutingService,EndpointResolver,WritableDataRoutingService,WritableDataRoutingServiceImpl,SafeCloseable,NamedImplementation,io.deephaven.kv.routing.RoutingFileContext.RoutingFileListener,io.deephaven.kv.WatchClient.StateListener<io.deephaven.kv.routing.RoutingFile>,AutoCloseable
- Direct Known Subclasses:
DataRoutingServiceKvEtcdImpl,DataRoutingServiceKvInMemImpl
public abstract class DataRoutingServiceKvImpl
extends DataRoutingService.Delegating
implements io.deephaven.kv.routing.RoutingFileContext.RoutingFileListener, WritableDataRoutingServiceImpl
Initializes the DataRoutingService from a kv store.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.illumon.iris.db.v2.routing.DataRoutingService
DataRoutingService.DeferredEndpoint, DataRoutingService.Delegating, DataRoutingService.Endpoint, DataRoutingService.EndpointConfig, DataRoutingService.NotReadyException, DataRoutingService.NullPropertyProvider, DataRoutingService.PropertyProvider -
Field Summary
Fields inherited from interface com.illumon.iris.db.v2.routing.DataRoutingService
DEFAULT_LOCAL_TABLE_DATA_SERVICE, DEFAULT_QUERY_SERVER_TABLE_DATA_SERVICE, DEFAULT_SELECTION_TAG, HOST_TAG, MERGE_QUERY_TDS_TAG, NULL_PROPERTY_PROVIDER, PORT_TAG, QUERY_QUERY_TDS_TAG, SERVICE_REGISTRY_NONE, SERVICE_REGISTRY_SERVICE, TABLE_DATA_PORT_TAG, TABLE_DATA_SERVICE_CONFIG_PROP, TABLE_DATA_SERVICE_CONFIG_PROPS_WITH_LEGACY, TAILER_PORT_TAG, VALIDATE_QUERY_TDS_TAG -
Method Summary
Modifier and TypeMethodDescriptionabout()Information about a DataRoutingService instance.Serialize the data routing as a YAML string.voidclose()protected DataRoutingServiceabstract StringGet a name for the implementing class.voidvoidvoidonInitialState(io.deephaven.kv.HeaderResponse header, io.deephaven.kv.routing.RoutingFile state) voidonInitialStateNotPresent(io.deephaven.kv.HeaderResponse header) voidonNextState(io.deephaven.kv.WatchResponseUnit unit, io.deephaven.kv.routing.RoutingFile state) voidonNextStateNotPresent(io.deephaven.kv.WatchResponseUnit unit) toString()voidReplace the existing data routing configuration.voidReplace the existing data routing configuration.Methods inherited from class com.illumon.iris.db.v2.routing.DataRoutingService.Delegating
getAllDataImportServiceDestinationConfigs, getAllLogAggregatorServiceConfigs, getCollectedClaims, getDataImportServiceConfig, getDataImportServiceDestinationConfigs, getLogAggregatorConfig, getLogAggregatorDestinationConfig, getTableDataServiceConfig, getTableDataServiceConfigsMethods 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.DataRoutingService
authenticate, authenticate, authenticate, getAllDataImportServiceDeferredDestinations, getAllDataImportServiceDestinationConfigs, getAllDataImportServiceDestinations, getAllLogAggregatorServiceConfigs, getCollectedClaims, getDataImportServiceConfig, getDataImportServiceConfigWithStorage, getDataImportServiceDeferredDestinations, getDataImportServiceDestinationConfigs, getDataImportServiceDestinations, getLocalInstance, getLogAggregatorConfig, getLogAggregatorDeferredDestination, getLogAggregatorDestination, getLogAggregatorDestinationConfig, getTableDataServiceConfig, getTableDataServiceConfigsMethods inherited from interface com.illumon.iris.db.v2.routing.endpoint.EndpointResolver
resolveLogAggregatorEndpoint, resolveTableDataEndpoint, resolveTailerEndpoint
-
Method Details
-
update
Description copied from interface:WritableDataRoutingServiceReplace the existing data routing configuration.- Specified by:
updatein interfaceWritableDataRoutingService- Parameters:
yamldata- YAML representation of the new data routing configurationcode- pass-thru to kv persistence, indicates the code source of this updatecomment- pass-thru to kv persistence - a comment for this update
-
update
public void update(@NotNull byte[] yamldata, @NotNull String user, @NotNull String code, @NotNull String comment) Description copied from interface:WritableDataRoutingServiceImplReplace the existing data routing configuration.- Specified by:
updatein interfaceWritableDataRoutingServiceImpl- Parameters:
yamldata- YAML representation of the new data routing configurationuser- pass-thru to kv persistence, indicates the user making this changecode- pass-thru to kv persistence, indicates the code source of this updatecomment- pass-thru to kv persistence - a comment for this update
-
getImplementationName
Description copied from interface:NamedImplementationGet a name for the implementing class. Useful for abstract classes that implement
LogOutputAppendableor overridetoString.The default implementation is correct, but not suitable for high-frequency usage.
- Specified by:
getImplementationNamein interfaceNamedImplementation- Specified by:
getImplementationNamein classDataRoutingService.Delegating- Returns:
- A name for the implementing class
-
about
Description copied from interface:DataRoutingServiceInformation about a DataRoutingService instance. Useful for debugging.- Specified by:
aboutin interfaceDataRoutingService- Specified by:
aboutin classDataRoutingService.Delegating- Returns:
- a string containing information about the instance
-
toString
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceSafeCloseable- Overrides:
closein classDataRoutingService.Delegating
-
asYamlString
Description copied from interface:DataRoutingServiceSerialize the data routing as a YAML string. Internal use only.- Specified by:
asYamlStringin interfaceDataRoutingService- Overrides:
asYamlStringin classDataRoutingService.Delegating- Returns:
- YAML representation of the configuration
-
onInitialState
public void onInitialState(@NotNull io.deephaven.kv.HeaderResponse header, @NotNull io.deephaven.kv.routing.RoutingFile state) - Specified by:
onInitialStatein interfaceio.deephaven.kv.WatchClient.StateListener<io.deephaven.kv.routing.RoutingFile>
-
onInitialStateNotPresent
public void onInitialStateNotPresent(@NotNull io.deephaven.kv.HeaderResponse header) - Specified by:
onInitialStateNotPresentin interfaceio.deephaven.kv.WatchClient.StateListener<io.deephaven.kv.routing.RoutingFile>
-
onNextState
public void onNextState(@NotNull io.deephaven.kv.WatchResponseUnit unit, @NotNull io.deephaven.kv.routing.RoutingFile state) - Specified by:
onNextStatein interfaceio.deephaven.kv.WatchClient.StateListener<io.deephaven.kv.routing.RoutingFile>
-
onNextStateNotPresent
public void onNextStateNotPresent(@NotNull io.deephaven.kv.WatchResponseUnit unit) - Specified by:
onNextStateNotPresentin interfaceio.deephaven.kv.WatchClient.StateListener<io.deephaven.kv.routing.RoutingFile>
-
onError
- Specified by:
onErrorin interfaceio.deephaven.kv.WatchClient.StateListener<io.deephaven.kv.routing.RoutingFile>
-
onCompleted
public void onCompleted()- Specified by:
onCompletedin interfaceio.deephaven.kv.WatchClient.StateListener<io.deephaven.kv.routing.RoutingFile>
-
getDelegate
- Specified by:
getDelegatein classDataRoutingService.Delegating
-