|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.opennms.bb.dp.eventd.db.Constants
Field Summary | |
(package private) static String |
ATTRIB_DELIM
The parser adds the value and attributes of an element to a single element of eventBlock and uses the ATTRIB_DELIM to separate these values |
(package private) static char |
DB_ATTRIB_DELIM
The values and the corresponding attributes of an element are added to a single column of the table and delimited by DB_ATTRIB_DELIM |
(package private) static char |
MULTIPLE_VAL_DELIM
The delimiter used to delimit multiple values of the same element that are appended and made the value of a single database column |
(package private) static char |
NAME_VAL_DELIM
The 'parms' are added to a single column of the DB - the parm name and value are added as delimiter separated list of ' |
(package private) static int |
SEV_CLEARED
Enumerated values for severity being unimplemented at this time |
(package private) static int |
SEV_CRITICAL
Enumerated values for severity is critical |
(package private) static int |
SEV_INDETERMINATE
Enumerated values for severity being indeterminate |
(package private) static int |
SEV_MAJOR
Enumerated values for severity is major |
(package private) static int |
SEV_MINOR
Enumerated values for severity is minor |
(package private) static int |
SEV_WARNING
Enumerated values for severity indicates a warning |
(package private) static int |
STATE_OFF
Enumerated value for the state(tticket and forward) when entry is not active |
(package private) static int |
STATE_ON
Enumerated value for the state(tticket and forward) when entry is active |
(package private) static String |
VALUE_TRUNCATE_INDICATOR
Multiple values of any xml element are appended into one value when inserted into the database - if the length of the appended string exceeds the column length, the value is appended with this pattern |
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 strings,
int maxlen)
This method is passed a list of string and a maximum string size that must not be exceeded by the composite string. |
static int |
getSeverity(String sev)
Converts the severity to an integer |
Methods inherited from class java.lang.Object |
|
Field Detail |
static final int SEV_INDETERMINATE
static final int SEV_CLEARED
static final int SEV_WARNING
static final int SEV_MINOR
static final int SEV_MAJOR
static final int SEV_CRITICAL
static final int STATE_ON
static final int STATE_OFF
static final char NAME_VAL_DELIM
static final char MULTIPLE_VAL_DELIM
static final String ATTRIB_DELIM
static final char DB_ATTRIB_DELIM
static final String VALUE_TRUNCATE_INDICATOR
Constructor Detail |
public Constants()
Method Detail |
public static String escape(String inStr, char delimchar)
This method is used to escape required values from strings that may contain those values. If the passed string contains the passed value then the character is reformatted into its %dd format.
inStr
- string that might contain the delimiterdelimChar
- delimiter to escapeDB_ATTRIB_DELIM
,
MULTIPLE_VAL_DELIM
public static String format(List strings, int maxlen)
This method is passed a list of string and a maximum string size that must not be exceeded by the composite string.
string
- The list of String objects.maxlen
- The maximum length of the composite stringClassCastException
- Thrown if any processed
item in the list is not a string object.public static int getSeverity(String sev)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |