com.faunos.skwish.sys.mgr
Class LiveSegManager

java.lang.Object
  extended by com.faunos.skwish.sys.mgr.LiveSegManager

public class LiveSegManager
extends Object

Author:
Babak Farhang

Nested Class Summary
static class LiveSegManager.FixedSegment
           
 
Constructor Summary
LiveSegManager(List<UnitDir.Seg> liveSegments)
           
 
Method Summary
 void addSeg(UnitDir.Seg newSeg)
           
 void close()
           
 List<UnitDir.Seg> getBaseSegments()
           
 List<UnitDir.Seg> getBaseSegments(List<UnitDir.Seg> out)
           
 List<LiveSegManager.FixedSegment> getFixedSegments()
           
 List<LiveSegManager.FixedSegment> getFixedSegments(List<LiveSegManager.FixedSegment> out)
           
 Lock getLock()
           
 int getSegmentCount()
           
 List<Segment> getView()
           
 Callable<LiveSegMerge> getWork()
           
 boolean hasWork()
           
 void setMergeListener(SegMergeListener mergeListener)
           
 void setUndertaker(SegUndertaker undertaker)
           
 void updateMerged(UnitDir.Seg purgeableSeg)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LiveSegManager

public LiveSegManager(List<UnitDir.Seg> liveSegments)
Method Detail

setMergeListener

public void setMergeListener(SegMergeListener mergeListener)

setUndertaker

public void setUndertaker(SegUndertaker undertaker)

getView

public List<Segment> getView()

hasWork

public boolean hasWork()

getWork

public Callable<LiveSegMerge> getWork()

getFixedSegments

public List<LiveSegManager.FixedSegment> getFixedSegments()

getFixedSegments

public List<LiveSegManager.FixedSegment> getFixedSegments(List<LiveSegManager.FixedSegment> out)

getBaseSegments

public List<UnitDir.Seg> getBaseSegments()

getBaseSegments

public List<UnitDir.Seg> getBaseSegments(List<UnitDir.Seg> out)

getSegmentCount

public int getSegmentCount()

getLock

public Lock getLock()

addSeg

public void addSeg(UnitDir.Seg newSeg)

updateMerged

public void updateMerged(UnitDir.Seg purgeableSeg)
                  throws IOException
Throws:
IOException

close

public void close()
           throws IOException
Throws:
IOException


SourceForge.net Logo