@Entity public class OnmsMonitoredService extends OnmsEntity implements Serializable, Comparable<OnmsMonitoredService>
| Modifier and Type | Field and Description |
|---|---|
static Map<String,String> |
STATUS_MAP |
| Constructor and Description |
|---|
OnmsMonitoredService()
Constructor for OnmsMonitoredService.
|
OnmsMonitoredService(OnmsIpInterface ipIf,
OnmsServiceType serviceType)
Constructor for OnmsMonitoredService.
|
hasNewValuepublic OnmsMonitoredService()
Constructor for OnmsMonitoredService.
public OnmsMonitoredService(OnmsIpInterface ipIf, OnmsServiceType serviceType)
Constructor for OnmsMonitoredService.
ipIf - a OnmsIpInterface object.serviceType - a OnmsServiceType object.public Integer getJsonId()
public String getXmlId()
public void setXmlId(String id)
public InetAddress getIpAddress()
getIpAddress
String object.public String getIpAddressAsString()
getIpAddress
String object.public void setLastGood(Date lastgood)
setLastGood
lastgood - a Date object.public void setLastFail(Date lastfail)
setLastFail
lastfail - a Date object.public void setQualifier(String qualifier)
setQualifier
qualifier - a String object.public String getStatusLong()
public List<OnmsMetaData> getMetaData()
public void setMetaData(List<OnmsMetaData> metaData)
public void removeMetaData(String context)
public Optional<OnmsMetaData> findMetaDataForContextAndKey(String context, String key)
public OnmsIpInterface getIpInterface()
getIpInterface
OnmsIpInterface object.public Integer getIpInterfaceId()
public void setIpInterface(OnmsIpInterface ipInterface)
setIpInterface
ipInterface - a OnmsIpInterface object.public OnmsServiceType getServiceType()
getServiceType
OnmsServiceType object.public void setServiceType(OnmsServiceType service)
setServiceType
service - a OnmsServiceType object.public String toString()
toString
public void visit(EntityVisitor visitor)
visit
visit in class OnmsEntityvisitor - a EntityVisitor object.public boolean isDown()
isDown
public Set<OnmsOutage> getCurrentOutages()
getCurrentOutages
Set object.public void setCurrentOutages(Set<OnmsOutage> currentOutages)
setCurrentOutages
currentOutages - a Set object.public Set<OnmsApplication> getApplications()
getApplications
Set object.public void setApplications(Set<OnmsApplication> applications)
setApplications
applications - a Set object.public boolean addApplication(OnmsApplication application)
addApplication
application - a OnmsApplication object.public boolean removeApplication(OnmsApplication application)
removeApplication
application - a OnmsApplication object.public int compareTo(OnmsMonitoredService o)
compareTo
compareTo in interface Comparable<OnmsMonitoredService>o - a OnmsMonitoredService object.public void mergeServiceAttributes(OnmsMonitoredService scanned)
mergeServiceAttributes
scanned - a OnmsMonitoredService object.public void mergeMetaData(OnmsMonitoredService scanned)
public String getForeignSource()
public String getForeignId()
Copyright © 2022. All rights reserved.