|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.tivoli.twg.alertmgr.TWGActionEndInfo
TWGActionEndInfo contains information about the completion of an action.
Field Summary | |
---|---|
static long |
ACTION_FAILED
Action status - failed |
static long |
ACTION_NOT_PERFORMED
Action status - not performed |
static long |
ACTION_STATUS_UNKNOWN
Action status - unknown |
static long |
ACTION_SUCCESSFUL
Action status - successful |
Constructor Summary | |
---|---|
TWGActionEndInfo(IntelByteBuffer buf)
Constructor for reading data from an IntelByteBuffer at current offset and advance offset. |
|
TWGActionEndInfo(IntelByteBuffer buf,
int off)
Constructor for reading data from an IntelByteBuffer at given offset. |
|
TWGActionEndInfo(long key,
long status)
Constructor for providing a status only. |
|
TWGActionEndInfo(long key,
long status,
java.lang.String msgKey)
Constructor for providing a status and an message. |
|
TWGActionEndInfo(long key,
long status,
java.lang.String msgKey,
java.lang.String bundleName)
Constructor for providing a status and an message from a resource bundle. |
|
TWGActionEndInfo(long key,
long status,
java.lang.String msgKey,
java.lang.String bundleName,
java.lang.String[] msgParms)
Constructor for providing a status and an message from a resource bundle. |
Method Summary | |
---|---|
long |
getKey()
Get log entry key. |
java.lang.String |
getMessage(java.util.Locale locale)
Get message in given locale. |
java.lang.String |
getMessageBundleName()
Get message resource bundle name. |
java.lang.String |
getMessageKey()
Get message key. |
java.lang.String[] |
getMessageParms()
Get message parms. |
long |
getStatus()
Get action end status. |
java.util.Date |
getTime()
Get action end time. |
void |
print()
Print the information. |
int |
readActionEndInfo(IntelByteBuffer buf,
int off)
Read data from an IntelByteBuffer at given offset. |
int |
sizeOfActionEndInfo()
Size of the object. |
static int |
sizeOfHeader()
Size of the header. |
IntelByteBuffer |
toIntelByteBuffer()
Convert to IntelByteBuffer. |
java.lang.String |
toStringStatus()
Convert status to string in default locale. |
static java.lang.String |
toStringStatus(long status)
Convert a status to string in default locale. |
static java.lang.String |
toStringStatus(long status,
java.util.Locale locale)
Convert a status to string in given locale. |
int |
writeIntelByteBuffer(IntelByteBuffer buf)
Write data into an IntelByteBuffer at current offset and advance offset. |
int |
writeIntelByteBuffer(IntelByteBuffer buf,
int off)
Write data into an IntelByteBuffer at given offset. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final long ACTION_SUCCESSFUL
public static final long ACTION_FAILED
public static final long ACTION_NOT_PERFORMED
public static final long ACTION_STATUS_UNKNOWN
Constructor Detail |
public TWGActionEndInfo(long key, long status)
key
- log keystatus
- action statuspublic TWGActionEndInfo(long key, long status, java.lang.String msgKey)
key
- log keystatus
- action statusmsgKey
- message, or key to get message from an internal resource bundlepublic TWGActionEndInfo(long key, long status, java.lang.String msgKey, java.lang.String bundleName)
key
- log keystatus
- action statusmsgKey
- key to get message from the resource bundlebundleName
- name of the resource bundlepublic TWGActionEndInfo(long key, long status, java.lang.String msgKey, java.lang.String bundleName, java.lang.String[] msgParms)
key
- log keystatus
- action statusmsgKey
- key to get message from the resource bundlebundleName
- name of the resource bundlemsgParms
- parameters used to format the messagepublic TWGActionEndInfo(IntelByteBuffer buf)
buf
- bufferpublic TWGActionEndInfo(IntelByteBuffer buf, int off)
buf
- bufferoff
- offset to the start of dataMethod Detail |
public int readActionEndInfo(IntelByteBuffer buf, int off)
buf
- bufferoff
- offset to the start of data
public static int sizeOfHeader()
public int sizeOfActionEndInfo()
public IntelByteBuffer toIntelByteBuffer()
public int writeIntelByteBuffer(IntelByteBuffer buf)
buf
- buffer
public int writeIntelByteBuffer(IntelByteBuffer buf, int off)
buf
- bufferoff
- offset to the start of data
public long getKey()
public java.util.Date getTime()
public long getStatus()
public java.lang.String getMessageKey()
public java.lang.String getMessageBundleName()
public java.lang.String[] getMessageParms()
public java.lang.String getMessage(java.util.Locale locale)
public java.lang.String toStringStatus()
public static java.lang.String toStringStatus(long status)
public static java.lang.String toStringStatus(long status, java.util.Locale locale)
public void print()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |