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 TypeMethodDescriptionint
checkIn
(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
-
Method Details
-
checkIn
@PostMapping("/checkIn") int checkIn(@RequestBody AgentDescriptionDto agentDescriptionDto) throws ServiceException Register an agent to the ActiveMonitor server.- Parameters:
agentDescriptionDto
- theinformation
about 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
metadata
about the unregistered agent - Throws:
ServiceException
- when any exception occurs
-
getAvailableAgents
Get the available ActiveMonitor agents.- Returns:
- a collection of
RegisteredAgentDescriptionDto
-