Package com.qfs.snl.rs
Interface IAgentRestService
- All Known Implementing Classes:
AgentRestServiceController
@RequestMapping("/activeviam/sentinel/rest/v8/agents")
public interface IAgentRestService
The REST
IAgentService Controller.- Author:
- ActiveViam
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionintcheckIn(AgentDescriptionDto agentDescriptionDto) Register an agent to the ActiveMonitor server.checkOut(int id) Unregister an agent from the ActiveMonitor server.Collection<? extends IRegisteredAgentDescription> Get the available ActiveMonitor agents.
-
Field Details
-
NAMESPACE
The namespace of the service in the REST API.- See Also:
-
CHECK_IN_PATH
The path of the checkIn method.- See Also:
-
CHECK_OUT_PATH
The path of the checkOut method.- See Also:
-
-
Method Details
-
checkIn
@PostMapping("/checkIn") int checkIn(@RequestBody AgentDescriptionDto agentDescriptionDto) throws ServiceException Register an agent to the ActiveMonitor server.- Parameters:
agentDescriptionDto- theinformationabout the agent that checks in.- Returns:
- the identifier of the agent within the ActiveMonitor server (int)
- Throws:
ServiceException- when any exception occurs
-
checkOut
@PostMapping("/checkOut") IRegisteredAgentDescription checkOut(@RequestBody int id) throws ServiceException Unregister an agent from the ActiveMonitor server.- Parameters:
id- the identifier of the client to unregister- Returns:
- the
metadataabout the unregistered agent - Throws:
ServiceException- when any exception occurs
-
getAvailableAgents
Get the available ActiveMonitor agents.- Returns:
- a collection of
RegisteredAgentDescriptionDto
-