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.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 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 boolean
equals(java.lang.Object obj)
java.lang.String
getCoordinates()
java.lang.String
getGeolocation()
java.lang.String
getLocationName()
java.lang.String
getMonitoringArea()
java.lang.Long
getPriority()
java.util.List<Tag>
getTags()
int
hashCode()
void
setCoordinates(java.lang.String coordinates)
void
setGeolocation(java.lang.String geolocation)
void
setLocationName(java.lang.String locationName)
void
setMonitoringArea(java.lang.String monitoringArea)
void
setPriority(java.lang.Long priority)
void
setTags(java.util.List<Tag> tags)
java.lang.String
toString()
-
-
-
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:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-