ePOST API

rice.post.log
Class Log.AddLogEntryTask

java.lang.Object
  extended by rice.post.log.Log.AddLogEntryTask
All Implemented Interfaces:
Continuation
Enclosing class:
Log

protected class Log.AddLogEntryTask
extends java.lang.Object
implements Continuation

This class encapsulates the logic needed to add a log entry to the current log.


Nested Class Summary
 
Nested classes/interfaces inherited from interface rice.Continuation
Continuation.ErrorContinuation, Continuation.ExternalContinuation, Continuation.ExternalContinuationRunnable, Continuation.ExternalRunnable, Continuation.ListenerContinuation, Continuation.MultiContinuation, Continuation.NamedContinuation, Continuation.SimpleContinuation, Continuation.StandardContinuation
 
Field Summary
static int STATE_1
           
static int STATE_2
           
 
Constructor Summary
protected Log.AddLogEntryTask(LogEntry entry, Continuation command)
          This construct will build an object which will call the given command once processing has been completed, and will provide a result.
 
Method Summary
 void receiveException(java.lang.Exception result)
          Called when a previously requested result causes an exception
 void receiveResult(java.lang.Object o)
          Called when a previously requested result is now availble.
 void setCommand(Continuation command)
           
 void start()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STATE_1

public static final int STATE_1
See Also:
Constant Field Values

STATE_2

public static final int STATE_2
See Also:
Constant Field Values
Constructor Detail

Log.AddLogEntryTask

protected Log.AddLogEntryTask(LogEntry entry,
                              Continuation command)
This construct will build an object which will call the given command once processing has been completed, and will provide a result.

Parameters:
entry - The log entry to add
command - The command to call
Method Detail

setCommand

public void setCommand(Continuation command)

start

public void start()

receiveResult

public void receiveResult(java.lang.Object o)
Description copied from interface: Continuation
Called when a previously requested result is now availble.

Specified by:
receiveResult in interface Continuation
Parameters:
o - The result of the command.

receiveException

public void receiveException(java.lang.Exception result)
Called when a previously requested result causes an exception

Specified by:
receiveException in interface Continuation
Parameters:
result - The exception caused

ePOST API

Copyright © 2001-2005 - Rice Pastry.