Package io.deephaven.kv.routing
Class RoutingFileContext
java.lang.Object
io.deephaven.kv.KeyPathContextBase
io.deephaven.kv.meta.AtomicDirectoryContext
io.deephaven.kv.files.FileContext
io.deephaven.kv.routing.RoutingFileContext
- All Implemented Interfaces:
GetPrefixResponseParser<Optional<RoutingFile>>,Context,KeyPathContext,KeyValuesCollectionParser<Optional<RoutingFile>>
@Reusable
public class RoutingFileContext
extends FileContext
implements GetPrefixResponseParser<Optional<RoutingFile>>
A single-file
KeyPath model for a routing file.
Models the data in RoutingFile
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassstatic enumThe description is composed of theDISCONFIGSentry.static interfacestatic interfaceA statefulwatch listenerinterface forRoutingFile.Nested classes/interfaces inherited from class io.deephaven.kv.files.FileContext
FileContext.File, FileContext.GetFileRequestNested classes/interfaces inherited from class io.deephaven.kv.meta.AtomicDirectoryContext
AtomicDirectoryContext.AtomicUpdateWrt, AtomicDirectoryContext.MetaDescription -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final KeyPathContextDescription.Entry<FilesContext,RoutingFileContext> An entry for theFilesContext, with the part "disconfigs"Fields inherited from class io.deephaven.kv.files.FileContext
FILE, NAMEFields inherited from class io.deephaven.kv.meta.AtomicDirectoryContext
META, META_PART, parentFields inherited from class io.deephaven.kv.KeyPathContextBase
context, description -
Method Summary
Modifier and TypeMethodDescriptionbuilder()The context where the parser will look for data in the responsegetRoutingFileRequest(long modRev) @NotNull Optional<RoutingFile>parse(@NotNull KeyValuesCollection response) Parse the key values into an object.watch(KVClient kvClient, WatchClient watchClient, RoutingFileContext.RoutingFileListener listener) Methods inherited from class io.deephaven.kv.files.FileContext
asFile, asPuts, atomic, entryMethods inherited from class io.deephaven.kv.meta.AtomicDirectoryContext
asDelete, atomic, atomicDelete, atomicDeleteChildren, expectNewWrtThis, expectUpdateWrtThis, getMetaInfoContext, getMetaInfoContext, getReadPermissions, getReadWritePaths, getReadWritePermissions, isLowestLevelAtomicDirectory, isMetaPart, isNotMeta, parseDirectoryListing, parseDirectoryListingStream, parseDirectoryListingStreamToSubset, watch, watch, watch, wrtAtomicConditionIsTrueHandleUsMethods inherited from class io.deephaven.kv.KeyPathContextBase
equals, getDescription, getPath, hashCodeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.deephaven.kv.common.GetPrefixResponseParser
checkContext, getPrefix, parseMethods inherited from interface io.deephaven.kv.KeyPathContext
resolve
-
Field Details
-
DISCONFIGS
An entry for theFilesContext, with the part "disconfigs"
-
-
Method Details
-
getDisConfigsContext
-
getConfigContext
-
getPreferredFileName
-
parse
@NotNull public @NotNull Optional<RoutingFile> parse(@NotNull @NotNull KeyValuesCollection response) Description copied from interface:KeyValuesCollectionParserParse the key values into an object.Implementations should throw appropriate exceptions if any assumed preconditions for the
keyPathCollectionare not met.- Specified by:
parsein interfaceKeyValuesCollectionParser<Optional<RoutingFile>>- Parameters:
response- the key values- Returns:
- the non-null parsed object
-
getContext
Description copied from interface:GetPrefixResponseParserThe context where the parser will look for data in the response- Specified by:
getContextin interfaceGetPrefixResponseParser<Optional<RoutingFile>>
-
getRoutingFileRequest
-
getRoutingFileRequest
-
builder
-
builder
public RoutingFileContext.Builder builder(String user, String code, Instant timestamp, String comment) -
watch
public CompletableFuture<WatchClient.Watch> watch(KVClient kvClient, WatchClient watchClient, RoutingFileContext.RoutingFileListener listener)
-