|
OpenNMS API 1.2.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opennms.netmgt.capsd.KnownIPMgr
This class represents a singular instance that is used to check address to determine their pollablility. If the address has already been discovered or is part of the exclude list then the manager can be used to check.
Nested Class Summary | |
(package private) static class |
KnownIPMgr.AddrComparator
This class implements the Comparator
interface and provides the infomation required for a Tree to be sorted. |
(package private) static class |
KnownIPMgr.IPInterface
This class is used to encapsulate the elements of importants from the IP interface table in the OpenNMS database. |
Field Summary | |
private static java.lang.String |
IP_LOAD_SQL
The SQL statement used to extract the list of currently known IP addresses from the IP Interface table. |
private static java.lang.String |
IP_UPDATE_TIME_SQL
The SQL statment used to update the last capabilities check time. |
private static java.util.Map |
m_known
The set of all discovered addresses |
Constructor Summary | |
private |
KnownIPMgr()
Default construct for the instance. |
Method Summary | |
(package private) static boolean |
addKnown(java.net.InetAddress addr)
Adds a new address to the list of discovered address. |
(package private) static boolean |
addKnown(java.lang.String addr)
Adds a new address to the list of discovered address. |
(package private) static void |
dataSourceSync()
Clears and synchronizes the internal known IP address cache with the current information contained in the database. |
(package private) static boolean |
isKnown(java.net.InetAddress addr)
Returns true if the node has been discovered and added to the discovered IP manager. |
(package private) static boolean |
isKnown(java.lang.String ipAddr)
Returns true if the node has been discovered and added to the discovered IP manager. |
(package private) static java.net.InetAddress[] |
knownSet()
Returns the current snapshot set of all the known internet addresses in the set of known nodes. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final java.lang.String IP_LOAD_SQL
private static final java.lang.String IP_UPDATE_TIME_SQL
private static java.util.Map m_known
Constructor Detail |
private KnownIPMgr()
java.lang.UnsupportedOperationException
- Always thrown.Method Detail |
static void dataSourceSync() throws java.sql.SQLException
java.util.MissingResourceException
- Thrown if the method cannot find the database configuration
file.
java.sql.SQLException
- Thrown if the connection cannot be created or a database
error occurs.static boolean isKnown(java.net.InetAddress addr)
addr
- The IP Address to query.
static boolean isKnown(java.lang.String ipAddr) throws java.net.UnknownHostException
java.net.InetAddressInetAddress
instance then an exception is
generated.
ipAddr
- The IP Address to query.
java.io.UnknownHostException
- Thrown if the address name could not be converted.
java.net.UnknownHostException
static boolean addKnown(java.net.InetAddress addr)
addr
- The address to add to the discovered set.
static boolean addKnown(java.lang.String addr) throws java.net.UnknownHostException
addr
- The address to add to the discovered set.
java.net.UnknownHost
- Thrown if the address cannot be converted.
java.net.UnknownHostException
static java.net.InetAddress[] knownSet()
|
OpenNMS API 1.2.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |