AS AgentScopeAPI 手册 / API Reference

CoordWorkItemEntity

@Entity @Table( name = "builder_coord_work", uniqueConstraints = @UniqueConstraint( name = "uk_builder_coord_work_lease", columnNames = {"lease_id"}), indexes = { @Index(name = "ix_builder_coord_work_status_env", columnList = "status,environment_id"), @Index(name = "ix_builder_coord_work_session", columnList = "session_id") }) public class CoordWorkItemEntity
源码Source io/agentscope/builder/web/persistence/jpa/CoordWorkItemEntity.java:28–158

Coord Work 条目 Entity,在多次调用之间保存和恢复会话与记忆数据。位于 io.agentscope.builder.web.persistence.jpa 包。核心成员包括 getRowId、setRowId、getLeaseId、setLeaseId、getSessionId、setSessionId。

Durable hands work-queue rows + sandbox-ready metadata.

字段摘要Field Summary

字段Field类型Type说明Description
STATUS_QUEUED
staticfinal
String
状态已排队字段。
The STATUS QUEUED field.
STATUS_STARTING
staticfinal
String
状态 STARTING字段。
The STATUS STARTING field.
STATUS_ACTIVE
staticfinal
String
状态 ACTIVE字段。
The STATUS ACTIVE field.
STATUS_STOPPING
staticfinal
String
状态 STOPPING字段。
The STATUS STOPPING field.
STATUS_STOPPED
staticfinal
String
状态已停止字段。
The STATUS STOPPED field.

方法摘要Method Summary

方法Method说明Description
public Long getRowId()
获取 `getRowId`。
Returns the row id.
public void setRowId(Long rowId)
设置 `setRowId`。
Sets the row id.
public String getLeaseId()
获取 `getLeaseId`。
Returns the lease id.
public void setLeaseId(String leaseId)
设置 `setLeaseId`。
Sets the lease id.
public String getSessionId()
获取会话标识。
Returns the session id.
public void setSessionId(String sessionId)
设置会话标识。
Sets the session id.
public String getEnvironmentId()
获取环境标识。
Returns the environment id.
public void setEnvironmentId(String environmentId)
设置环境标识。
Sets the environment id.
public String getOwnerId()
获取所有者标识。
Returns the owner id.
public void setOwnerId(String ownerId)
设置所有者标识。
Sets the owner id.
public String getStatus()
获取状态。
Returns the status.
public void setStatus(String status)
设置状态。
Sets the status.
public String getClaimedBy()
获取 `getClaimedBy`。
Returns the claimed by.
public void setClaimedBy(String claimedBy)
设置 `setClaimedBy`。
Sets the claimed by.
public String getWorkDir()
获取 `getWorkDir`。
Returns the work dir.
public void setWorkDir(String workDir)
设置 `setWorkDir`。
Sets the work dir.
public long getCreatedAt()
获取已创建 At。
Returns the created at.
public void setCreatedAt(long createdAt)
设置已创建 At。
Sets the created at.
public long getUpdatedAt()
获取已更新 At。
Returns the updated at.
public void setUpdatedAt(long updatedAt)
设置已更新 At。
Sets the updated at.

字段详情Field Detail

STATUS_QUEUED

public static final String STATUS_QUEUED
staticfinal

状态已排队字段。声明为 public static final String STATUS_QUEUED。

The STATUS QUEUED field.

源码Source io/agentscope/builder/web/persistence/jpa/CoordWorkItemEntity.java:41

STATUS_STARTING

public static final String STATUS_STARTING
staticfinal

状态 STARTING字段。声明为 public static final String STATUS_STARTING。

The STATUS STARTING field.

源码Source io/agentscope/builder/web/persistence/jpa/CoordWorkItemEntity.java:42

STATUS_ACTIVE

public static final String STATUS_ACTIVE
staticfinal

状态 ACTIVE字段。声明为 public static final String STATUS_ACTIVE。

The STATUS ACTIVE field.

源码Source io/agentscope/builder/web/persistence/jpa/CoordWorkItemEntity.java:43

STATUS_STOPPING

public static final String STATUS_STOPPING
staticfinal

状态 STOPPING字段。声明为 public static final String STATUS_STOPPING。

The STATUS STOPPING field.

源码Source io/agentscope/builder/web/persistence/jpa/CoordWorkItemEntity.java:44

STATUS_STOPPED

public static final String STATUS_STOPPED
staticfinal

状态已停止字段。声明为 public static final String STATUS_STOPPED。

The STATUS STOPPED field.

源码Source io/agentscope/builder/web/persistence/jpa/CoordWorkItemEntity.java:45

方法详情Method Detail

getRowId

public Long getRowId()

获取 getRowId。

Returns the row id.

返回Returns Long
返回数值结果。Returns a numeric result.
源码Source io/agentscope/builder/web/persistence/jpa/CoordWorkItemEntity.java:79–81

setRowId

public void setRowId(Long rowId)

设置 setRowId。

Sets the row id.

