org.wdssii.core
Class XMLIndex

java.lang.Object
  extended by org.wdssii.core.Index
      extended by org.wdssii.core.XMLIndex

public class XMLIndex
extends Index

Author:
jianting.zhang, lakshman

Field Summary
private  boolean initComplete
           
private static org.apache.commons.logging.Log log
           
 
Constructor Summary
XMLIndex()
          meant for prototype factory use only.
XMLIndex(File path, Set<IndexRecordListener> listeners)
           
 
Method Summary
 Index newInstance(String path, Set<IndexRecordListener> listeners)
          Create a brand-new Index with these listeners attached.
 void update()
          The update() method will be called periodically.
 
Methods inherited from class org.wdssii.core.Index
addRecByTypeTime, addRecord, addRecordListener, getDataTypes, getFirstRecordByTime, getIndexLocation, getLastRecordByTime, getNextSelection, getNextSelection, getRecord, getRecord, getRecordsByTypeTime, numRecordsByTime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static org.apache.commons.logging.Log log

initComplete

private boolean initComplete
Constructor Detail

XMLIndex

public XMLIndex()
meant for prototype factory use only.


XMLIndex

public XMLIndex(File path,
                Set<IndexRecordListener> listeners)
         throws DataUnavailableException
Throws:
DataUnavailableException
Method Detail

newInstance

public Index newInstance(String path,
                         Set<IndexRecordListener> listeners)
                  throws DataUnavailableException
Description copied from class: Index
Create a brand-new Index with these listeners attached.

Specified by:
newInstance in class Index
Throws:
DataUnavailableException

update

public void update()
Description copied from class: Index
The update() method will be called periodically. The implementation is allowed to ignore update() calls that happen at inconvenient times.

Specified by:
update in class Index