public abstract class SnmpInfo extends Object
Constructor and Description |
---|
SnmpInfo() |
Modifier and Type | Method and Description |
---|---|
static String |
format(Snmp info,
int maxlen)
Converts the SNMP information from the event into a string that can be
stored into the database.
|
public static String format(Snmp info, int maxlen)
Converts the SNMP information 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.
info
- a Snmp
object.maxlen
- a int.EventDatabaseConstants.DB_ATTRIB_DELIM
,
EventDatabaseConstants.escape(java.lang.String, char)
,
EventDatabaseConstants.DB_ATTRIB_DELIM
,
EventDatabaseConstants.escape(java.lang.String, char)
Copyright © 2021. All rights reserved.