CoordWorkerHeartbeatEntity
@Entity @Table( name = "builder_coord_worker", uniqueConstraints = @UniqueConstraint( name = "uk_builder_coord_worker", columnNames = {"worker_id"})) public class CoordWorkerHeartbeatEntity
源码Source
io/agentscope/builder/web/persistence/jpa/CoordWorkerHeartbeatEntity.java:28–83Coord 工作进程心跳 Entity,在多次调用之间保存和恢复会话与记忆数据。位于 io.agentscope.builder.web.persistence.jpa 包。核心成员包括 getRowId、setRowId、getWorkerId、setWorkerId、getLastSeenAt、setLastSeenAt。
Last-seen heartbeat for environment workers.
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public Long getRowId() | 获取 `getRowId`。 Returns the row id. |
public void setRowId(Long rowId) | 设置 `setRowId`。 Sets the row id. |
public String getWorkerId() | 获取工作进程标识。 Returns the worker id. |
public void setWorkerId(String workerId) | 设置工作进程标识。 Sets the worker id. |
public long getLastSeenAt() | 获取 `getLastSeenAt`。 Returns the last seen at. |
public void setLastSeenAt(long lastSeenAt) | 设置 `setLastSeenAt`。 Sets the last seen at. |
public String getCapabilitiesJson() | 获取能力 JSON。 Returns the capabilities json. |
public void setCapabilitiesJson(String capabilitiesJson) | 设置能力 JSON。 Sets the capabilities json. |
方法详情Method Detail
getRowId
public Long getRowId()
获取 getRowId。
Returns the row id.
Long返回数值结果。Returns a numeric result.
源码Source
io/agentscope/builder/web/persistence/jpa/CoordWorkerHeartbeatEntity.java:52–54setRowId
public void setRowId(Long rowId)
设置 setRowId。
Sets the row id.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
rowId | Long | row 标识(类型 `Long`)。The row id. |
源码Source
io/agentscope/builder/web/persistence/jpa/CoordWorkerHeartbeatEntity.java:56–58getWorkerId
public String getWorkerId()
获取工作进程标识。
Returns the worker id.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/builder/web/persistence/jpa/CoordWorkerHeartbeatEntity.java:60–62setWorkerId
public void setWorkerId(String workerId)
设置工作进程标识。
Sets the worker id.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
workerId | String | 工作进程标识(类型 `String`)。The worker id. |
源码Source
io/agentscope/builder/web/persistence/jpa/CoordWorkerHeartbeatEntity.java:64–66getLastSeenAt
public long getLastSeenAt()
获取 getLastSeenAt。
Returns the last seen at.
long返回数值结果。Returns a numeric result.
源码Source
io/agentscope/builder/web/persistence/jpa/CoordWorkerHeartbeatEntity.java:68–70setLastSeenAt
public void setLastSeenAt(long lastSeenAt)
设置 setLastSeenAt。
Sets the last seen at.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
lastSeenAt | long | 最后 Seen At(类型 `long`)。The last seen at. |
源码Source
io/agentscope/builder/web/persistence/jpa/CoordWorkerHeartbeatEntity.java:72–74getCapabilitiesJson
public String getCapabilitiesJson()
获取能力 JSON。
Returns the capabilities json.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/builder/web/persistence/jpa/CoordWorkerHeartbeatEntity.java:76–78setCapabilitiesJson
public void setCapabilitiesJson(String capabilitiesJson)
设置能力 JSON。
Sets the capabilities json.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
capabilitiesJson | String | 能力 JSON(类型 `String`)。The capabilities json. |
源码Source
io/agentscope/builder/web/persistence/jpa/CoordWorkerHeartbeatEntity.java:80–82