Class OutboxStagingFileSystem
java.lang.Object
at.aimon.memory.postgres.internal.OutboxStagingFileSystem
- All Implemented Interfaces:
at.aimon.core.filesystem.VirtualFileSystem,AutoCloseable
public final class OutboxStagingFileSystem
extends Object
implements at.aimon.core.filesystem.VirtualFileSystem
Internal in-memory
VirtualFileSystem used by
KnowledgeStoreOutboxRelay to ferry outbox payloads into
KnowledgeStore.reindex(at.aimon.core.knowledge.KnowledgeScope, at.aimon.core.knowledge.KnowledgeSource, at.aimon.core.knowledge.IndexOptions) calls.
This is a copy of the design implemented by
at.aimon.core.memory.index.StagingFileSystem (which is
package-private and therefore not reusable across modules). Only the subset
of operations actually invoked by
KeywordKnowledgeStore during indexing is
implemented (write-string via put(java.lang.String, java.lang.String), read, list, listRecursive,
isDirectory). Every other method throws
UnsupportedOperationException on purpose — this is not a
general-purpose VFS, it is private plumbing.
Each relay uses a fresh instance per row so concurrent reindex calls do not
trample each other. The staging directory layout matches
KnowledgeStoreObservationIndex: /observations/{subjectKey}/{localId}.txt.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidvoidbooleanat.aimon.core.filesystem.FileMetadatagetMetadata(String path) at.aimon.core.filesystem.BackendStatusvoidbooleanisDirectory(String path) listRecursive(String directory) voidopenInputStream(String path) openOutputStream(String path) voidStages a UTF-8 encoded payload at the given path.voidwrite(String path, InputStream content, long contentLength) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface at.aimon.core.filesystem.VirtualFileSystem
createDirectory, deleteRecursive, getUsageSummary, search, write, write
-
Constructor Details
-
OutboxStagingFileSystem
public OutboxStagingFileSystem()
-
-
Method Details
-
put
Stages a UTF-8 encoded payload at the given path.- Parameters:
path- absolute VFS path (must not be null)content- payload (must not be null)
-
read
- Specified by:
readin interfaceat.aimon.core.filesystem.VirtualFileSystem
-
exists
- Specified by:
existsin interfaceat.aimon.core.filesystem.VirtualFileSystem
-
isDirectory
- Specified by:
isDirectoryin interfaceat.aimon.core.filesystem.VirtualFileSystem
-
list
- Specified by:
listin interfaceat.aimon.core.filesystem.VirtualFileSystem
-
listRecursive
- Specified by:
listRecursivein interfaceat.aimon.core.filesystem.VirtualFileSystem
-
openInputStream
- Specified by:
openInputStreamin interfaceat.aimon.core.filesystem.VirtualFileSystem
-
getWorkingDirectory
- Specified by:
getWorkingDirectoryin interfaceat.aimon.core.filesystem.VirtualFileSystem
-
initialize
public void initialize()- Specified by:
initializein interfaceat.aimon.core.filesystem.VirtualFileSystem
-
getStatus
public at.aimon.core.filesystem.BackendStatus getStatus()- Specified by:
getStatusin interfaceat.aimon.core.filesystem.VirtualFileSystem
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceat.aimon.core.filesystem.VirtualFileSystem
-
write
- Specified by:
writein interfaceat.aimon.core.filesystem.VirtualFileSystem
-
delete
- Specified by:
deletein interfaceat.aimon.core.filesystem.VirtualFileSystem
-
getMetadata
- Specified by:
getMetadatain interfaceat.aimon.core.filesystem.VirtualFileSystem
-
copy
- Specified by:
copyin interfaceat.aimon.core.filesystem.VirtualFileSystem
-
move
- Specified by:
movein interfaceat.aimon.core.filesystem.VirtualFileSystem
-
openOutputStream
- Specified by:
openOutputStreamin interfaceat.aimon.core.filesystem.VirtualFileSystem
-