Class OnmsMonitoringSystem

  • All Implemented Interfaces:
    Serializable
    Direct Known Subclasses:
    OnmsDistPoller, OnmsMinion

    @Entity
    public class OnmsMonitoringSystem
    extends Object
    implements Serializable

    Represents an OpenNMS monitoring system that can poll status of nodes and report events that occur on the network. Examples of monitoring systems include:

    • OpenNMS
    • OpenNMS Remote Poller
    • OpenNMS Minion

    CAUTION: Don't add final modifiers to methods here because they need to be proxyable to the child classes and Javassist doesn't override final methods.

    Author:
    Seth
    See Also:
    Serialized Form
    • Constructor Detail

      • OnmsMonitoringSystem

        public OnmsMonitoringSystem()
        default constructor
      • OnmsMonitoringSystem

        public OnmsMonitoringSystem​(String id,
                                    String location)
        Minimal constructor.
        Parameters:
        id - a String object.
        ipAddress - a String object.
    • Method Detail

      • getId

        public String getId()
        A human-readable name for each system. Typically, the system's hostname (not fully qualified).
        Returns:
        a String object.
      • setId

        public void setId​(String id)

        setName

        Parameters:
        id - a String object.
      • getLabel

        public String getLabel()
        A human-readable name for each system. Typically, the system's hostname (not fully qualified).
        Returns:
        a String object.
      • setLabel

        public void setLabel​(String label)
        Parameters:
        label - a String object.
      • getLocation

        public String getLocation()
        The monitoring location that this system is located in.
        Returns:
        a String object.
      • setLocation

        public void setLocation​(String location)
        Parameters:
        location - a String object.
      • getType

        public String getType()
        The type of monitoring system. Mark this as insertable=false and updatable=false because it is also used as the @DiscriminatorColumn.
        Returns:
        a String object.
      • setType

        public void setType​(String type)
        Parameters:
        type - a String object.
      • getLastUpdated

        public Date getLastUpdated()
        The timestamp of the last message passed from the remote system. TODO: Should this be nullable=false?
        Returns:
        a String object.
      • setLastUpdated

        public void setLastUpdated​(Date lastUpdated)
      • getProperties

        public Map<String,​String> getProperties()

        setIpAddress

        Parameters:
        ipAddress - a String object.
      • setProperties

        public void setProperties​(Map<String,​String> properties)
        Parameters:
        properties - a Map object.
      • setProperty

        public void setProperty​(String property,
                                String value)