|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.tivoli.twg.alertmgr.TWGDetail
TWGDetail is sub-component of a TWGPublishDetailCommand used to house the event detail's presentation (label and reference) and data type. An Event detail's presentational strings may be published to the Director in an effort to remove the need for sending it each time data is sent. In addition it offers the added fexibility to publish multiple language-dependent versions of these strings.
Field Summary | |
---|---|
static int |
TYPE_BOOLEAN
|
static int |
TYPE_BYTE
|
static int |
TYPE_CHAR
|
static int |
TYPE_DATETIME
|
static int |
TYPE_DOUBLE
|
static int |
TYPE_FLOAT
|
static int |
TYPE_INT
|
static int |
TYPE_LONG
|
static int |
TYPE_OCTET
|
static int |
TYPE_SHORT
|
static int |
TYPE_STRING
|
static int |
TYPE_UNICHAR
|
static int |
TYPE_UNKNOWN
|
Constructor Summary | |
---|---|
TWGDetail(IntelByteBuffer buf)
Constructor for interpreting a provided IntelByteBuffer. |
|
TWGDetail(IntelByteBuffer buf,
int off)
Constructor for interpreting a provided IntelByteBuffer at a given offset. |
|
TWGDetail(java.lang.String id,
java.lang.String label,
java.lang.String reference)
Constructor for detail data (used for migration purposes only). |
|
TWGDetail(java.lang.String id,
java.lang.String label,
java.lang.String reference,
int dataType)
Constructor for detail data. |
|
TWGDetail(TWGDetail d)
Copy Constructor |
Method Summary | |
---|---|
java.lang.Object |
clone()
Copy the object |
boolean |
equals(java.lang.Object obj)
Equals. |
int |
getDataType()
Get the data type to be published |
java.lang.String |
getId()
Get the id of the data being published |
java.lang.String |
getLabel()
Get the label to be published |
java.lang.String |
getReference()
Get the reference to be published |
void |
print()
Print the detail. |
int |
readTWGDetail(IntelByteBuffer buf,
int off)
Method for interpreting a provided IntelByteBuffer at a given offset. |
void |
setLabel(java.lang.String label)
Set the label to be published |
static int |
sizeOfHdr()
Determine the size of the TWGDetail header |
int |
sizeOfTWGDetail()
Determine the size of the entire TWGDetail object |
IntelByteBuffer |
toIntelByteBuffer()
Convert the TWGDetail into IntelByteBuffer representation. |
int |
writeIntelByteBuffer(IntelByteBuffer buf)
Write contents of this object into an IntelByteBuffer. |
int |
writeIntelByteBuffer(IntelByteBuffer buf,
int off)
Write action parm into provided IntelByteBuffer starting at a given offset. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int TYPE_BYTE
public static final int TYPE_CHAR
public static final int TYPE_UNICHAR
public static final int TYPE_SHORT
public static final int TYPE_INT
public static final int TYPE_LONG
public static final int TYPE_BOOLEAN
public static final int TYPE_FLOAT
public static final int TYPE_DOUBLE
public static final int TYPE_OCTET
public static final int TYPE_STRING
public static final int TYPE_DATETIME
public static final int TYPE_UNKNOWN
Constructor Detail |
public TWGDetail(java.lang.String id, java.lang.String label, java.lang.String reference, int dataType)
id
- Unique string to be referenced by TWGEventDetail objectslabel
- Presentation label for the data referenced by idreference
- Architectual reference (source) of data provideddataType
- Event detail data typepublic TWGDetail(java.lang.String id, java.lang.String label, java.lang.String reference)
id
- Unique string to be referenced by TWGEventDetail objectslabel
- Presentation label for the data referenced by idreference
- Architectual reference (source) of data providedpublic TWGDetail(TWGDetail d)
d
- TWGDetail object to be copied.public TWGDetail(IntelByteBuffer buf)
buf
- IntelByteBuffer from which data should be readpublic TWGDetail(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()
public java.lang.String getId()
public void setLabel(java.lang.String label)
label
- string being publishedpublic java.lang.String getLabel()
public java.lang.String getReference()
public int getDataType()
public boolean equals(java.lang.Object obj)
obj
- object to be compared with
public IntelByteBuffer toIntelByteBuffer()
public int writeIntelByteBuffer(IntelByteBuffer buf)
buf
- IntelByteBuffer into which data should be written
public int writeIntelByteBuffer(IntelByteBuffer buf, int off)
buf
- IntelByteBuffer into which data should be writtenoff
- offset from the current relative start of the provided IntelByteBuffer
public int readTWGDetail(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 sizeOfTWGDetail()
public void print()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |