org.planx.xmlstore.koala.storage
Class Sharer

java.lang.Object
  extended by org.planx.xmlstore.koala.storage.Sharer

public class Sharer
extends Object

Author:
Thomas Ambus

Constructor Summary
Sharer(SegmentManager segmentManager, RootManager rootManager, StorageConfiguration config)
           
 
Method Summary
 void delete(SourceId id)
           
 void initiateIteration()
           
 void share()
          Incremental sharing algorithm.
 void share(SourceId... ids)
          Performs compaction of the argument segments and persists data.
 void start()
          Starts the Sharer background thread with the period between runs specified in the constructor.
 void stop()
          Stops the Sharer background thread.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Sharer

public Sharer(SegmentManager segmentManager,
              RootManager rootManager,
              StorageConfiguration config)
Method Detail

start

public void start()
Starts the Sharer background thread with the period between runs specified in the constructor.


stop

public void stop()
Stops the Sharer background thread.


initiateIteration

public void initiateIteration()

delete

public void delete(SourceId id)
            throws IOException
Throws:
IOException

share

public void share()
           throws IOException
Incremental sharing algorithm.

Throws:
IOException

share

public void share(SourceId... ids)
           throws IOException
Performs compaction of the argument segments and persists data.

Throws:
IOException


Copyright © 2004-2005 Plan-X. All Rights Reserved.