Package org.opennms.netmgt.model
Class OnmsMonitoringSystem
- java.lang.Object
-
- org.opennms.netmgt.model.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
-
-
Field Summary
Fields Modifier and Type Field Description static StringTYPE_MINIONstatic StringTYPE_OPENNMS
-
Constructor Summary
Constructors Constructor Description OnmsMonitoringSystem()default constructorOnmsMonitoringSystem(String id, String location)Minimal constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetId()A human-readable name for each system.StringgetLabel()A human-readable name for each system.DategetLastUpdated()The timestamp of the last message passed from the remote system.StringgetLocation()The monitoring location that this system is located in.Map<String,String>getProperties()setIpAddressStringgetType()The type of monitoring system.voidsetId(String id)setNamevoidsetLabel(String label)voidsetLastUpdated(Date lastUpdated)voidsetLocation(String location)voidsetProperties(Map<String,String> properties)voidsetProperty(String property, String value)voidsetType(String type)StringtoString()toString
-
-
-
Field Detail
-
TYPE_OPENNMS
public static final String TYPE_OPENNMS
- See Also:
- Constant Field Values
-
TYPE_MINION
public static final String TYPE_MINION
- See Also:
- Constant Field Values
-
-
Method Detail
-
getId
public String getId()
A human-readable name for each system. Typically, the system's hostname (not fully qualified).- Returns:
- a
Stringobject.
-
getLabel
public String getLabel()
A human-readable name for each system. Typically, the system's hostname (not fully qualified).- Returns:
- a
Stringobject.
-
getLocation
public String getLocation()
The monitoring location that this system is located in.- Returns:
- a
Stringobject.
-
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
Stringobject.
-
getLastUpdated
public Date getLastUpdated()
The timestamp of the last message passed from the remote system. TODO: Should this be nullable=false?- Returns:
- a
Stringobject.
-
setLastUpdated
public void setLastUpdated(Date lastUpdated)
-
getProperties
public Map<String,String> getProperties()
setIpAddress
- Parameters:
ipAddress- aStringobject.
-
setProperties
public void setProperties(Map<String,String> properties)
- Parameters:
properties- aMapobject.
-
-