Package org.opennms.netmgt.model
Class OnmsMonitoringSystem
- java.lang.Object
-
- org.opennms.netmgt.model.OnmsMonitoringSystem
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
OnmsDistPoller,OnmsMinion
@Entity public class OnmsMonitoringSystem extends java.lang.Object implements java.io.SerializableRepresents 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 java.lang.StringTYPE_MINIONstatic java.lang.StringTYPE_OPENNMS
-
Constructor Summary
Constructors Constructor Description OnmsMonitoringSystem()default constructorOnmsMonitoringSystem(java.lang.String id, java.lang.String location)Minimal constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetId()A human-readable name for each system.java.lang.StringgetLabel()A human-readable name for each system.java.util.DategetLastUpdated()The timestamp of the last message passed from the remote system.java.lang.StringgetLocation()The monitoring location that this system is located in.java.util.Map<java.lang.String,java.lang.String>getProperties()setIpAddressjava.lang.StringgetType()The type of monitoring system.voidsetId(java.lang.String id)setNamevoidsetLabel(java.lang.String label)voidsetLastUpdated(java.util.Date lastUpdated)voidsetLocation(java.lang.String location)voidsetProperties(java.util.Map<java.lang.String,java.lang.String> properties)voidsetProperty(java.lang.String property, java.lang.String value)voidsetType(java.lang.String type)java.lang.StringtoString()toString
-
-
-
Field Detail
-
TYPE_OPENNMS
public static final java.lang.String TYPE_OPENNMS
- See Also:
- Constant Field Values
-
TYPE_MINION
public static final java.lang.String TYPE_MINION
- See Also:
- Constant Field Values
-
-
Method Detail
-
getId
public java.lang.String getId()
A human-readable name for each system. Typically, the system's hostname (not fully qualified).- Returns:
- a
Stringobject.
-
setId
public void setId(java.lang.String id)
setName
- Parameters:
id- aStringobject.
-
getLabel
public java.lang.String getLabel()
A human-readable name for each system. Typically, the system's hostname (not fully qualified).- Returns:
- a
Stringobject.
-
setLabel
public void setLabel(java.lang.String label)
- Parameters:
label- aStringobject.
-
getLocation
public java.lang.String getLocation()
The monitoring location that this system is located in.- Returns:
- a
Stringobject.
-
setLocation
public void setLocation(java.lang.String location)
- Parameters:
location- aStringobject.
-
getType
public java.lang.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.
-
setType
public void setType(java.lang.String type)
- Parameters:
type- aStringobject.
-
getLastUpdated
public java.util.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(java.util.Date lastUpdated)
-
getProperties
public java.util.Map<java.lang.String,java.lang.String> getProperties()
setIpAddress
- Parameters:
ipAddress- aStringobject.
-
setProperties
public void setProperties(java.util.Map<java.lang.String,java.lang.String> properties)
- Parameters:
properties- aMapobject.
-
setProperty
public void setProperty(java.lang.String property, java.lang.String value)
-
toString
public java.lang.String toString()
toString
- Overrides:
toStringin classjava.lang.Object- Returns:
- a
Stringobject.
-
-