Class DataRoutingServiceKvInMemImpl

All Implemented Interfaces:
DataRoutingService, StorageLookup, DynamicResolverMixin, EndpointResolver, ClaimsProvider, WritableDataRoutingService, WritableDataRoutingServiceInternal, SafeCloseable, NamedImplementation, AutoCloseable

public class DataRoutingServiceKvInMemImpl extends DataRoutingServiceKvImpl implements DynamicResolverMixin
Implementation using an in-memory kv implementation. This implementation primes the kv store using the yaml file as from the YAML implementation.
Useful for testing.
  • Method Details

    • make

      public static DataRoutingServiceKvInMemImpl make(@NotNull com.fishlib.configuration.Configuration configuration) throws IOException
      Creates a DataRoutingServiceKvInMemImpl instance with the specified configuration. Uses the default routing file context and primes the KV store with the YAML configuration file.
      Parameters:
      configuration - the configuration to use
      Returns:
      a new initialized DataRoutingServiceKvInMemImpl instance
      Throws:
      IOException - if an I/O error occurs while reading the routing configuration
    • make

      public static DataRoutingServiceKvInMemImpl make(@NotNull com.fishlib.configuration.Configuration configuration, @NotNull io.deephaven.kv.routing.RoutingFileContext context) throws IOException
      Creates a DataRoutingServiceKvInMemImpl instance with the specified configuration and routing context. Primes the KV store with the YAML configuration file specified in the configuration.
      Parameters:
      configuration - the configuration to use
      context - the routing file context
      Returns:
      a new initialized DataRoutingServiceKvInMemImpl instance
      Throws:
      IOException - if an I/O error occurs while reading the routing configuration
    • make

      public static DataRoutingServiceKvInMemImpl make(@NotNull com.fishlib.configuration.Configuration configuration, @NotNull String filename) throws IOException
      Creates a DataRoutingServiceKvInMemImpl instance with the specified configuration and YAML filename. Primes the KV store with the specified YAML configuration file.
      Parameters:
      configuration - the configuration to use
      filename - the YAML configuration filename to load
      Returns:
      a new initialized DataRoutingServiceKvInMemImpl instance
      Throws:
      IOException - if an I/O error occurs while reading the routing configuration
    • getImplementationName

      public String getImplementationName()
      Returns the implementation name for this data routing service.
      Specified by:
      getImplementationName in interface NamedImplementation
      Specified by:
      getImplementationName in class DataRoutingServiceKvImpl
      Returns:
      the implementation name