Class PostgresRemoteSnapshotClient
java.lang.Object
io.agentscope.extensions.postgresql.snapshot.PostgresRemoteSnapshotClient
- All Implemented Interfaces:
io.agentscope.harness.agent.sandbox.snapshot.RemoteSnapshotClient
public class PostgresRemoteSnapshotClient
extends Object
implements io.agentscope.harness.agent.sandbox.snapshot.RemoteSnapshotClient
RemoteSnapshotClient backed by a PostgreSQL BYTEA column.
Stores sandbox workspace tar archives in a database table with columns
(snapshot_id VARCHAR PK, data BYTEA, created_at TIMESTAMP).
The table is auto-created if it does not exist when initializeSchema is true.
-
Constructor Summary
ConstructorsConstructorDescriptionPostgresRemoteSnapshotClient(DataSource dataSource, boolean initializeSchema) PostgresRemoteSnapshotClient(DataSource dataSource, String tableName, boolean initializeSchema) -
Method Summary
-
Constructor Details
-
PostgresRemoteSnapshotClient
-
PostgresRemoteSnapshotClient
public PostgresRemoteSnapshotClient(DataSource dataSource, String tableName, boolean initializeSchema)
-
-
Method Details
-
upload
- Specified by:
uploadin interfaceio.agentscope.harness.agent.sandbox.snapshot.RemoteSnapshotClient- Throws:
Exception
-
download
- Specified by:
downloadin interfaceio.agentscope.harness.agent.sandbox.snapshot.RemoteSnapshotClient- Throws:
Exception
-
exists
- Specified by:
existsin interfaceio.agentscope.harness.agent.sandbox.snapshot.RemoteSnapshotClient- Throws:
Exception
-