one.world.io
Class FlushEvent

java.lang.Object
  |
  +--one.world.core.Tuple
        |
        +--one.world.core.Event
              |
              +--one.world.util.TypedEvent
                    |
                    +--one.world.io.FlushEvent
All Implemented Interfaces:
Cloneable, Serializable

public class FlushEvent
extends TypedEvent

Implementation of a flush event. Flush events are used to request and confirm the flushing of a tuple store, whose durability flag is false. Flush requests on tuple stores, whose durability flag is true, have no effect and are immediately confirmed.

Version:
$Revision: 1.3 $
See Also:
OptionEvent, Serialized Form

Field Summary
static int REQUEST
          The type code for a flush request.
static int RESPONSE
          The type code for a flush response.
 
Fields inherited from class one.world.util.TypedEvent
type
 
Fields inherited from class one.world.core.Event
closure, source
 
Fields inherited from class one.world.core.Tuple
CLOSURE, id, ID, META_DATA, metaData, SOURCE
 
Constructor Summary
FlushEvent()
          Create a new, empty flush event.
FlushEvent(EventHandler source, Object closure, int type)
          Create a new flush event.
 
Method Summary
 void validate()
          Validate this flush event.
 
Methods inherited from class one.world.core.Tuple
clone, containsNonSymbolicHandler, equals, fields, get, getMetaData, getType, hasField, hashCode, hasMetaData, remove, set, setMetaData, toString, wrap
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

REQUEST

public static final int REQUEST
The type code for a flush request.

RESPONSE

public static final int RESPONSE
The type code for a flush response.
Constructor Detail

FlushEvent

public FlushEvent()
Create a new, empty flush event.

FlushEvent

public FlushEvent(EventHandler source,
                  Object closure,
                  int type)
Create a new flush event.
Parameters:
source - The source for the new flush event.
closure - The closure for the new flush event.
type - The type for the new flush event.
Method Detail

validate

public void validate()
              throws TupleException
Validate this flush event.
Overrides:
validate in class Event
Following copied from class: one.world.core.Tuple
Throws:
TupleException - Signals that the tuple is either malformed (i.e., does not conform to the tuple specification) or invalid (i.e., does not conform to the semantic constraints of its type).
See Also:
MalformedTupleException, InvalidTupleException, Type.validate(Class)


(C) Copyright 2001 UW CSE