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
io/agentscope/builder/web/persistence/jpa/CoordWorkItemEntity.java:28–158Coord 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_QUEUEDstaticfinal | String | 状态已排队字段。 The STATUS QUEUED field. |
STATUS_STARTINGstaticfinal | String | 状态 STARTING字段。 The STATUS STARTING field. |
STATUS_ACTIVEstaticfinal | String | 状态 ACTIVE字段。 The STATUS ACTIVE field. |
STATUS_STOPPINGstaticfinal | String | 状态 STOPPING字段。 The STATUS STOPPING field. |
STATUS_STOPPEDstaticfinal | String | 状态已停止字段。 The STATUS STOPPED field. |
方法摘要Method Summary
字段详情Field Detail
STATUS_QUEUED
public static final String STATUS_QUEUED
状态已排队字段。声明为 public static final String STATUS_QUEUED。
The STATUS QUEUED field.
io/agentscope/builder/web/persistence/jpa/CoordWorkItemEntity.java:41STATUS_STARTING
public static final String STATUS_STARTING
状态 STARTING字段。声明为 public static final String STATUS_STARTING。
The STATUS STARTING field.
io/agentscope/builder/web/persistence/jpa/CoordWorkItemEntity.java:42STATUS_ACTIVE
public static final String STATUS_ACTIVE
状态 ACTIVE字段。声明为 public static final String STATUS_ACTIVE。
The STATUS ACTIVE field.
io/agentscope/builder/web/persistence/jpa/CoordWorkItemEntity.java:43STATUS_STOPPING
public static final String STATUS_STOPPING
状态 STOPPING字段。声明为 public static final String STATUS_STOPPING。
The STATUS STOPPING field.
io/agentscope/builder/web/persistence/jpa/CoordWorkItemEntity.java:44STATUS_STOPPED
public static final String STATUS_STOPPED
状态已停止字段。声明为 public static final String STATUS_STOPPED。
The STATUS STOPPED field.
io/agentscope/builder/web/persistence/jpa/CoordWorkItemEntity.java:45方法详情Method Detail
getRowId
public Long getRowId()
获取 getRowId。
Returns the row id.
Longio/agentscope/builder/web/persistence/jpa/CoordWorkItemEntity.java:79–81setRowId
public void setRowId(Long rowId)
设置 setRowId。
Sets the row id.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
rowId | Long | row 标识(类型 `Long`)。The row id. |
io/agentscope/builder/web/persistence/jpa/CoordWorkItemEntity.java:83–85getLeaseId
public String getLeaseId()
获取 getLeaseId。
Returns the lease id.
Stringio/agentscope/builder/web/persistence/jpa/CoordWorkItemEntity.java:87–89setLeaseId
public void setLeaseId(String leaseId)
设置 setLeaseId。
Sets the lease id.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
leaseId | String | lease 标识(类型 `String`)。The lease id. |
io/agentscope/builder/web/persistence/jpa/CoordWorkItemEntity.java:91–93getSessionId
public String getSessionId()
获取会话标识。
Returns the session id.
Stringio/agentscope/builder/web/persistence/jpa/CoordWorkItemEntity.java:95–97setSessionId
public void setSessionId(String sessionId)
设置会话标识。
Sets the session id.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
sessionId | String | 会话标识(类型 `String`)。The session id. |
io/agentscope/builder/web/persistence/jpa/CoordWorkItemEntity.java:99–101getEnvironmentId
public String getEnvironmentId()
获取环境标识。
Returns the environment id.
Stringio/agentscope/builder/web/persistence/jpa/CoordWorkItemEntity.java:103–105setEnvironmentId
public void setEnvironmentId(String environmentId)
设置环境标识。
Sets the environment id.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
environmentId | String | 环境标识(类型 `String`)。The environment id. |
io/agentscope/builder/web/persistence/jpa/CoordWorkItemEntity.java:107–109getOwnerId
public String getOwnerId()
获取所有者标识。
Returns the owner id.
Stringio/agentscope/builder/web/persistence/jpa/CoordWorkItemEntity.java:111–113setOwnerId
public void setOwnerId(String ownerId)
设置所有者标识。
Sets the owner id.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
ownerId | String | 所有者标识(类型 `String`)。The owner id. |
io/agentscope/builder/web/persistence/jpa/CoordWorkItemEntity.java:115–117getStatus
public String getStatus()
获取状态。
Returns the status.
Stringio/agentscope/builder/web/persistence/jpa/CoordWorkItemEntity.java:119–121setStatus
public void setStatus(String status)
设置状态。
Sets the status.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
status | String | 状态(类型 `String`)。The status. |
io/agentscope/builder/web/persistence/jpa/CoordWorkItemEntity.java:123–125getClaimedBy
public String getClaimedBy()
获取 getClaimedBy。
Returns the claimed by.
Stringio/agentscope/builder/web/persistence/jpa/CoordWorkItemEntity.java:127–129setClaimedBy
public void setClaimedBy(String claimedBy)
设置 setClaimedBy。
Sets the claimed by.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
claimedBy | String | claimed 通过(类型 `String`)。The claimed by. |
io/agentscope/builder/web/persistence/jpa/CoordWorkItemEntity.java:131–133getWorkDir
public String getWorkDir()
获取 getWorkDir。
Returns the work dir.
Stringio/agentscope/builder/web/persistence/jpa/CoordWorkItemEntity.java:135–137setWorkDir
public void setWorkDir(String workDir)
设置 setWorkDir。
Sets the work dir.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
workDir | String | work 目录(类型 `String`)。The work dir. |
io/agentscope/builder/web/persistence/jpa/CoordWorkItemEntity.java:139–141getCreatedAt
public long getCreatedAt()
获取已创建 At。
Returns the created at.
longio/agentscope/builder/web/persistence/jpa/CoordWorkItemEntity.java:143–145setCreatedAt
public void setCreatedAt(long createdAt)
设置已创建 At。
Sets the created at.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
createdAt | long | 已创建 At(类型 `long`)。The created at. |
io/agentscope/builder/web/persistence/jpa/CoordWorkItemEntity.java:147–149getUpdatedAt
public long getUpdatedAt()
获取已更新 At。
Returns the updated at.
longio/agentscope/builder/web/persistence/jpa/CoordWorkItemEntity.java:151–153setUpdatedAt
public void setUpdatedAt(long updatedAt)
设置已更新 At。
Sets the updated at.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
updatedAt | long | 已更新 At(类型 `long`)。The updated at. |
io/agentscope/builder/web/persistence/jpa/CoordWorkItemEntity.java:155–157