org.apache.activemq.store.kahadb.disk.page
Class Page<T>

java.lang.Object
  extended by org.apache.activemq.store.kahadb.disk.page.Page<T>

public class Page<T>
extends Object

A Page within a file.


Field Summary
static byte PAGE_END_TYPE
           
static byte PAGE_FREE_TYPE
           
static int PAGE_HEADER_SIZE
           
static byte PAGE_PART_TYPE
           
 
Constructor Summary
Page()
           
Page(long pageId)
           
 
Method Summary
 Page<T> copy(Page<T> other)
           
 T get()
           
 int getChecksum()
           
 long getNext()
           
 long getPageId()
           
 long getTxId()
           
 short getType()
           
 void makePageEnd(long size, long txId)
           
 void makePagePart(long next, long txId)
           
 void set(T data)
           
 void setChecksum(int checksum)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PAGE_HEADER_SIZE

public static final int PAGE_HEADER_SIZE
See Also:
Constant Field Values

PAGE_FREE_TYPE

public static final byte PAGE_FREE_TYPE
See Also:
Constant Field Values

PAGE_PART_TYPE

public static final byte PAGE_PART_TYPE
See Also:
Constant Field Values

PAGE_END_TYPE

public static final byte PAGE_END_TYPE
See Also:
Constant Field Values
Constructor Detail

Page

public Page()

Page

public Page(long pageId)
Method Detail

copy

public Page<T> copy(Page<T> other)

makePagePart

public void makePagePart(long next,
                         long txId)

makePageEnd

public void makePageEnd(long size,
                        long txId)

getPageId

public long getPageId()

getTxId

public long getTxId()

get

public T get()

set

public void set(T data)

getType

public short getType()

getNext

public long getNext()

toString

public String toString()
Overrides:
toString in class Object

getChecksum

public int getChecksum()

setChecksum

public void setChecksum(int checksum)


Copyright © 2005–2013 The Apache Software Foundation. All rights reserved.