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

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

public class PList
extends org.apache.kahadb.index.ListIndex<String,org.apache.kahadb.journal.Location>


Nested Class Summary
 class PList.PListIterator
           
 
Field Summary
 
Fields inherited from class org.apache.kahadb.index.ListIndex
headPageId, loaded, NOT_SET, pageFile, tailPageId
 
Method Summary
 void addFirst(String id, org.apache.kahadb.util.ByteSequence bs)
           
 void addLast(String id, org.apache.kahadb.util.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(String id)
           
 void setName(String name)
           
 String toString()
           
 void write(DataOutput out)
           
 
Methods inherited from class org.apache.kahadb.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
 

Method Detail

setName

public void setName(String name)

getName

public String getName()

write

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

destroy

public void destroy()
             throws IOException
Throws:
IOException

addLast

public void addLast(String id,
                    org.apache.kahadb.util.ByteSequence bs)
             throws IOException
Throws:
IOException

addFirst

public void addFirst(String id,
                     org.apache.kahadb.util.ByteSequence bs)
              throws IOException
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()

iterator

public PList.PListIterator iterator()
                             throws IOException
Throws:
IOException

claimFileLocations

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

toString

public String toString()
Overrides:
toString in class Object


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