|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.egothor.dynamizer.Dynamizer
org.egothor.dynamizer.Standard
public class Standard
The Standard object is a dynamizer that accepts only DynStruct objects.
The object would be initialized via #setCapacity
or setState(java.util.Properties)
.
This object does not support transactions.
Constructor Summary | |
---|---|
Standard(int capacity,
int mergeFac)
Constructor for the Standard 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 p)
Return the properties of this Standard. |
boolean |
lock()
Not implemented, transactions are not supported. |
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. |
boolean |
unlock()
Not implemented, transactions are not supported. |
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 |
---|
public Standard(int capacity, int mergeFac)
Method Detail |
---|
public void setState(java.util.Properties state)
state
- the desired propertiespublic java.util.Properties getState(java.util.Properties p)
p
- the properties which will be also returned for your
convenience
public void add(BarrelReader reader)
DynStruct
barrel to the existing data
structure. When the algorithm decides that it has to rebuild the
actual barrel structures it calls merger.
add
in class Dynamizer
reader
- the data structure to appendpublic void add(BarrelReader reader, java.lang.String srcLocation)
Dynamizer
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.
add
in class Dynamizer
srcLocation
- location of the structure to be pulled overpublic void optimize(boolean useSoftDelete)
optimize
in class Dynamizer
useSoftDelete
- true
meand don't delete barrels directly, only
log them as dead barrels. false
means direct
deletepublic boolean lock()
public boolean unlock()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |