org.apache.activemq.store.kahadb.plist
Class PListImpl

java.lang.Object
  extended by org.apache.activemq.store.kahadb.disk.index.ListIndex<String,Location>
      extended by org.apache.activemq.store.kahadb.plist.PListImpl
All Implemented Interfaces:
Index<String,Location>, PList

public class PListImpl
extends ListIndex<String,Location>
implements PList


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.activemq.store.PList
PList.PListIterator
 
Field Summary
 
Fields inherited from class org.apache.activemq.store.kahadb.disk.index.ListIndex
headPageId, loaded, NOT_SET, pageFile, tailPageId
 
Method Summary
 Object addFirst(String id, ByteSequence bs)
           
 Object addLast(String id, ByteSequence bs)
           
 void claimFileLocations(Set<Integer> candidates)
           
 void destroy()
           
 PListEntry get(long position)
           
 PListEntry getFirst()
           
 PListEntry getLast()
           
 String getName()
           
 boolean isEmpty()
           
 PList.PListIterator iterator()
           
 boolean remove(long position)
           
 boolean remove(Object l)
           
 boolean remove(String id)
           
 void setName(String name)
           
 String toString()
           
 void write(DataOutput out)
           
 
Methods inherited from class org.apache.activemq.store.kahadb.disk.index.ListIndex
add, addFirst, clear, containsKey, createNode, get, getFirst, getHead, getHeadPageId, getKeyMarshaller, getLast, getPageFile, getTail, getTailPageId, getValueMarshaller, isEmpty, isTransient, iterator, iterator, listNodeIterator, load, onRemove, put, remove, setHeadPageId, setKeyMarshaller, setPageFile, setTailPageId, setValueMarshaller, size, storeNode, unload
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.activemq.store.PList
size
 

Method Detail

setName

public void setName(String name)

getName

public String getName()
Specified by:
getName in interface PList

write

public void write(DataOutput out)
           throws IOException
Throws:
IOException

destroy

public void destroy()
             throws IOException
Specified by:
destroy in interface PList
Throws:
IOException

addLast

public Object addLast(String id,
                      ByteSequence bs)
               throws IOException
Specified by:
addLast in interface PList
Throws:
IOException

addFirst

public Object addFirst(String id,
                       ByteSequence bs)
                throws IOException
Specified by:
addFirst in interface PList
Throws:
IOException

remove

public boolean remove(Object l)
               throws IOException
Specified by:
remove in interface PList
Throws:
IOException

remove

public boolean remove(String id)
               throws IOException
Throws:
IOException

remove

public boolean remove(long position)
               throws IOException
Throws:
IOException

get

public PListEntry get(long position)
               throws IOException
Throws:
IOException

getFirst

public PListEntry getFirst()
                    throws IOException
Throws:
IOException

getLast

public PListEntry getLast()
                   throws IOException
Throws:
IOException

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface PList

iterator

public PList.PListIterator iterator()
                             throws IOException
Specified by:
iterator in interface PList
Throws:
IOException

claimFileLocations

public void claimFileLocations(Set<Integer> candidates)
                        throws IOException
Throws:
IOException

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2005-2013 The Apache Software Foundation. All Rights Reserved.