org.egothor.dynamizer
Class Egothor

java.lang.Object
  extended by org.egothor.dynamizer.Dynamizer
      extended by org.egothor.dynamizer.Egothor
All Implemented Interfaces:
Status

public class Egothor
extends Dynamizer

The Egothor object is a dynamizer that accepts only DynStruct objects.

Author:
Leo Galambos

Constructor Summary
Egothor(int capacity)
          Constructor for the Egothor object.
 
Method Summary
 void add(BarrelReader reader)
          Append a new DynStruct barrel to the existing data structure.
 void add(BarrelReader reader, java.lang.String srcLocation)
          Pullovers (moves) a new org.egothor.core.DynStructReader to the existing data structure.
 java.util.Properties getState(java.util.Properties state)
          Return the properties of this Egothor.
 void optimize(boolean useSoftDelete)
          Optimize the data structure following a delete (or remove) operation on the managed Barrels.
 void setState(java.util.Properties state)
          Use the given properties for this object.
 
Methods inherited from class org.egothor.dynamizer.Dynamizer
close, commit, destroy, elements, getSlotter, initializeUnderControl, isDirty, removeDoc, setSlotter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Egothor

public Egothor(int capacity)
Constructor for the Egothor object. Calling this constructor merely creates an instance of the superclass.

See Also:
#setCapacity
Method Detail

setState

public void setState(java.util.Properties state)
Use the given properties for this object.

Parameters:
state - the desired properties

getState

public java.util.Properties getState(java.util.Properties state)
Return the properties of this Egothor.

Parameters:
state - the properties which will be also returned for your convenience
Returns:
the properties of this Egothor

add

public void add(BarrelReader reader)
Append a new DynStruct barrel to the existing data structure. When the algorithm decides that it has to rebuild the actual barrel structures it calls merger.

Specified by:
add in class Dynamizer
Parameters:
reader - the data structure to append

add

public void add(BarrelReader reader,
                java.lang.String srcLocation)
Description copied from class: Dynamizer
Pullovers (moves) a new org.egothor.core.DynStructReader to the existing data structure. When the algorithm decides that it has to rebuild the actual barrel structures it must optimize.

Specified by:
add in class Dynamizer
srcLocation - location of the structure to be pulled over

optimize

public void optimize(boolean useSoftDelete)
Optimize the data structure following a delete (or remove) operation on the managed Barrels. Call this method only after first removing an element.

Specified by:
optimize in class Dynamizer
Parameters:
useSoftDelete - true meand don't delete barrels directly, only log them as dead barrels. false means direct delete