org.gridbus.broker.persistence
Class Recorder

java.lang.Object
  |
  +--org.gridbus.broker.persistence.Recorder
All Implemented Interfaces:
java.lang.Runnable

public class Recorder
extends java.lang.Object
implements java.lang.Runnable

Author:
krishna This class runs on its own thread and saves the state to persistent storage.

Constructor Summary
Recorder(Writer writer, java.lang.Object objToSave)
          Create a recorder with the specified writer
 
Method Summary
 void run()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Recorder

public Recorder(Writer writer,
                java.lang.Object objToSave)
Create a recorder with the specified writer

Parameters:
writer -
objToSave - (the object to save) This object can be a single object / collection. If it is a single object it could be:
  • the FE itself
  • Job
  • Server
  • DataHost
  • DataFile
  • Event
  • Task
  • Variable
  • Credential If it is a collection, it could again contain any of the above objects (except the FE itself, which would never be passed in a collection object) This class figures out which method to call on the reader, by reflecting on the class type of the object passed-in.
  • Method Detail

    run

    public void run()
    Specified by:
    run in interface java.lang.Runnable
    See Also:
    Runnable.run()