Class OnmsMonitoringLocation

  • All Implemented Interfaces:
    java.io.Serializable

    @Entity
    public class OnmsMonitoringLocation
    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
      OnmsMonitoringLocation()  
      OnmsMonitoringLocation​(java.lang.String locationName, java.lang.String monitoringArea)
      This constructor is only used during unit testing.
      OnmsMonitoringLocation​(java.lang.String locationName, java.lang.String monitoringArea, java.lang.String geolocation, java.lang.Float latitude, java.lang.Float longitude, java.lang.Long priority, java.lang.String... tags)  
    • Constructor Detail

      • OnmsMonitoringLocation

        public OnmsMonitoringLocation()
      • OnmsMonitoringLocation

        public OnmsMonitoringLocation​(java.lang.String locationName,
                                      java.lang.String monitoringArea)
        This constructor is only used during unit testing.
        Parameters:
        locationName -
        monitoringArea -
      • OnmsMonitoringLocation

        public OnmsMonitoringLocation​(java.lang.String locationName,
                                      java.lang.String monitoringArea,
                                      java.lang.String geolocation,
                                      java.lang.Float latitude,
                                      java.lang.Float longitude,
                                      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)
      • getLongitude

        public java.lang.Float getLongitude()
        The longitude coordinate of this node.
        Returns:
      • setLongitude

        public void setLongitude​(java.lang.Float longitude)
      • getLatitude

        public java.lang.Float getLatitude()
        The latitude coordinate of this node.
        Returns:
      • setLatitude

        public void setLatitude​(java.lang.Float latitude)
      • getPriority

        public java.lang.Long getPriority()
      • setPriority

        public void setPriority​(java.lang.Long priority)
      • getTags

        public java.util.List<java.lang.String> getTags()
      • setTags

        public void setTags​(java.util.List<java.lang.String> tags)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object