Class LocationDef
- java.lang.Object
-
- org.opennms.upgrade.implementations.monitoringLocations16.LocationDef
-
- All Implemented Interfaces:
java.io.Serializable
public class LocationDef extends java.lang.Object implements java.io.SerializableThis 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 LocationDef()LocationDef(java.lang.String locationName, java.lang.String monitoringArea, java.lang.String pollingPackageName, java.lang.String collectionPackageName, java.lang.String geolocation, java.lang.String coordinates, java.lang.Long priority, java.lang.String... tags)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.StringgetCoordinates()java.lang.StringgetGeolocation()java.lang.StringgetLocationName()java.lang.StringgetMonitoringArea()java.lang.LonggetPriority()java.util.List<Tag>getTags()inthashCode()voidsetCoordinates(java.lang.String coordinates)voidsetGeolocation(java.lang.String geolocation)voidsetLocationName(java.lang.String locationName)voidsetMonitoringArea(java.lang.String monitoringArea)voidsetPriority(java.lang.Long priority)voidsetTags(java.util.List<Tag> tags)java.lang.StringtoString()
-
-
-
Constructor Detail
-
LocationDef
public LocationDef()
-
LocationDef
public LocationDef(java.lang.String locationName, java.lang.String monitoringArea, java.lang.String pollingPackageName, java.lang.String collectionPackageName, java.lang.String geolocation, java.lang.String coordinates, java.lang.Long priority, java.lang.String... tags)
-
-
Method Detail
-
getLocationName
public java.lang.String getLocationName()
-
setLocationName
public void setLocationName(java.lang.String locationName)
-
getMonitoringArea
public java.lang.String getMonitoringArea()
-
setMonitoringArea
public void setMonitoringArea(java.lang.String monitoringArea)
-
getGeolocation
public java.lang.String getGeolocation()
-
setGeolocation
public void setGeolocation(java.lang.String geolocation)
-
getCoordinates
public java.lang.String getCoordinates()
-
setCoordinates
public void setCoordinates(java.lang.String coordinates)
-
getPriority
public java.lang.Long getPriority()
-
setPriority
public void setPriority(java.lang.Long priority)
-
getTags
public java.util.List<Tag> getTags()
-
setTags
public void setTags(java.util.List<Tag> tags)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-