org.opennms.netmgt.outage
Class BasicService
java.lang.Object
org.opennms.netmgt.outage.BasicElement
org.opennms.netmgt.outage.BasicService
- public class BasicService
- extends BasicElement
Represents a Service in the ifServices table
- Author:
- brozow
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
m_iface
private BasicInterface m_iface
m_serviceId
private long m_serviceId
BasicService
public BasicService(BasicInterface iface,
long serviceId)
getInterface
public BasicInterface getInterface()
getNode
public BasicNode getNode()
getNetwork
public BasicNetwork getNetwork()
- Specified by:
getNetwork
in class BasicElement
getNodeId
public long getNodeId()
getIpAddr
public java.lang.String getIpAddr()
getServiceId
public long getServiceId()
isValid
public boolean isValid()
toString
public java.lang.String toString()
openOutageExists
public boolean openOutageExists(java.sql.Connection dbConn)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
closeOutage
public void closeOutage(java.sql.Connection dbConn,
long eventID,
java.lang.String eventTime)
throws java.sql.SQLException
- Parameters:
dbConn
- eventID
- eventTime
-
- Throws:
java.sql.SQLException
openOutage
public boolean openOutage(java.sql.Connection dbConn,
long eventID,
java.lang.String eventTime)
throws java.sql.SQLException
- Parameters:
dbConn
- eventID
- eventTime
-
- Returns:
-
- Throws:
java.sql.SQLException
Generated by eevans on May 29 2005 2015.