|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.tivoli.twg.alertmgr.TWGPartialEvent
com.tivoli.twg.alertmgr.TWGBaseEvent
com.tivoli.twg.alertmgr.TWGEvent
TWGEvent extends the information contained in TWGBaseEvent class to include the locale specific data needed for display on the Director console.
Field Summary | |
---|---|
static int |
STATE_COUNT
|
Constructor Summary | |
---|---|
TWGEvent(IntelByteBuffer buf)
Constructor for interpreting a provided IntelByteBuffer. |
|
TWGEvent(IntelByteBuffer buf,
int off)
Constructor for interpreting a provided IntelByteBuffer. |
|
TWGEvent(TWGBaseEvent baseEvent)
Deprecated. |
|
TWGEvent(TWGBaseEvent baseEvent,
java.util.Locale locale)
Constructer |
|
TWGEvent(TWGEvent event)
Copy Constructer |
Method Summary | |
---|---|
java.lang.String |
expandString(java.lang.String input)
Expand all the ampersanded words for the event data it represents. |
java.lang.String |
expandString(java.lang.String input,
java.util.TimeZone timeZone)
Expand all the ampersanded words for the event data it represents. |
static java.lang.String |
expandString(TWGEvent event,
java.lang.String input,
java.util.Locale locale)
Deprecated. replaced with instance method expandString(String input) |
static java.lang.String |
expandString(TWGEvent event,
java.lang.String input,
java.util.Locale locale,
java.util.TimeZone timeZone)
Deprecated. replaced with instance method expandString(String input, TimeZone timeZone) |
java.util.Locale |
getLocale()
Get the event locale |
java.lang.String |
getLocalizedTextTemplate()
Get the localized vesrion of the event text template |
java.lang.String |
getLocalizedTypeFamily()
Get the localized vesrion of the event type family |
int |
getState()
Get the state of the event (This method is has been retired) |
java.lang.String |
getText()
Get the localized vesrion of the formatted event text |
java.lang.String |
getType()
Get the localized version of the event type |
void |
print()
Print the contents of the TWGEvent object |
int |
readTWGEvent(IntelByteBuffer buf,
int off)
Constructor for interpreting a provided IntelByteBuffer at a given offset. |
void |
setLocalizedTextTemplate(java.lang.String textTemplate)
Set the localized vesrion of the event text template |
void |
setLocalizedTypeFamily(java.lang.String typeFamily)
Set the localized vesrion of the event type family |
void |
setReplacementQualifiers(java.lang.String[] qualifiers)
Set the localized version of the event type qualifiers |
void |
setState(int state)
Set the state of the event (This method is has been retired) |
int |
sizeOf()
Determine the size of the entire TWGEvent object |
static int |
sizeOfHdr()
Determine the size of the TWGEvent header |
int |
sizeOfTWGEvent()
Determine the size of the entire TWGEvent object |
IntelByteBuffer |
toIntelByteBuffer()
Convert the TWGEvent into IntelByteBuffer representation. |
java.lang.String |
toString()
|
int |
writeIntelByteBuffer(IntelByteBuffer buf)
Write contents of this object into an IntelByteBuffer. |
int |
writeIntelByteBuffer(IntelByteBuffer buf,
int off)
Write contents of this object into an IntelByteBuffer. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int STATE_COUNT
Constructor Detail |
public TWGEvent(TWGEvent event)
public TWGEvent(TWGBaseEvent baseEvent)
baseEvent
- base eventpublic TWGEvent(TWGBaseEvent baseEvent, java.util.Locale locale)
baseEvent
- base eventlocale
- desired localepublic TWGEvent(IntelByteBuffer buf)
buf
- IntelByteBuffer from which data should be readpublic TWGEvent(IntelByteBuffer buf, int off)
Method Detail |
public int sizeOf()
sizeOf
in class TWGBaseEvent
public static int sizeOfHdr()
public int sizeOfTWGEvent()
public IntelByteBuffer toIntelByteBuffer()
toIntelByteBuffer
in class TWGBaseEvent
public int writeIntelByteBuffer(IntelByteBuffer buf)
writeIntelByteBuffer
in class TWGBaseEvent
buf
- IntelByteBuffer into which data should be written
public int writeIntelByteBuffer(IntelByteBuffer buf, int off)
writeIntelByteBuffer
in class TWGBaseEvent
buf
- IntelByteBuffer into which data should be writtenoff
- offset from the current relative start of the provided IntelByteBuffer
public int readTWGEvent(IntelByteBuffer buf, int off)
buf
- IntelByteBuffer from which data should be readoff
- offset from the current relative start of the provided IntelByteBufferpublic java.lang.String getType()
getType
in class TWGPartialEvent
public void setReplacementQualifiers(java.lang.String[] qualifiers)
setReplacementQualifiers
in class TWGPartialEvent
qualifiers
- array of localized event qualifier stringspublic java.lang.String getText()
getText
in class TWGPartialEvent
public java.lang.String getLocalizedTextTemplate()
public void setLocalizedTextTemplate(java.lang.String textTemplate)
textTemplate
- localized version of the event text templatepublic java.lang.String getLocalizedTypeFamily()
public void setLocalizedTypeFamily(java.lang.String typeFamily)
setLocalizedTypeFamily
in class TWGPartialEvent
public int getState()
public void setState(int state)
public java.util.Locale getLocale()
public static java.lang.String expandString(TWGEvent event, java.lang.String input, java.util.Locale locale)
event
- - source event to use when resolving ampersanded wordsinput
- - string containing ampersanded wordslocale
- - locale of desired expanded ampersanded words
public static java.lang.String expandString(TWGEvent event, java.lang.String input, java.util.Locale locale, java.util.TimeZone timeZone)
event
- - source event to use when resolving ampersanded wordsinput
- - string containing ampersanded wordslocale
- - locale of desired expanded ampersanded wordstimeZone
- - time zone relative to desired expanded ampersanded words
public java.lang.String expandString(java.lang.String input)
input
- - string containing ampersanded words
public java.lang.String expandString(java.lang.String input, java.util.TimeZone timeZone)
input
- - string containing ampersanded wordstimeZone
- - time zone relative to desired expanded ampersanded words
public void print()
print
in class TWGBaseEvent
public java.lang.String toString()
toString
in class TWGBaseEvent
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |