|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opennms.netmgt.config.PeerFactory
public class PeerFactory
Convenience superclass for NSClientPeerFactory and SnmpPeerFactory, with common code used in both
| Constructor Summary | |
|---|---|
PeerFactory()
|
|
| Method Summary | |
|---|---|
static int |
countChar(char charIn,
String stingIn)
|
static boolean |
matchNumericListOrRange(String value,
String patterns)
Use this method to match ranges, lists, and specific number strings such as: "200-300" or "200,300,501-700" "*" matches any This method is commonly used for matching IP octets or ports |
static boolean |
matchRange(String value,
String pattern)
Helper method in support of matchNumericListOrRange |
protected static long |
toLong(InetAddress addr)
Converts the internet address to a long value so that it can be compared using simple opertions. |
static boolean |
verifyIpMatch(String hostAddress,
String ipMatch)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PeerFactory()
| Method Detail |
|---|
protected static long toLong(InetAddress addr)
addr - The address to convert to a long
public static boolean verifyIpMatch(String hostAddress,
String ipMatch)
public static boolean matchNumericListOrRange(String value,
String patterns)
value - patterns -
public static boolean matchRange(String value,
String pattern)
value - pattern -
public static int countChar(char charIn,
String stingIn)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||