com.tivoli.twg.alertmgr
Class TWGUnpublishEventType

java.lang.Object
  extended bycom.tivoli.twg.alertmgr.TWGUnpublish
      extended bycom.tivoli.twg.alertmgr.TWGUnpublishEventType
All Implemented Interfaces:
java.lang.Cloneable

public class TWGUnpublishEventType
extends TWGUnpublish
implements java.lang.Cloneable

TWGUnpublishEventType is used to unpublish the EventType and alias representations of the event to the event server. Event generators use the TWGUnpublishEventType to tell the event server that events of this type (family + qualifiers) will not come and that the event type should be deleted from the database.


Field Summary
 
Fields inherited from class com.tivoli.twg.alertmgr.TWGUnpublish
VERSION_ONE
 
Constructor Summary
TWGUnpublishEventType(IntelByteBuffer buf)
          Constructor for interpreting a provided IntelByteBuffer.
TWGUnpublishEventType(IntelByteBuffer buf, int off)
          Constructor for interpreting a provided IntelByteBuffer at a given offset.
TWGUnpublishEventType(java.lang.String family, java.lang.String[] qualifiers)
          Constructor with default version.
TWGUnpublishEventType(java.lang.String family, java.lang.String[] qualifiers, int version)
          Constructor.
TWGUnpublishEventType(TWGUnpublishEventType unpub)
          Copy Constructor.
 
Method Summary
 java.lang.Object clone()
          Copy object.
 int getTypeId()
          Get type ID.
 
Methods inherited from class com.tivoli.twg.alertmgr.TWGUnpublish
getNumTypeQualifiers, getType, getTypeFamily, getTypeQualifiers, getVersion, print, readTWGUnpublish, setVersion, sizeOf, sizeOfHdr, sizeOfTWGUnpublish, toIntelByteBuffer, writeIntelByteBuffer, writeIntelByteBuffer
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TWGUnpublishEventType

public TWGUnpublishEventType(java.lang.String family,
                             java.lang.String[] qualifiers,
                             int version)
Constructor.

Parameters:
family - String representing the highest level qualifier of the event type
qualifiers - Array of strings comprising the remainder of the event type
version - Version of data being unpublished

TWGUnpublishEventType

public TWGUnpublishEventType(java.lang.String family,
                             java.lang.String[] qualifiers)
Constructor with default version.

Parameters:
family - String representing the highest level qualifier of the event type
qualifiers - Array of strings comprising the remainder of the event type

TWGUnpublishEventType

public TWGUnpublishEventType(TWGUnpublishEventType unpub)
Copy Constructor.

Parameters:
unpub - TWGUnpublishEventType object to be copied

TWGUnpublishEventType

public TWGUnpublishEventType(IntelByteBuffer buf)
Constructor for interpreting a provided IntelByteBuffer. Use the current offset and start ptrs within the provided IntelByteBuffer; upon return the buffer's offset ptr is advanced to reflect the number of bytes read.

Parameters:
buf - IntelByteBuffer from which data should be read

TWGUnpublishEventType

public TWGUnpublishEventType(IntelByteBuffer buf,
                             int off)
Constructor for interpreting a provided IntelByteBuffer at a given offset.

Parameters:
buf - IntelByteBuffer from which data should be read
off - offset from the current relative start of the provided IntelByteBuffer
Method Detail

clone

public java.lang.Object clone()
Copy object.

Overrides:
clone in class TWGUnpublish
Returns:
copy of the TWGUnpublishEventType object

getTypeId

public int getTypeId()
Get type ID. Used by engine to match publish and unpublish.

Overrides:
getTypeId in class TWGUnpublish
Returns:
an ID.