ostore.archive
Class TputGenerateChkptTest

java.lang.Object
  |
  +--ostore.archive.TputGenerateChkptTest
All Implemented Interfaces:
EventHandlerIF, SingleThreadedEventHandlerIF

public class TputGenerateChkptTest
extends Object
implements SingleThreadedEventHandlerIF, EventHandlerIF

TODO

Version:
$Id: TputGenerateChkptTest.java,v 1.8 2004/05/13 20:13:06 hweather Exp $
Author:
Sean C. Rhea & Jeremy Stribling

Nested Class Summary
static class TputGenerateChkptTest.AlarmEvent
           
static class TputGenerateChkptTest.RemoveGuidsHelper
          RemoveGuidsHelper removes guids from all previously 'archived' blocks.
 
Field Summary
protected  SecureHash _principal_guid
           
protected  SecureHash _self_guid
           
protected  Classifier classifier
           
protected static boolean DEBUG
           
protected  SinkIF netsink
           
protected  NodeId node_id
           
protected  long start_time
           
protected  String TAG
           
protected  SinkIF this_sink
           
 
Constructor Summary
TputGenerateChkptTest()
           
 
Method Summary
 void destroy()
           
static void executeRemoveGuids(CacheableIdentity topBlockId, TputGenerateChkptTest.RemoveGuidsHelper helper, HandleStore handleStore, DataCache cache, String method, String stageName, SecureHash self_guid, NodeId node_id)
          executeRemoveGuids removes all guids from all blocks named by the topBlockId.
protected  void fill_queue()
           
protected  void got_msg(GenerateFragsChkptResp msg)
           
protected  void handle_update_result(UpdateResult resp)
           
 void handleEvent(QueueElementIF item)
           
 void handleEvents(QueueElementIF[] items)
           
protected  void init_object(int object_num)
           
 void init(ConfigDataIF config)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TAG

protected String TAG

DEBUG

protected static final boolean DEBUG
See Also:
Constant Field Values

this_sink

protected SinkIF this_sink

netsink

protected SinkIF netsink

start_time

protected long start_time

classifier

protected Classifier classifier

node_id

protected NodeId node_id

_self_guid

protected SecureHash _self_guid

_principal_guid

protected SecureHash _principal_guid
Constructor Detail

TputGenerateChkptTest

public TputGenerateChkptTest()
Method Detail

init

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

handleEvent

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

handleEvents

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

destroy

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

init_object

protected void init_object(int object_num)

handle_update_result

protected void handle_update_result(UpdateResult resp)

fill_queue

protected void fill_queue()

got_msg

protected void got_msg(GenerateFragsChkptResp msg)

executeRemoveGuids

public static void executeRemoveGuids(CacheableIdentity topBlockId,
                                      TputGenerateChkptTest.RemoveGuidsHelper helper,
                                      HandleStore handleStore,
                                      DataCache cache,
                                      String method,
                                      String stageName,
                                      SecureHash self_guid,
                                      NodeId node_id)
executeRemoveGuids removes all guids from all blocks named by the topBlockId.

Parameters:
topBlockId - CacheableIdentity of the top block.
helper - RemoveGuidHelper to assist in removing guids.
handleStore - store to hold pins (CacheablePinned).