org.opennms.bb.dp.eventd.db
Class SnmpInfo
java.lang.Object
|
+--org.opennms.bb.dp.eventd.db.SnmpInfo
- public final class SnmpInfo
- extends Object
This class is used to format the EventSnmpInfo block into
an appropiate string for storage in the event data storage.
- Version:
- CVS $Revision: 1.1 $
- Author:
- Brian Weaver, OpenNMS
Method Summary |
static String |
format(EventSnmpInfo info)
Converts the SNMP iformation from the event into a
string that can be stored into the database. |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
SnmpInfo
public SnmpInfo()
format
public static String format(EventSnmpInfo info)
Converts the SNMP iformation from the event into a
string that can be stored into the database. The information
is formatted in by separating the of the textual fields
with a delimiter character (a comma ',').
If the enterprise id text information is not present then
the string will have only two commas. An extra comma is not
added to signify the missing field.
- Returns:
- The smnpblock as a string
- See Also:
Constants.DB_ATTRIB_DELIM
,
Constants.escape(java.lang.String, char)