Class OnmsMonitoringLocation
- java.lang.Object
-
- org.opennms.netmgt.model.monitoringLocations.OnmsMonitoringLocation
-
- All Implemented Interfaces:
Serializable
@Entity public class OnmsMonitoringLocation extends Object implements Serializable
This element contains the name of the location, the name of the monitoring area (used to aggregate locations, example: Area San Francisco, location name "SFO" which becomes SFO-1 or SFO-BuildingA, etc.) Additionally, a geolocation can be provided (an address or other identifying location that can be looked up with a geolocation API), as well as coordinates (latitude,longitude). Finally, a priority can be assigned to the location, for purposes of sorting (1 = highest, 100 = lowest).
The polling package name is used to associate with a polling configuration found in the polling-configuration.xml file.
The collection package name is used to associate with a collection configuration found in the collectd-configuration.xml file.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description OnmsMonitoringLocation()OnmsMonitoringLocation(String locationName, String monitoringArea)This constructor is only used during unit testing.OnmsMonitoringLocation(String locationName, String monitoringArea, String geolocation, Float latitude, Float longitude, Long priority, String... tags)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetGeolocation()FloatgetLatitude()The latitude coordinate of this node.StringgetLocationName()FloatgetLongitude()The longitude coordinate of this node.StringgetMonitoringArea()LonggetPriority()List<String>getTags()inthashCode()voidsetGeolocation(String geolocation)voidsetLatitude(Float latitude)voidsetLocationName(String locationName)voidsetLongitude(Float longitude)voidsetMonitoringArea(String monitoringArea)voidsetPriority(Long priority)voidsetTags(List<String> tags)StringtoString()
-
-
-
Method Detail
-
getLocationName
public String getLocationName()
-
setLocationName
public void setLocationName(String locationName)
-
getMonitoringArea
public String getMonitoringArea()
-
setMonitoringArea
public void setMonitoringArea(String monitoringArea)
-
getGeolocation
public String getGeolocation()
-
setGeolocation
public void setGeolocation(String geolocation)
-
getLongitude
public Float getLongitude()
The longitude coordinate of this node.- Returns:
-
setLongitude
public void setLongitude(Float longitude)
-
getLatitude
public Float getLatitude()
The latitude coordinate of this node.- Returns:
-
setLatitude
public void setLatitude(Float latitude)
-
getPriority
public Long getPriority()
-
setPriority
public void setPriority(Long priority)
-
-