com.timeindexing.event
Class IndexPrimaryEvent

java.lang.Object
  extended byjava.util.EventObject
      extended bycom.timeindexing.event.IndexEvent
          extended bycom.timeindexing.event.IndexPrimaryEvent
All Implemented Interfaces:
java.io.Serializable

public class IndexPrimaryEvent
extends IndexEvent

An Index Primary Event, which is generated at primary moments. These include: open , close, flush, create.

See Also:
Serialized Form

Field Summary
static int CLOSED
          Used when an Index is closed.
static int CREATED
          Used when an Index is created.
static int FLUSHED
          Used when an Index is flushed.
static int OPENED
          Used when an Index is opened.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
IndexPrimaryEvent(java.lang.String aName, ID anID, int eventSpec, java.lang.Object aSource)
          Construct an IndexPrimaryEvent.
 
Method Summary
 int getEventSpecifier()
          Get the event specifier.
 
Methods inherited from class com.timeindexing.event.IndexEvent
getID, getName, getSource
 
Methods inherited from class java.util.EventObject
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

OPENED

public static final int OPENED
Used when an Index is opened.

See Also:
Constant Field Values

CLOSED

public static final int CLOSED
Used when an Index is closed.

See Also:
Constant Field Values

FLUSHED

public static final int FLUSHED
Used when an Index is flushed.

See Also:
Constant Field Values

CREATED

public static final int CREATED
Used when an Index is created.

See Also:
Constant Field Values
Constructor Detail

IndexPrimaryEvent

public IndexPrimaryEvent(java.lang.String aName,
                         ID anID,
                         int eventSpec,
                         java.lang.Object aSource)
Construct an IndexPrimaryEvent. Constructed from an index name, an index ID, an event specifier, and the source of the event.

Method Detail

getEventSpecifier

public int getEventSpecifier()
Get the event specifier.