|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.tivoli.twg.alertmgr.TWGEventCorrelator
TWGEventCorrelator is a class for defining an instance of a particular type event on a managed object. The presence of the event correlator in conjunction with the TWGBaseEvent.EVENT_FLAGS_ALERT and TWGBaseEvent.EVENT_FLAGS_RESOLUTION flags to distinguish when a managed object is in error-state and when that error-state has been clear. To establish an error-state, the event sender sends a base event (with alert flag) including a newly requested event correlator. It is then the responsibility of the sender to remember the event correlator until problem reported in the event (for this managed object) has been fixed. The event sender can now clear the error-state by sending a second base event (with resolution flag) including the saved event correlator. This signals the Event Server that the problem has been rectified. Now, if same problem is detected again, a new correlator should be requested before sending an alert. In an effort to avoid collisions between event correlators, each event sender is assigned a unique subsystem id using the TWGEventRouter.RequestEventCorrelatorPrefixCommand. Once requested, the event sender uses the subsystem id as a key to request a new event correlator.
Constructor Summary | |
---|---|
TWGEventCorrelator(int id)
Constructor for requesting a new event correlator. |
|
TWGEventCorrelator(IntelByteBuffer buf)
Constructor for interpreting a provided IntelByteBuffer. |
|
TWGEventCorrelator(IntelByteBuffer buf,
int off)
Constructor for interpreting a provided IntelByteBuffer at a given offset. |
|
TWGEventCorrelator(int id,
long inst)
Constructor for reconstructing an old event correlator from its subcomponents. |
|
TWGEventCorrelator(TWGEventCorrelator ec)
Copy Constructor. |
Method Summary | |
---|---|
boolean |
equals(TWGEventCorrelator ec)
Determine if this event correlator is equivalent to the one provided |
long |
getInstanceId()
Get instance id. |
int |
getSubsystemId()
Get subsystem id. |
void |
print()
Print the contents of the event correlator |
int |
readTWGEventCorrelator(IntelByteBuffer buf,
int off)
Method for interpreting a provided IntelByteBuffer at a given offset. |
void |
setInstanceId(long id)
Set instance id. |
void |
setSubsystemId(int id)
Set subsystem id. |
static int |
sizeOfHdr()
Determine the size of the TWGEventCorrelator header |
int |
sizeOfTWGEventCorrelator()
Determine the size of the entire TWGEventCorrelator object |
IntelByteBuffer |
toIntelByteBuffer()
Convert the TWGEventCorrelator 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 TWGEventCorrelator(int id)
id
- subsystem id of the event sender (assigned by the event router)public TWGEventCorrelator(int id, long inst)
id
- subsystem id of the event sender (assigned by the event router)inst
- instance id of the eventpublic TWGEventCorrelator(TWGEventCorrelator ec)
ec
- event correlator to be copied.public TWGEventCorrelator(IntelByteBuffer buf)
buf
- IntelByteBuffer from which data should be readpublic TWGEventCorrelator(IntelByteBuffer buf, int off)
buf
- IntelByteBuffer from which data should be readoff
- offset from the current relative start of the provided IntelByteBufferMethod Detail |
public boolean equals(TWGEventCorrelator ec)
ec
- event correlator to be compared.
public int getSubsystemId()
public void setSubsystemId(int id)
public long getInstanceId()
public void setInstanceId(long id)
id
- instance id of the eventpublic 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 static int sizeOfHdr()
public int sizeOfTWGEventCorrelator()
public int readTWGEventCorrelator(IntelByteBuffer buf, int off)
buf
- IntelByteBuffer from which data should be readoff
- offset from the current relative start of the provided IntelByteBuffer
public void print()
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |