Package com.qfs.snl.dtos
Class AgentDescriptionDto
java.lang.Object
com.qfs.snl.dtos.AgentDescriptionDto
- All Implemented Interfaces:
IAgentDescription
,Serializable
- Direct Known Subclasses:
RegisteredAgentDescriptionDto
Data transfer object for
IAgentDescription
.- Author:
- ActiveViam
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionEmpty constructor.AgentDescriptionDto
(String agentName, String agentType, AgentConnectionDetailsDto connectionDetails, List<String> sites) Constructor.AgentDescriptionDto
(String agentName, String agentType, String agentUrl, String liveUrl, List<String> sites) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Get the name of the ActiveMonitor agent.Get the type of the ActiveMonitor agent.Get theconnection details
about the agent.getSites()
Get the available sites for an agent.int
hashCode()
setAgentConnectionDetails
(AgentConnectionDetailsDto agentConnectionDetails) Sets agent connection details.setAgentName
(String agentName) Set the name of the agent.setAgentType
(String agentType) Set the type of the agent.setConnectionDetails
(AgentConnectionDetailsDto connectionDetails) Set the connection details about the agent.Sets the sites that the agent observes.
-
Constructor Details
-
AgentDescriptionDto
public AgentDescriptionDto()Empty constructor. -
AgentDescriptionDto
public AgentDescriptionDto(String agentName, String agentType, AgentConnectionDetailsDto connectionDetails, List<String> sites) Constructor.- Parameters:
agentName
- the name of the agentagentType
- the type of the agentconnectionDetails
- theconnection details
about the agentsites
- the list of sites available on this agent
-
AgentDescriptionDto
public AgentDescriptionDto(String agentName, String agentType, String agentUrl, String liveUrl, List<String> sites) Constructor.- Parameters:
agentName
- the name of the agentagentType
- the type of the agentagentUrl
- the url of the agentliveUrl
- the url of live to use to query data on this agentsites
- the list of sites available on this agent
-
-
Method Details
-
getAgentName
Description copied from interface:IAgentDescription
Get the name of the ActiveMonitor agent.- Specified by:
getAgentName
in interfaceIAgentDescription
- Returns:
- the name of the ActiveMonitor agent
-
getAgentType
Description copied from interface:IAgentDescription
Get the type of the ActiveMonitor agent.- Specified by:
getAgentType
in interfaceIAgentDescription
- Returns:
- the type of the ActiveMonitor agent
-
getConnectionDetails
Description copied from interface:IAgentDescription
Get theconnection details
about the agent.- Specified by:
getConnectionDetails
in interfaceIAgentDescription
- Returns:
- the agent's connection details
-
setAgentName
Set the name of the agent.- Parameters:
agentName
- the name to set- Returns:
- this
-
setAgentType
Set the type of the agent.- Parameters:
agentType
- the type to set- Returns:
- this
-
setConnectionDetails
Set the connection details about the agent.- Parameters:
connectionDetails
- the connection details to set- Returns:
- this
-
setSites
Sets the sites that the agent observes.- Parameters:
sites
- list of sites- Returns:
- this
-
setAgentConnectionDetails
public AgentDescriptionDto setAgentConnectionDetails(AgentConnectionDetailsDto agentConnectionDetails) Sets agent connection details.- Parameters:
agentConnectionDetails
- details- Returns:
- this
-
hashCode
public int hashCode() -
equals
-
getSites
Description copied from interface:IAgentDescription
Get the available sites for an agent.- Specified by:
getSites
in interfaceIAgentDescription
- Returns:
- the sites of the agent
-