org.opennms.netmgt.model
Class OnmsMonitoredService

java.lang.Object
  extended by org.opennms.netmgt.model.OnmsEntity
      extended by org.opennms.netmgt.model.OnmsMonitoredService
All Implemented Interfaces:
Serializable, Comparable<OnmsMonitoredService>

public class OnmsMonitoredService
extends OnmsEntity
implements Serializable, Comparable<OnmsMonitoredService>

See Also:
Serialized Form

Constructor Summary
OnmsMonitoredService()
           
OnmsMonitoredService(OnmsIpInterface ipIf, OnmsServiceType serviceType)
           
 
Method Summary
 boolean addApplication(OnmsApplication application)
           
 int compareTo(OnmsMonitoredService o)
           
 Set<OnmsApplication> getApplications()
           
 Set<OnmsOutage> getCurrentOutages()
           
 Integer getId()
          Unique identifier for ifServivce.
 Integer getIfIndex()
           
 String getIpAddress()
           
 OnmsIpInterface getIpInterface()
           
 Date getLastFail()
           
 Date getLastGood()
           
 Integer getNodeId()
           
 String getNotify()
           
 String getQualifier()
           
 Integer getServiceId()
           
 String getServiceName()
           
 OnmsServiceType getServiceType()
           
 String getSource()
           
 String getStatus()
           
 boolean isDown()
           
 boolean removeApplication(OnmsApplication application)
           
 void setApplications(Set<OnmsApplication> applications)
           
 void setCurrentOutages(Set<OnmsOutage> currentOutages)
           
 void setId(Integer id)
           
 void setIpInterface(OnmsIpInterface ipInterface)
           
 void setLastFail(Date lastfail)
           
 void setLastGood(Date lastgood)
           
 void setNotify(String notify)
           
 void setQualifier(String qualifier)
           
 void setServiceType(OnmsServiceType service)
           
 void setSource(String source)
           
 void setStatus(String status)
           
 String toString()
           
 void visit(EntityVisitor visitor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OnmsMonitoredService

public OnmsMonitoredService()

OnmsMonitoredService

public OnmsMonitoredService(OnmsIpInterface ipIf,
                            OnmsServiceType serviceType)
Method Detail

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.