|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opennms.netmgt.eventd.db.Constants
public class Constants
This class contains the constants and methods related to inserting events into the database
| Field Summary | |
|---|---|
static int |
SEV_CLEARED
Enumerated values for severity being unimplemented at this time |
static int |
SEV_CRITICAL
Enumerated values for severity is critical |
static int |
SEV_INDETERMINATE
Enumerated values for severity being indeterminate |
static int |
SEV_MAJOR
Enumerated values for severity is major |
static int |
SEV_MINOR
Enumerated values for severity is minor |
static int |
SEV_NORMAL
Enumerated values for severity indicates a warning |
static int |
SEV_WARNING
Enumerated values for severity indicates a warning |
| Constructor Summary | |
|---|---|
Constants()
|
|
| Method Summary | |
|---|---|
static String |
escape(String inStr,
char delimchar)
This method is used to escape required values from strings that may contain those values. |
static String |
format(List<String> strings,
int maxlen)
This method is passed a list of strings and a maximum string size that must not be exceeded by the composite string. |
static String |
format(String[] strings,
int maxlen)
This method is passed an array of strings and a maximum string size that must not be exceeded by the composite string. |
static String |
format(String origString,
int maxlen)
This method is passed a string to be truncated to the maximum string size passed. |
static int |
getSeverity(String sev)
Converts the severity to an integer |
static String |
getSeverityString(int sev)
Returns a severity constant as a printable string. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int SEV_INDETERMINATE
public static final int SEV_CLEARED
public static final int SEV_NORMAL
public static final int SEV_WARNING
public static final int SEV_MINOR
public static final int SEV_MAJOR
public static final int SEV_CRITICAL
| Constructor Detail |
|---|
public Constants()
| Method Detail |
|---|
public static String escape(String inStr,
char delimchar)
inStr - string that might contain the delimiterdelimchar - delimiter to escape
DB_ATTRIB_DELIM,
MULTIPLE_VAL_DELIM
public static String format(List<String> strings,
int maxlen)
strings - The list of String objects.maxlen - The maximum length of the composite string
ClassCastException - Thrown if any processed item in the list is not a string
object.
public static String format(String[] strings,
int maxlen)
strings - The list of String objects.maxlen - The maximum length of the composite string
ClassCastException - Thrown if any processed item in the list is not a string
object.
public static String format(String origString,
int maxlen)
string - The string object.maxlen - The maximum length of the composite string
public static int getSeverity(String sev)
public static String getSeverityString(int sev)
sev -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||