org.opennms.netmgt.model
Class OnmsMonitoredService
java.lang.Object
org.opennms.netmgt.model.OnmsEntity
org.opennms.netmgt.model.OnmsMonitoredService
- All Implemented Interfaces:
- Serializable, Comparable<OnmsMonitoredService>
public class OnmsMonitoredService
- extends OnmsEntity
- implements Serializable, Comparable<OnmsMonitoredService>
- See Also:
- Serialized Form
OnmsMonitoredService
public OnmsMonitoredService()
OnmsMonitoredService
public OnmsMonitoredService(OnmsIpInterface ipIf,
OnmsServiceType serviceType)
getId
public Integer getId()
- Unique identifier for ifServivce.
setId
public void setId(Integer id)
getIpAddress
public String getIpAddress()
getIfIndex
public Integer getIfIndex()
getLastGood
public Date getLastGood()
setLastGood
public void setLastGood(Date lastgood)
getLastFail
public Date getLastFail()
setLastFail
public void setLastFail(Date lastfail)
getQualifier
public String getQualifier()
setQualifier
public void setQualifier(String qualifier)
getStatus
public String getStatus()
setStatus
public void setStatus(String status)
getSource
public String getSource()
setSource
public void setSource(String source)
getNotify
public String getNotify()
setNotify
public void setNotify(String notify)
getIpInterface
public OnmsIpInterface getIpInterface()
setIpInterface
public void setIpInterface(OnmsIpInterface ipInterface)
getNodeId
public Integer getNodeId()
getServiceType
public OnmsServiceType getServiceType()
setServiceType
public void setServiceType(OnmsServiceType service)
toString
public String toString()
- Overrides:
toString in class Object
getServiceId
public Integer getServiceId()
visit
public void visit(EntityVisitor visitor)
- Specified by:
visit in class OnmsEntity
getServiceName
public String getServiceName()
isDown
public boolean isDown()
getCurrentOutages
public Set<OnmsOutage> getCurrentOutages()
setCurrentOutages
public void setCurrentOutages(Set<OnmsOutage> currentOutages)
getApplications
public Set<OnmsApplication> getApplications()
setApplications
public void setApplications(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 Comparable<OnmsMonitoredService>
Copyright © 2009. All Rights Reserved.