AS AgentScopeAPI 手册 / API Reference

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–83

Coord 工作进程心跳 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.

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

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/CoordWorkerHeartbeatEntity.java:56–58

getWorkerId

public String getWorkerId()

获取工作进程标识。

Returns the worker id.

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

setWorkerId

public void setWorkerId(String workerId)

设置工作进程标识。

Sets the worker id.

参数Parameters
名称Name类型Type说明Description
workerIdString工作进程标识(类型 `String`)。The worker id.
源码Source io/agentscope/builder/web/persistence/jpa/CoordWorkerHeartbeatEntity.java:64–66

getLastSeenAt

public long getLastSeenAt()

获取 getLastSeenAt。

Returns the last seen at.

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

setLastSeenAt

public void setLastSeenAt(long lastSeenAt)

设置 setLastSeenAt。

Sets the last seen at.

参数Parameters
名称Name类型Type说明Description
lastSeenAtlong最后 Seen At(类型 `long`)。The last seen at.
源码Source io/agentscope/builder/web/persistence/jpa/CoordWorkerHeartbeatEntity.java:72–74

getCapabilitiesJson

public String getCapabilitiesJson()

获取能力 JSON。

Returns the capabilities json.

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

setCapabilitiesJson

public void setCapabilitiesJson(String capabilitiesJson)

设置能力 JSON。

Sets the capabilities json.

参数Parameters
名称Name类型Type说明Description
capabilitiesJsonString能力 JSON(类型 `String`)。The capabilities json.
源码Source io/agentscope/builder/web/persistence/jpa/CoordWorkerHeartbeatEntity.java:80–82
基于官方固定版本源码静态生成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.