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 TypeMethodDescriptionbooleanGet the name of the ActiveMonitor agent.Get the type of the ActiveMonitor agent.Get theconnection detailsabout the agent.getSites()Get the available sites for an agent.inthashCode()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 detailsabout 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:IAgentDescriptionGet the name of the ActiveMonitor agent.- Specified by:
getAgentNamein interfaceIAgentDescription- Returns:
- the name of the ActiveMonitor agent
-
getAgentType
Description copied from interface:IAgentDescriptionGet the type of the ActiveMonitor agent.- Specified by:
getAgentTypein interfaceIAgentDescription- Returns:
- the type of the ActiveMonitor agent
-
getConnectionDetails
Description copied from interface:IAgentDescriptionGet theconnection detailsabout the agent.- Specified by:
getConnectionDetailsin 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:IAgentDescriptionGet the available sites for an agent.- Specified by:
getSitesin interfaceIAgentDescription- Returns:
- the sites of the agent
-