de.topicmapslab.majortom.queued.store.index
Class ConcurentIndexImpl<T extends de.topicmapslab.majortom.model.index.IIndex>

java.lang.Object
  extended by de.topicmapslab.majortom.queued.store.index.ConcurentIndexImpl<T>
All Implemented Interfaces:
de.topicmapslab.majortom.model.index.IIndex, org.tmapi.index.Index
Direct Known Subclasses:
ConcurrentIdentityIndex, ConcurrentLiteralIndex, ConcurrentScopedIndex, ConcurrentSupertypeSubtypeIndex, ConcurrentTypeInstanceIndex

public abstract class ConcurentIndexImpl<T extends de.topicmapslab.majortom.model.index.IIndex>
extends java.lang.Object
implements de.topicmapslab.majortom.model.index.IIndex

Base class of a concurrent index implementation

Author:
Sven Krosse

Field Summary
(package private)  java.util.concurrent.locks.Lock lock
           
private  T parentIndex
           
 
Constructor Summary
ConcurentIndexImpl(T parentIndex, java.util.concurrent.locks.Lock lock)
           
 
Method Summary
 void clear()
           
 void close()
          
 T getParentIndex()
           
 boolean isAutoUpdated()
          
 boolean isOpen()
          
 void open()
          
 void reindex()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

parentIndex

private final T extends de.topicmapslab.majortom.model.index.IIndex parentIndex

lock

final java.util.concurrent.locks.Lock lock
Constructor Detail

ConcurentIndexImpl

public ConcurentIndexImpl(T parentIndex,
                          java.util.concurrent.locks.Lock lock)
Method Detail

getParentIndex

public T getParentIndex()
Returns:
the parentIndex

open

public void open()

Specified by:
open in interface org.tmapi.index.Index

close

public void close()

Specified by:
close in interface org.tmapi.index.Index

isOpen

public boolean isOpen()

Specified by:
isOpen in interface org.tmapi.index.Index

isAutoUpdated

public boolean isAutoUpdated()

Specified by:
isAutoUpdated in interface org.tmapi.index.Index

reindex

public void reindex()

Specified by:
reindex in interface org.tmapi.index.Index

clear

public void clear()
Specified by:
clear in interface de.topicmapslab.majortom.model.index.IIndex