ostore.update
Class UpdateStage

java.lang.Object
  |
  +--ostore.update.UpdateStage
All Implemented Interfaces:
EventHandlerIF, ProfilableIF, SingleThreadedEventHandlerIF

public class UpdateStage
extends Object
implements SingleThreadedEventHandlerIF, EventHandlerIF, ProfilableIF

The UpdateStage is responsible for evaluating and applying updates. The UpdateStage receives UpdateRequests from the InnerRing and returns UpdateResults to the InnerRing. It also manages any blocking cache operations caused by the update.

Version:
$Id: UpdateStage.java,v 1.63 2004/05/13 20:17:22 hweather Exp $
Author:
Patrick R. Eaton

Constructor Summary
UpdateStage()
           
 
Method Summary
 void apply_update(UpdateRequest request, UpdateContinuation continuation)
           
 void destroy()
           
 void handleEvent(QueueElementIF element)
           
 void handleEvents(QueueElementIF[] element_array)
           
 void init(ConfigDataIF config)
           
 int profileSize()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UpdateStage

public UpdateStage()
Method Detail

handleEvent

public void handleEvent(QueueElementIF element)
                 throws EventHandlerException
Specified by:
handleEvent in interface EventHandlerIF
EventHandlerException

handleEvents

public void handleEvents(QueueElementIF[] element_array)
                  throws EventHandlerException
Specified by:
handleEvents in interface EventHandlerIF
EventHandlerException

init

public void init(ConfigDataIF config)
          throws Exception
Specified by:
init in interface EventHandlerIF
Exception

destroy

public void destroy()
             throws Exception
Specified by:
destroy in interface EventHandlerIF
Exception

profileSize

public int profileSize()
Specified by:
profileSize in interface ProfilableIF

apply_update

public void apply_update(UpdateRequest request,
                         UpdateContinuation continuation)