org.apache.activemq.store.kahadb.plist
Class PListImpl
java.lang.Object
org.apache.activemq.store.kahadb.disk.index.ListIndex<String,Location>
org.apache.activemq.store.kahadb.plist.PListImpl
- All Implemented Interfaces:
- Index<String,Location>, PList
public class PListImpl
- extends ListIndex<String,Location>
- implements PList
| 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 interface org.apache.activemq.store.PList |
size |
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.