public class LocationDef 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.
Constructor and Description |
---|
LocationDef() |
LocationDef(String locationName,
String monitoringArea,
String pollingPackageName,
String collectionPackageName,
String geolocation,
String coordinates,
Long priority,
String... tags) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getCollectionPackageName() |
String |
getCoordinates() |
String |
getGeolocation() |
String |
getLocationName() |
String |
getMonitoringArea() |
String |
getPollingPackageName() |
Long |
getPriority() |
List<Tag> |
getTags() |
int |
hashCode() |
void |
setCollectionPackageName(String collectionPackageName) |
void |
setCoordinates(String coordinates) |
void |
setGeolocation(String geolocation) |
void |
setLocationName(String locationName) |
void |
setMonitoringArea(String monitoringArea) |
void |
setPollingPackageName(String pollingPackageName) |
void |
setPriority(Long priority) |
void |
setTags(List<Tag> tags) |
String |
toString() |
public String getLocationName()
public void setLocationName(String locationName)
public String getMonitoringArea()
public void setMonitoringArea(String monitoringArea)
public String getPollingPackageName()
public void setPollingPackageName(String pollingPackageName)
public String getCollectionPackageName()
public void setCollectionPackageName(String collectionPackageName)
public String getGeolocation()
public void setGeolocation(String geolocation)
public String getCoordinates()
public void setCoordinates(String coordinates)
public Long getPriority()
public void setPriority(Long priority)
Copyright © 2021. All rights reserved.