参数Parameters
名称Name类型Type说明Description
rowIdLongrow 标识(类型 `Long`)。The row id.
源码Source io/agentscope/builder/web/persistence/jpa/CoordWorkItemEntity.java:83–85

getLeaseId

public String getLeaseId()

获取 getLeaseId。

Returns the lease id.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/builder/web/persistence/jpa/CoordWorkItemEntity.java:87–89

setLeaseId

public void setLeaseId(String leaseId)

设置 setLeaseId。

Sets the lease id.

参数Parameters
名称Name类型Type说明Description
leaseIdStringlease 标识(类型 `String`)。The lease id.
源码Source io/agentscope/builder/web/persistence/jpa/CoordWorkItemEntity.java:91–93

getSessionId

public String getSessionId()

获取会话标识。

Returns the session id.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/builder/web/persistence/jpa/CoordWorkItemEntity.java:95–97

setSessionId

public void setSessionId(String sessionId)

设置会话标识。

Sets the session id.

参数Parameters
名称Name类型Type说明Description
sessionIdString会话标识(类型 `String`)。The session id.
源码Source io/agentscope/builder/web/persistence/jpa/CoordWorkItemEntity.java:99–101

getEnvironmentId

public String getEnvironmentId()

获取环境标识。

Returns the environment id.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/builder/web/persistence/jpa/CoordWorkItemEntity.java:103–105

setEnvironmentId

public void setEnvironmentId(String environmentId)

设置环境标识。

Sets the environment id.

参数Parameters
名称Name类型Type说明Description
environmentIdString环境标识(类型 `String`)。The environment id.
源码Source io/agentscope/builder/web/persistence/jpa/CoordWorkItemEntity.java:107–109

getOwnerId

public String getOwnerId()

获取所有者标识。

Returns the owner id.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/builder/web/persistence/jpa/CoordWorkItemEntity.java:111–113

setOwnerId

public void setOwnerId(String ownerId)

设置所有者标识。

Sets the owner id.

参数Parameters
名称Name类型Type说明Description
ownerIdString所有者标识(类型 `String`)。The owner id.
源码Source io/agentscope/builder/web/persistence/jpa/CoordWorkItemEntity.java:115–117

getStatus

public String getStatus()

获取状态。

Returns the status.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/builder/web/persistence/jpa/CoordWorkItemEntity.java:119–121

setStatus

public void setStatus(String status)

设置状态。

Sets the status.

参数Parameters
名称Name类型Type说明Description
statusString状态(类型 `String`)。The status.
源码Source io/agentscope/builder/web/persistence/jpa/CoordWorkItemEntity.java:123–125

getClaimedBy

public String getClaimedBy()

获取 getClaimedBy。

Returns the claimed by.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/builder/web/persistence/jpa/CoordWorkItemEntity.java:127–129

setClaimedBy

public void setClaimedBy(String claimedBy)

设置 setClaimedBy。

Sets the claimed by.

参数Parameters
名称Name类型Type说明Description
claimedByStringclaimed 通过(类型 `String`)。The claimed by.
源码Source io/agentscope/builder/web/persistence/jpa/CoordWorkItemEntity.java:131–133

getWorkDir

public String getWorkDir()

获取 getWorkDir。

Returns the work dir.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/builder/web/persistence/jpa/CoordWorkItemEntity.java:135–137

setWorkDir

public void setWorkDir(String workDir)

设置 setWorkDir。

Sets the work dir.

参数Parameters
名称Name类型Type说明Description
workDirStringwork 目录(类型 `String`)。The work dir.
源码Source io/agentscope/builder/web/persistence/jpa/CoordWorkItemEntity.java:139–141

getCreatedAt

public long getCreatedAt()

获取已创建 At。

Returns the created at.

返回Returns long
返回数值结果。Returns a numeric result.
源码Source io/agentscope/builder/web/persistence/jpa/CoordWorkItemEntity.java:143–145

setCreatedAt

public void setCreatedAt(long createdAt)

设置已创建 At。

Sets the created at.

参数Parameters
名称Name类型Type说明Description
createdAtlong已创建 At(类型 `long`)。The created at.
源码Source io/agentscope/builder/web/persistence/jpa/CoordWorkItemEntity.java:147–149

getUpdatedAt

public long getUpdatedAt()

获取已更新 At。

Returns the updated at.

返回Returns long
返回数值结果。Returns a numeric result.
源码Source io/agentscope/builder/web/persistence/jpa/CoordWorkItemEntity.java:151–153

setUpdatedAt

public void setUpdatedAt(long updatedAt)

设置已更新 At。

Sets the updated at.

参数Parameters
名称Name类型Type说明Description
updatedAtlong已更新 At(类型 `long`)。The updated at.
源码Source io/agentscope/builder/web/persistence/jpa/CoordWorkItemEntity.java:155–157
基于官方固定版本源码静态生成Generated from pinned official sources · Python 2.0.11 · Java 2.0.4
签名与文档为静态抽取;如有疑问请以源码为准。Signatures and docs are extracted statically; verify against the source when in doubt.