|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.tivoli.twg.alertmgr.TWGPublish
com.tivoli.twg.alertmgr.TWGPublishTextTemplate
TWGPublishTextTemplate is used to publish the event text (as a template) to the event server. Publishing the event text in multiple locale specific representations makes it possible for the event server console to show event information in various languages.
Field Summary |
---|
Fields inherited from class com.tivoli.twg.alertmgr.TWGPublish |
---|
VERSION_ONE |
Constructor Summary | |
---|---|
TWGPublishTextTemplate(IntelByteBuffer buf)
Constructor for interpreting a provided IntelByteBuffer. |
|
TWGPublishTextTemplate(IntelByteBuffer buf,
int off)
Constructor for interpreting a provided IntelByteBuffer at a given offset. |
|
TWGPublishTextTemplate(java.lang.String family,
java.lang.String[] qualifiers,
int version,
java.util.Locale locale,
java.lang.String template)
Constructor. |
|
TWGPublishTextTemplate(java.lang.String family,
java.lang.String[] qualifiers,
java.util.Locale locale,
java.lang.String template)
Constructor with default version. |
|
TWGPublishTextTemplate(TWGPublishTextTemplate ptt)
Copy Constructor. |
Method Summary | |
---|---|
java.lang.Object |
clone()
Copy object. |
java.lang.String |
getTextTemplate()
Get text template. |
int |
getTypeId()
Get type ID. |
void |
print()
Print the contents of the TWGPublishTextTemplate object. |
int |
readTWGPublishTextTemplate(IntelByteBuffer buf,
int off)
Method for interpreting a provided IntelByteBuffer at a given offset. |
void |
setTextTemplate(java.lang.String template)
Set text template. |
int |
sizeOf()
Determine the size of the entire TWGPublishTextTemplate object. |
static int |
sizeOfHdr()
Determine the size of the TWGPublishTextTemplate header. |
int |
sizeOfTWGPublishTextTemplate()
Determine the size of the entire TWGPublishTextTemplate object. |
IntelByteBuffer |
toIntelByteBuffer()
Convert the TWGPublishTextTemplate into IntelByteBuffer representation. |
int |
writeIntelByteBuffer(IntelByteBuffer buf)
Write contents of this object into an IntelByteBuffer. |
int |
writeIntelByteBuffer(IntelByteBuffer buf,
int off)
Write contents of this object into provided IntelByteBuffer starting at a given offset. |
Methods inherited from class com.tivoli.twg.alertmgr.TWGPublish |
---|
getLocale, getNumTypeQualifiers, getType, getTypeArray, getTypeFamily, getTypeQualifiers, getVersion, readTWGPublish, setLocale, setVersion, sizeOfTWGPublish |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TWGPublishTextTemplate(java.lang.String family, java.lang.String[] qualifiers, int version, java.util.Locale locale, java.lang.String template)
family
- String representing the highest level qualifier of the event typequalifiers
- Array of strings comprising the remainder of the event typeversion
- Version of data being publishedlocale
- Locale of data being publishedtemplate
- Template of the event textpublic TWGPublishTextTemplate(java.lang.String family, java.lang.String[] qualifiers, java.util.Locale locale, java.lang.String template)
family
- String representing the highest level qualifier of the event typequalifiers
- Array of strings comprising the remainder of the event typelocale
- Locale of data being publishedtemplate
- Template of the event textpublic TWGPublishTextTemplate(TWGPublishTextTemplate ptt)
ptt
- TWGPublishTextTemplate object to be copiedpublic TWGPublishTextTemplate(IntelByteBuffer buf)
buf
- IntelByteBuffer from which data should be readpublic TWGPublishTextTemplate(IntelByteBuffer buf, int off)
buf
- IntelByteBuffer from which data should be readoff
- offset from the current relative start of the provided IntelByteBufferMethod Detail |
public java.lang.Object clone()
clone
in class TWGPublish
public void setTextTemplate(java.lang.String template)
template
- template of the event textpublic java.lang.String getTextTemplate()
public IntelByteBuffer toIntelByteBuffer()
toIntelByteBuffer
in class TWGPublish
public int writeIntelByteBuffer(IntelByteBuffer buf)
writeIntelByteBuffer
in class TWGPublish
buf
- IntelByteBuffer into which data should be written
public int writeIntelByteBuffer(IntelByteBuffer buf, int off)
writeIntelByteBuffer
in class TWGPublish
buf
- IntelByteBuffer into which data should be writtenoff
- offset from the current relative start of the provided IntelByteBuffer
public int readTWGPublishTextTemplate(IntelByteBuffer buf, int off)
buf
- IntelByteBuffer from which data should be readoff
- offset from the current relative start of the provided IntelByteBuffer
public static int sizeOfHdr()
public int sizeOfTWGPublishTextTemplate()
public int sizeOf()
sizeOf
in class TWGPublish
public void print()
print
in class TWGPublish
public int getTypeId()
getTypeId
in class TWGPublish
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |