|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface BlockIO<K,D,T>
Abstract definition of a "Block Input/Output" device.
The generic type T is the type of a transaction handle returned.
The generic type D is the type of the data handled by a block.
The generic type K is the type of the key by which blocks are referenced.
For example, a hard drive might be represented by:
public class HardDrive implements BlockIO
Method Summary
voidabort(T xid)
KallocBlock()
KallocBlock(T t)
Tbegin()
Tbegin(T parentXID)
voidclose()
voidcommit(T xid)
voidflush()
voidfreeBlock(K block)
voidfreeBlock(K block,
T t)
BlockHandle<D>getBlock(K block)
BlockHandle<D>getBlock(K block,
T t)
booleanhasTransactions()
Method Detail
hasTransactions
boolean hasTransactions()
begin
T begin()
throws UnsupportedOperationException
UnsupportedOperationException
begin
T begin(T parentXID)
throws UnsupportedOperationException
UnsupportedOperationException
commit
void commit(T xid)
throws UnsupportedOperationException
UnsupportedOperationException
abort
void abort(T xid)
throws UnsupportedOperationException
UnsupportedOperationException
flush
void flush()
close
void close()
allocBlock
K allocBlock()
allocBlock
K allocBlock(T t)
freeBlock
void freeBlock(K block)
freeBlock
void freeBlock(K block,
T t)
getBlock
BlockHandle<D> getBlock(K block)
getBlock
BlockHandle<D> getBlock(K block,
T t)
Overview
Package
Class
Use
Tree
Deprecated
Index
Help
PREV CLASS
NEXT CLASS
FRAMES
NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD
DETAIL: FIELD | CONSTR | METHOD