org.opennms.netmgt.config
Class LinkdConfigFactory
java.lang.Object
org.opennms.netmgt.config.LinkdConfigFactory
public class LinkdConfigFactory
- extends java.lang.Object
|
Field Summary |
protected static java.io.InputStream |
configIn
Input stream for the general Linkd configuration xml |
protected static org.opennms.netmgt.config.linkd.LinkdConfiguration |
m_linkdconfiguration
Object containing all Linkd-configuration objects parsed from the xml
file |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
m_linkdconfiguration
protected static org.opennms.netmgt.config.linkd.LinkdConfiguration m_linkdconfiguration
- Object containing all Linkd-configuration objects parsed from the xml
file
configIn
protected static java.io.InputStream configIn
- Input stream for the general Linkd configuration xml
getInstance
public static LinkdConfigFactory getInstance()
init
public static void init()
throws java.io.IOException,
java.io.FileNotFoundException,
org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException,
java.lang.ClassNotFoundException
- Throws:
java.io.IOException
java.io.FileNotFoundException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
java.lang.ClassNotFoundException
reload
public static void reload()
throws java.io.IOException,
org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
- Throws:
java.io.IOException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
getInitialSleepTime
public long getInitialSleepTime()
throws java.io.IOException,
org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
- Returns:
- Int Initial Sleep Time
- Throws:
java.io.IOException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
getSnmpPollInterval
public long getSnmpPollInterval()
throws java.io.IOException,
org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
- Returns:
- Int SnmpPollInterval
- Throws:
java.io.IOException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
getDiscoveryLinkInterval
public long getDiscoveryLinkInterval()
throws java.io.IOException,
org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
- Returns:
- Int DiscoveryLinkInterval
- Throws:
java.io.IOException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
getThreads
public int getThreads()
throws java.io.IOException,
org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
- Returns:
- Int Threads
- Throws:
java.io.IOException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
autoDiscovery
public boolean autoDiscovery()
throws java.io.IOException,
org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
- Returns:
- boolean auto-discovery
- Throws:
java.io.IOException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
getSnmpColls
public java.util.HashMap<java.lang.Integer,SnmpCollection> getSnmpColls(java.sql.Connection dbConn)
throws java.sql.SQLException,
java.net.UnknownHostException
- Throws:
java.sql.SQLException
java.net.UnknownHostException
getLinkableNodes
public java.util.HashMap<java.lang.String,LinkableNode> getLinkableNodes(java.sql.Connection dbConn)
throws java.sql.SQLException,
java.net.UnknownHostException
- Throws:
java.sql.SQLException
java.net.UnknownHostException
saveCurrent
public void saveCurrent()
throws org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException,
java.io.IOException,
java.lang.ClassNotFoundException
- Throws:
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
java.io.IOException
java.lang.ClassNotFoundException
getSnmpCollection
public SnmpCollection getSnmpCollection(java.sql.Connection dbConn,
int nodeid)
throws java.sql.SQLException,
java.net.UnknownHostException
- Throws:
java.sql.SQLException
java.net.UnknownHostException
getSnmpPrimaryIp
public java.net.InetAddress getSnmpPrimaryIp(java.sql.Connection dbConn,
int nodeid)
throws java.sql.SQLException,
java.net.UnknownHostException
- Throws:
java.sql.SQLException
java.net.UnknownHostException
updateDeletedNodes
public void updateDeletedNodes(java.sql.Connection dbConn)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
Copyright © 2007. All Rights Reserved.