org.opennms.netmgt.model
Class OnmsMonitoredService
java.lang.Object
org.opennms.netmgt.model.OnmsEntity
org.opennms.netmgt.model.OnmsMonitoredService
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<OnmsMonitoredService>
public class OnmsMonitoredService
- extends OnmsEntity
- implements java.io.Serializable, java.lang.Comparable<OnmsMonitoredService>
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
OnmsMonitoredService
public OnmsMonitoredService()
OnmsMonitoredService
public OnmsMonitoredService(OnmsIpInterface ipIf,
OnmsServiceType serviceType)
getId
public java.lang.Integer getId()
- Unique identifier for ifServivce.
setId
public void setId(java.lang.Integer id)
getIpAddress
public java.lang.String getIpAddress()
getIfIndex
public java.lang.Integer getIfIndex()
getLastGood
public java.util.Date getLastGood()
setLastGood
public void setLastGood(java.util.Date lastgood)
getLastFail
public java.util.Date getLastFail()
setLastFail
public void setLastFail(java.util.Date lastfail)
getQualifier
public java.lang.String getQualifier()
setQualifier
public void setQualifier(java.lang.String qualifier)
getStatus
public java.lang.String getStatus()
setStatus
public void setStatus(java.lang.String status)
getSource
public java.lang.String getSource()
setSource
public void setSource(java.lang.String source)
getNotify
public java.lang.String getNotify()
setNotify
public void setNotify(java.lang.String notify)
getIpInterface
public OnmsIpInterface getIpInterface()
setIpInterface
public void setIpInterface(OnmsIpInterface ipInterface)
getNodeId
public java.lang.Integer getNodeId()
getServiceType
public OnmsServiceType getServiceType()
setServiceType
public void setServiceType(OnmsServiceType service)
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
getServiceId
public java.lang.Integer getServiceId()
visit
public void visit(EntityVisitor visitor)
- Specified by:
visit in class OnmsEntity
getServiceName
public java.lang.String getServiceName()
isDown
public boolean isDown()
getCurrentOutages
public java.util.Set<OnmsOutage> getCurrentOutages()
setCurrentOutages
public void setCurrentOutages(java.util.Set<OnmsOutage> currentOutages)
getApplications
public java.util.Set<OnmsApplication> getApplications()
setApplications
public void setApplications(java.util.Set<OnmsApplication> applications)
addApplication
public boolean addApplication(OnmsApplication application)
removeApplication
public boolean removeApplication(OnmsApplication application)
compareTo
public int compareTo(OnmsMonitoredService o)
- Specified by:
compareTo in interface java.lang.Comparable<OnmsMonitoredService>
Copyright © 2007. All Rights Reserved.