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 String
TYPE_MINION
static String
TYPE_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 String
getId()
A human-readable name for each system.String
getLabel()
A human-readable name for each system.Date
getLastUpdated()
The timestamp of the last message passed from the remote system.String
getLocation()
The monitoring location that this system is located in.Map<String,String>
getProperties()
setIpAddressString
getType()
The type of monitoring system.void
setId(String id)
setNamevoid
setLabel(String label)
void
setLastUpdated(Date lastUpdated)
void
setLocation(String location)
void
setProperties(Map<String,String> properties)
void
setProperty(String property, String value)
void
setType(String type)
String
toString()
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
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.
-
getLocation
public String getLocation()
The monitoring location that this system is located in.- Returns:
- 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.
-
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
- aString
object.
-
setProperties
public void setProperties(Map<String,String> properties)
- Parameters:
properties
- aMap
object.
-
-