@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.
|
Modifier and Type | Method and Description |
---|---|
boolean |
addApplication(OnmsApplication application)
addApplication
|
void |
addMetaData(String context,
String key,
String value) |
int |
compareTo(OnmsMonitoredService o)
compareTo
|
Set<OnmsApplication> |
getApplications()
getApplications
|
Set<OnmsOutage> |
getCurrentOutages()
getCurrentOutages
|
String |
getForeignId() |
String |
getForeignSource() |
Integer |
getId()
Unique identifier for ifService.
|
Integer |
getIfIndex()
getIfIndex
|
InetAddress |
getIpAddress()
getIpAddress
|
String |
getIpAddressAsString()
Deprecated.
|
OnmsIpInterface |
getIpInterface()
getIpInterface
|
Integer |
getIpInterfaceId() |
Integer |
getJsonId() |
Date |
getLastFail()
getLastFail
|
Date |
getLastGood()
getLastGood
|
List<OnmsMetaData> |
getMetaData() |
Integer |
getNodeId()
getNodeId
|
String |
getNotify()
getNotify
|
String |
getQualifier()
getQualifier
|
Integer |
getServiceId()
getServiceId
|
String |
getServiceName()
getServiceName
|
OnmsServiceType |
getServiceType()
getServiceType
|
String |
getSource()
getSource
|
String |
getStatus()
getStatus
|
String |
getStatusLong() |
String |
getXmlId()
This id is used for the serialized representation such as json, xml etc.
|
boolean |
isDown()
isDown
|
void |
mergeMetaData(OnmsMonitoredService scanned) |
void |
mergeServiceAttributes(OnmsMonitoredService scanned)
mergeServiceAttributes
|
boolean |
removeApplication(OnmsApplication application)
removeApplication
|
void |
removeMetaData(String context) |
void |
removeMetaData(String context,
String key) |
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 |
setMetaData(List<OnmsMetaData> metaData) |
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
|
void |
setXmlId(String id) |
String |
toString()
toString
|
void |
visit(EntityVisitor visitor)
visit
|
hasNewValue
public 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 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 OnmsEntity
visitor
- 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 © 2021. All rights reserved.