Class MongoConstants

java.lang.Object
io.agentscope.extensions.mongodb.MongoConstants

public final class MongoConstants extends Object
Default database and collection names for MongoDB distributed store components.

Centralised here so that all four component classes reference the same source of truth, preventing drift when the same collection name is referenced from multiple construction paths.

  • Field Details

    • DEFAULT_DATABASE

      public static final String DEFAULT_DATABASE
      Default database name used when no explicit name is supplied.
      See Also:
    • SESSIONS_COLLECTION

      public static final String SESSIONS_COLLECTION
      Collection holding agent session state documents (MongoAgentStateStore).
      See Also:
    • BASE_STORE_COLLECTION

      public static final String BASE_STORE_COLLECTION
      Collection holding workspace filesystem key-value items (MongoBaseStore).
      See Also:
    • SNAPSHOTS_COLLECTION

      public static final String SNAPSHOTS_COLLECTION
      GridFS bucket (and legacy single-document collection) holding sandbox snapshots (MongoRemoteSnapshotClient).
      See Also:
    • SANDBOX_LOCKS_COLLECTION

      public static final String SANDBOX_LOCKS_COLLECTION
      Collection holding sandbox execution lease locks (MongoSandboxExecutionGuard).
      See Also: