|
|||||||||||
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
TWGBaseEvent is a class for creating events in Director.
Field Summary |
---|
Constructor Summary | |
---|---|
TWGBaseEvent(IntelByteBuffer buf)
Constructor for interpreting a provided IntelByteBuffer. |
|
TWGBaseEvent(IntelByteBuffer buf,
int off)
Constructor for interpreting a provided IntelByteBuffer at a given offset. |
|
TWGBaseEvent(java.lang.String family,
java.lang.String[] qualifiers,
short severity,
byte[] managedObjectUniqueId,
byte[] senderUniqueId,
java.lang.String textTemplate,
java.util.Locale textLocale,
java.lang.Object[] subVars,
TWGEventCorrelator correlator,
int flags)
Constructor for events generated within the Director Server about individual workstations and the specific managed object id is not known. |
|
TWGBaseEvent(java.lang.String family,
java.lang.String[] qualifiers,
short severity,
byte[] managedObjectUniqueId,
byte[] senderUniqueId,
java.lang.String textTemplate,
java.util.Locale textLocale,
java.lang.String[] subVars,
TWGEventCorrelator correlator,
int flags)
Constructor for events generated within the Director Server about individual workstations and the specific managed object id is not known. |
|
TWGBaseEvent(java.lang.String family,
java.lang.String[] qualifiers,
short severity,
long managedObjectId,
byte[] senderUniqueId,
java.lang.String textTemplate,
java.util.Locale textLocale,
java.lang.Object[] subVars,
TWGEventCorrelator correlator,
int flags)
Constructor for events generated within the Director Server about individual workstations and the specific managed object id is known. |
|
TWGBaseEvent(java.lang.String family,
java.lang.String[] qualifiers,
short severity,
long managedObjectId,
byte[] senderUniqueId,
java.lang.String textTemplate,
java.util.Locale textLocale,
java.lang.String[] subVars,
TWGEventCorrelator correlator,
int flags)
Constructor for events generated within the Director Server about individual workstations and the specific managed object id is known. |
|
TWGBaseEvent(java.lang.String family,
java.lang.String[] qualifiers,
short severity,
long groupId,
long managedObjectId,
byte[] senderUniqueId,
java.lang.String textTemplate,
java.util.Locale textLocale,
java.lang.Object[] subVars,
TWGEventCorrelator correlator,
int flags)
Constructor for events generated within the Director Server about individual workstations being monitored under a group threshold and the specific managed object id and group id is known. |
|
TWGBaseEvent(java.lang.String family,
java.lang.String[] qualifiers,
short severity,
long groupId,
long managedObjectId,
byte[] senderUniqueId,
java.lang.String textTemplate,
java.util.Locale textLocale,
java.lang.String[] subVars,
TWGEventCorrelator correlator,
int flags)
Constructor for events generated within the Director Server about individual workstations being monitored under a group threshold and the specific managed object id and group id is known. |
|
TWGBaseEvent(TWGBaseEvent baseEvent)
Copy constructor |
Method Summary | |
---|---|
void |
addEventDetail(TWGEventDetail detail)
Add an event detail object |
static long |
byteToLong(byte[] buf)
Convert byte array into a long |
static long |
byteToLong(byte[] buf,
int begin,
int len)
Convert byte array into a long |
TWGEventCorrelator |
getCorrelator()
Get the event correlator |
java.util.Vector |
getDetails()
Get a reference to the Vector of event detail objects |
TWGEventCorrelator |
getEventCorrelator()
Get the event correlator |
TWGEventDetail |
getEventDetail(int index)
Get the TWGEventDetail object referenced by index (Method for migration only) |
TWGEventDetail |
getEventDetail(java.lang.String id)
Get the TWGEventDetail object referenced by id |
java.util.Vector |
getEventDetails()
Get a reference to the Vector of event detail objects |
com.tivoli.twg.engine.TWGManagedObjectFingerprint |
getManagedObjectFingerprint()
Get the TWGManagedObjectFingerprint relative to managed object for which this event was generated |
byte[] |
getManagedObjectUniqueId()
Get the native managed object's unique identifer |
int |
getNumDetails()
Get the number of event detail object attached to this event |
byte[] |
getRawData()
Get the raw data attached to this event |
com.tivoli.twg.engine.TWGManagedObjectFingerprint |
getSenderFingerprint()
Get the TWGManagedObjectFingerprint relative to sender object that generated this event |
java.lang.String |
getSenderPath()
Get the sender path -- This method is retired and therefore unsupported |
byte[] |
getSenderUniqueId()
Get the native sender's unique identifer |
void |
print()
Print the contents of this TWGBaseEvent object. |
int |
readTWGBaseEvent(IntelByteBuffer buf,
int off)
Method for interpreting a provided IntelByteBuffer at a given offset. |
boolean |
removeEventDetail(java.lang.String id)
Remove an event detail object |
void |
setCorrelator(TWGEventCorrelator correlator)
Set the event correlator for this event |
void |
setEventCorrelator(TWGEventCorrelator correlator)
Set the event correlator for this event |
void |
setManagedObjectFingerprint(com.tivoli.twg.engine.TWGManagedObjectFingerprint fingerprint)
Set the TWGManagedObjectFingerprint relative to managed object for which this event was generated |
void |
setManagedObjectUniqueId(byte[] id)
Set the native managed object's unique id |
void |
setRawData(byte[] data)
Set the raw data attached to this event |
void |
setSenderFingerprint(com.tivoli.twg.engine.TWGManagedObjectFingerprint fingerprint)
Set the TWGManagedObjectFingerprint relative to sender object that generated this event |
void |
setSenderPath(java.lang.String s)
Set the sender path -- This method is retired and therefore unsupported |
void |
setSenderUniqueId(byte[] id)
Set the native sender's unique id |
int |
sizeOf()
Determine the size of the entire TWGBaseEvent object |
static int |
sizeOfHdr()
Determine the size of the TWGBaseEvent header |
int |
sizeOfRawData()
Determine the size of any raw data appended to the base event |
int |
sizeOfTWGBaseEvent()
Determine the size of the entire TWGBaseEvent object |
IntelByteBuffer |
toIntelByteBuffer()
Convert the TWGBaseEvent 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 action parm into provided IntelByteBuffer starting at a given offset. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public TWGBaseEvent(java.lang.String family, java.lang.String[] qualifiers, short severity, long managedObjectId, byte[] senderUniqueId, java.lang.String textTemplate, java.util.Locale textLocale, java.lang.String[] subVars, TWGEventCorrelator correlator, int flags)
family
- String representing the highest level qualifier of the event typequalifiers
- Array of strings comprising the remainder of the event typeseverity
- Severity of the event (inplies urgency)managedObjectId
- Persistent object id of managed object (who the event is about)textTemplate
- template for the text of the eventtextLocale
- locale of the text templatesubVars
- Array of objects that replace the variables of the text template
to form the text.correlator
- Instance of the event.flags
- Bit fields for various things.public TWGBaseEvent(java.lang.String family, java.lang.String[] qualifiers, short severity, long managedObjectId, byte[] senderUniqueId, java.lang.String textTemplate, java.util.Locale textLocale, java.lang.Object[] subVars, TWGEventCorrelator correlator, int flags)
family
- String representing the highest level qualifier of the event typequalifiers
- Array of strings comprising the remainder of the event typeseverity
- Severity of the event (inplies urgency)managedObjectId
- Persistent object id of managed object (who the event is about)textTemplate
- template for the text of the eventtextLocale
- locale of the text templatesubVars
- Array of objects that replace the variables of the text template
to form the text.correlator
- Instance of the event.flags
- Bit fields for various things.public TWGBaseEvent(java.lang.String family, java.lang.String[] qualifiers, short severity, long groupId, long managedObjectId, byte[] senderUniqueId, java.lang.String textTemplate, java.util.Locale textLocale, java.lang.String[] subVars, TWGEventCorrelator correlator, int flags)
family
- String representing the highest level qualifier of the event typequalifiers
- Array of strings comprising the remainder of the event typeseverity
- Severity of the event (implies urgency)managedObjectId
- Persistent object id of managed object (who the event is about)groupId
- Persistent object id of group object that contains this managed objecttextTemplate
- template for the text of the eventtextLocale
- locale of the text templatesubVars
- Array of objects that replace the variables of the text template
to form the text.correlator
- Instance of the event.flags
- Bit fields for various things.public TWGBaseEvent(java.lang.String family, java.lang.String[] qualifiers, short severity, long groupId, long managedObjectId, byte[] senderUniqueId, java.lang.String textTemplate, java.util.Locale textLocale, java.lang.Object[] subVars, TWGEventCorrelator correlator, int flags)
family
- String representing the highest level qualifier of the event typequalifiers
- Array of strings comprising the remainder of the event typeseverity
- Severity of the event (implies urgency)managedObjectId
- Persistent object id of managed object (who the event is about)groupId
- Persistent object id of group object that contains this managed objecttextTemplate
- template for the text of the eventtextLocale
- locale of the text templatesubVars
- Array of objects that replace the variables of the text template
to form the text.correlator
- Instance of the event.flags
- Bit fields for various things.public TWGBaseEvent(java.lang.String family, java.lang.String[] qualifiers, short severity, byte[] managedObjectUniqueId, byte[] senderUniqueId, java.lang.String textTemplate, java.util.Locale textLocale, java.lang.String[] subVars, TWGEventCorrelator correlator, int flags)
family
- String representing the highest level qualifier of the event typequalifiers
- Array of strings comprising the remainder of the event typeseverity
- Severity of the event (implies urgency)textTemplate
- template for the text of the eventtextLocale
- locale of the text templatesubVars
- Array of strings that replace the variables of the text template
to form the text.correlator
- Instance of the event.flags
- Bit fields for various things.public TWGBaseEvent(java.lang.String family, java.lang.String[] qualifiers, short severity, byte[] managedObjectUniqueId, byte[] senderUniqueId, java.lang.String textTemplate, java.util.Locale textLocale, java.lang.Object[] subVars, TWGEventCorrelator correlator, int flags)
family
- String representing the highest level qualifier of the event typequalifiers
- Array of strings comprising the remainder of the event typeseverity
- Severity of the event (implies urgency)textTemplate
- template for the text of the eventtextLocale
- locale of the text templatesubVars
- Array of objects that replace the variables of the text template
to form the text.correlator
- Instance of the event.flags
- Bit fields for various things.public TWGBaseEvent(TWGBaseEvent baseEvent)
public TWGBaseEvent(IntelByteBuffer buf)
buf
- IntelByteBuffer from which data should be readpublic TWGBaseEvent(IntelByteBuffer buf, int off)
buf
- IntelByteBuffer from which data should be readoff
- offset from the current relative start of the provided IntelByteBufferMethod Detail |
public void setManagedObjectUniqueId(byte[] id)
id
- 64-bit native client idpublic void setSenderUniqueId(byte[] id)
id
- 64-bit native client idpublic void addEventDetail(TWGEventDetail detail)
detail
- Event detail object to be addedpublic boolean removeEventDetail(java.lang.String id)
id
- id of detail to be removed
public TWGEventDetail getEventDetail(int index)
index
- of EventDetail in Vector
public TWGEventDetail getEventDetail(java.lang.String id)
id
- id of detail to be returned
public int getNumDetails()
public java.util.Vector getDetails()
public java.util.Vector getEventDetails()
public java.lang.String getSenderPath()
public void setSenderPath(java.lang.String s)
public int sizeOfRawData()
public byte[] getRawData()
public void setRawData(byte[] data)
data
- Reference to an array of raw data bytespublic byte[] getManagedObjectUniqueId()
public com.tivoli.twg.engine.TWGManagedObjectFingerprint getManagedObjectFingerprint()
public void setManagedObjectFingerprint(com.tivoli.twg.engine.TWGManagedObjectFingerprint fingerprint)
public byte[] getSenderUniqueId()
public com.tivoli.twg.engine.TWGManagedObjectFingerprint getSenderFingerprint()
public void setSenderFingerprint(com.tivoli.twg.engine.TWGManagedObjectFingerprint fingerprint)
public TWGEventCorrelator getCorrelator()
public TWGEventCorrelator getEventCorrelator()
public void setCorrelator(TWGEventCorrelator correlator)
correlator
- Event correlatorpublic void setEventCorrelator(TWGEventCorrelator correlator)
correlator
- Event correlatorpublic IntelByteBuffer toIntelByteBuffer()
toIntelByteBuffer
in class TWGPartialEvent
public int writeIntelByteBuffer(IntelByteBuffer buf)
writeIntelByteBuffer
in class TWGPartialEvent
buf
- IntelByteBuffer into which data should be written
public int writeIntelByteBuffer(IntelByteBuffer buf, int off)
writeIntelByteBuffer
in class TWGPartialEvent
buf
- IntelByteBuffer into which data should be writtenoff
- offset from the current relative start of the provided IntelByteBuffer
public int readTWGBaseEvent(IntelByteBuffer buf, int off)
buf
- IntelByteBuffer from which data should be readoff
- offset from the current relative start of the provided IntelByteBuffer
public int sizeOf()
sizeOf
in class TWGPartialEvent
public static int sizeOfHdr()
public int sizeOfTWGBaseEvent()
public void print()
print
in class TWGPartialEvent
public java.lang.String toString()
toString
in class TWGPartialEvent
public static long byteToLong(byte[] buf, int begin, int len)
buf
- - buffer to be convertedbegin
- - index to startlen
- - length to convertpublic static long byteToLong(byte[] buf)
buf
- - buffer to be converted
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |