Interface AgentConnectionTrackingService
- All Known Implementing Classes:
AgentConnectionTrackingServiceImpl
public interface AgentConnectionTrackingService
Tracks active connections and heartbeats coming from agents actively executing a job.
- Since:
- 4.0.0
-
Method Summary
Modifier and TypeMethodDescriptionlong
Get the count of locally connected agents.void
notifyDisconnected
(String streamId, String claimedJobId) Handle a disconnection.void
notifyHeartbeat
(String streamId, String claimedJobId) Handle a heartbeat.
-
Method Details
-
notifyHeartbeat
Handle a heartbeat.- Parameters:
streamId
- the unique id of the connectionclaimedJobId
- the job id claimed by the agent
-
notifyDisconnected
Handle a disconnection.- Parameters:
streamId
- the unique id of the connectionclaimedJobId
- the job id claimed by the agent
-
getConnectedAgentsCount
long getConnectedAgentsCount()Get the count of locally connected agents.- Returns:
- the number of agents connected.
-