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

Constructor Detail

OnmsMonitoredService

public OnmsMonitoredService()

Constructor for OnmsMonitoredService.


OnmsMonitoredService

public OnmsMonitoredService(OnmsIpInterface ipIf,
                            OnmsServiceType serviceType)

Constructor for OnmsMonitoredService.

Parameters:
ipIf - a OnmsIpInterface object.
serviceType - a OnmsServiceType object.
Method Detail

getId

public Integer getId()
Unique identifier for ifService.

Returns:
a Integer object.

setId

public void setId(Integer id)

setId

Parameters:
id - a Integer object.

getIpAddress

public InetAddress getIpAddress()

getIpAddress

Returns:
a String object.

getIpAddressAsString

public String getIpAddressAsString()
Deprecated. 

getIpAddress

Returns:
a String object.

getIfIndex

public Integer getIfIndex()

getIfIndex

Returns:
a Integer object.

getLastGood

public Date getLastGood()

getLastGood

Returns:
a Date object.

setLastGood

public void setLastGood(Date lastgood)

setLastGood

Parameters:
lastgood - a Date object.

getLastFail

public Date getLastFail()

getLastFail

Returns:
a Date object.

setLastFail

public void setLastFail(Date lastfail)

setLastFail

Parameters:
lastfail - a Date object.

getQualifier

public String getQualifier()

getQualifier

Returns:
a String object.

setQualifier

public void setQualifier(String qualifier)

setQualifier

Parameters:
qualifier - a String object.

getStatus

public String getStatus()

getStatus

Returns:
a String object.

setStatus

public void setStatus(String status)

setStatus

Parameters:
status - a String object.

getSource

public String getSource()

getSource

Returns:
a String object.

setSource

public void setSource(String source)

setSource

Parameters:
source - a String object.

getNotify

public String getNotify()

getNotify

Returns:
a String object.

setNotify

public void setNotify(String notify)

setNotify

Parameters:
notify - a String object.

getIpInterface

public OnmsIpInterface getIpInterface()

getIpInterface

Returns:
a OnmsIpInterface object.

setIpInterface

public void setIpInterface(OnmsIpInterface ipInterface)

setIpInterface

Parameters:
ipInterface - a OnmsIpInterface object.

getNodeId

public Integer getNodeId()

getNodeId

Returns:
a Integer object.

getServiceType

public OnmsServiceType getServiceType()

getServiceType

Returns:
a OnmsServiceType object.

setServiceType

public void setServiceType(OnmsServiceType service)

setServiceType

Parameters:
service - a OnmsServiceType object.

toString

public String toString()

toString

Overrides:
toString in class Object
Returns:
a String object.

getServiceId

public Integer getServiceId()

getServiceId

Returns:
a Integer object.

visit

public void visit(EntityVisitor visitor)

visit

Specified by:
visit in class OnmsEntity
Parameters:
visitor - a EntityVisitor object.

getServiceName

public String getServiceName()

getServiceName

Returns:
a String object.

isDown

public boolean isDown()

isDown

Returns:
a boolean.

getCurrentOutages

public Set<OnmsOutage> getCurrentOutages()

getCurrentOutages

Returns:
a Set object.

setCurrentOutages

public void setCurrentOutages(Set<OnmsOutage> currentOutages)

setCurrentOutages

Parameters:
currentOutages - a Set object.

getApplications

public Set<OnmsApplication> getApplications()

getApplications

Returns:
a Set object.

setApplications

public void setApplications(Set<OnmsApplication> applications)

setApplications

Parameters:
applications - a Set object.

addApplication

public boolean addApplication(OnmsApplication application)

addApplication

Parameters:
application - a OnmsApplication object.
Returns:
a boolean.

removeApplication

public boolean removeApplication(OnmsApplication application)

removeApplication

Parameters:
application - a OnmsApplication object.
Returns:
a boolean.

compareTo

public int compareTo(OnmsMonitoredService o)

compareTo

Specified by:
compareTo in interface Comparable<OnmsMonitoredService>
Parameters:
o - a OnmsMonitoredService object.
Returns:
a int.

mergeServiceAttributes

public void mergeServiceAttributes(OnmsMonitoredService scanned)

mergeServiceAttributes

Parameters:
scanned - a OnmsMonitoredService object.


Copyright © 2011. All Rights Reserved.