|
AR System Java API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bmc.arsys.api.AlertMessageInfo
public class AlertMessageInfo
The AlertMessageInfo
class is used to decode a formatted alert message and return its component parts,
for example, timestamp, source type, and so on.
Constructor Summary | |
---|---|
AlertMessageInfo()
Default constructor |
|
AlertMessageInfo(Timestamp time,
int type,
int prior,
String text,
String tag,
String svrName,
String form,
String id)
|
|
AlertMessageInfo(Timestamp time,
int type,
int prior,
String text,
String tag,
String svrName,
String svrAddr,
String form,
String id)
|
Method Summary | |
---|---|
static AlertMessageInfo |
DecodeAlertMessage(AlertMessageCriteria criteria,
Object message,
int len)
|
boolean |
equals(Object obj)
Use this method for checking equality between the current object and the provided one. |
String |
getAlertText()
Returns the text of the alert. |
String |
getFormName()
For AR System, returns the name of the form where the alert was generated from. |
String |
getObjectId()
Returns ID of the object of the alert. |
int |
getPriority()
Returns the priority of the alert, for informational purposes only. |
String |
getServerAddr()
Returns the IP address of the server where the alert was generated from. |
String |
getServerName()
Returns the name of the server where the alert was generated from. |
String |
getSourceTag()
Returns a string identifying the source of the alert. |
int |
getSourceType()
Returns value identifying the source of the alert. |
Timestamp |
getTimestamp()
Returns the timestamp when the alert was created. |
int |
hashCode()
Returns the hash code value for this instance of the current class. |
String |
toString()
Returns a string description of the object. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int AR_ALERT_MSG_TOTAL_LEN
public static final int AR_ALERT_MSG_SERVER_VERSION
public static final int AR_ALERT_MSG_TIMESTAMP
public static final int AR_ALERT_MSG_TYPE_CODE
public static final int AR_ALERT_MSG_PRIORITY
public static final int AR_ALERT_MSG_TEXT_LEN
public static final int AR_ALERT_MSG_TEXT
public static final int AR_ALERT_MSG_SOURCE_LEN
public static final int AR_ALERT_MSG_SOURCE
public static final int AR_ALERT_MSG_SOURCE_SERVER_LEN
public static final int AR_ALERT_MSG_SOURCE_SERVER
public static final int AR_ALERT_MSG_SOURCE_FORM_LEN
public static final int AR_ALERT_MSG_SOURCE_FORM
public static final int AR_ALERT_MSG_SOURCE_OBJECT_LEN
public static final int AR_ALERT_MSG_SOURCE_OBJECT
public static final int AR_ALERT_MSG_SOURCE_SVR_ADDR_LEN
public static final int AR_ALERT_MSG_SOURCE_SVR_ADDR
public static final int AR_ALERT_MSG_ITEM_COUNT
public static final int AR_ALERT_MSG_ITEM_COUNT_V1
public static final int AR_ALERT_MSG_PROTOCOL_VERSION
public static final int AR_ALERT_SOURCE_GP
public static final int AR_ALERT_SOURCE_AR
public static final int AR_ALERT_SOURCE_FIRST
public static final int AR_ALERT_SOURCE_CHECK
public static final int AR_ALERT_SOURCE_FB
public static final String AR_ALERT_ACK
public static final String AR_ALERT_MSG_SEPARATOR
Constructor Detail |
---|
public AlertMessageInfo()
public AlertMessageInfo(Timestamp time, int type, int prior, String text, String tag, String svrName, String form, String id)
public AlertMessageInfo(Timestamp time, int type, int prior, String text, String tag, String svrName, String svrAddr, String form, String id)
Method Detail |
---|
public Timestamp getTimestamp()
public int getSourceType()
sourceType
returned,
specify NULL
for this parameter. Possible values are:
AR_ALERT_SOURCE_GP
)
AR_ALERT_SOURCE_AR
)
AR_ALERT_SOURCE_FIRST
)
AR_ALERT_SOURCE_CHECK
)
AR_ALERT_SOURCE_FB
)
public int getPriority()
NULL
for this parameter.
public String getAlertText()
alertText
returned, specify
NULL
for this parameter.
public String getSourceTag()
sourceTag
returned,
specify NULL
for this parameter.
public String getServerName()
serverName
returned, specify NULL
for this parameter.
public String getServerAddr()
serverAddr
returned, specify NULL
for this parameter.
public String getFormName()
formName
returned, specify
NULL
for this parameter.
public String getObjectId()
public String toString()
toString
in class Object
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
obj
- the object that we are comparing to
public static AlertMessageInfo DecodeAlertMessage(AlertMessageCriteria criteria, Object message, int len) throws ARException
ARException
|
AR System Java API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |