com.timeindexing.io
Class AbstractIndexIO

java.lang.Object
  extended bycom.timeindexing.io.AbstractIndexIO
All Implemented Interfaces:
IndexInteractor, java.lang.Runnable
Direct Known Subclasses:
AbstractFileIO

public abstract class AbstractIndexIO
extends java.lang.Object
implements IndexInteractor, java.lang.Runnable

An object for doing IO for an Index. It has a handle on the Index it's doing I/O for, and handles the thread for the I/O.


Constructor Summary
AbstractIndexIO()
           
 
Method Summary
 StoredIndex getIndex()
          Get the index which this is doing I/O for.
 java.lang.Thread getThread()
          Get the thread
 java.lang.Thread initThread(java.lang.String name)
          Initialize the thread
 java.lang.Thread startThread()
          Start the thread
 java.lang.Thread stopThread()
          Stop the thread
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.timeindexing.io.IndexInteractor
addItem, getItem
 
Methods inherited from interface java.lang.Runnable
run
 

Constructor Detail

AbstractIndexIO

public AbstractIndexIO()
Method Detail

getIndex

public StoredIndex getIndex()
Get the index which this is doing I/O for.

Specified by:
getIndex in interface IndexInteractor

initThread

public java.lang.Thread initThread(java.lang.String name)
Initialize the thread

Parameters:
name - the name of the thread

getThread

public java.lang.Thread getThread()
Get the thread


startThread

public java.lang.Thread startThread()
Start the thread


stopThread

public java.lang.Thread stopThread()
Stop the thread