KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > activemq > kaha > impl > DataManager


1 package org.apache.activemq.kaha.impl;
2
3 import java.io.IOException JavaDoc;
4
5 import org.apache.activemq.kaha.Marshaller;
6 import org.apache.activemq.kaha.StoreLocation;
7 import org.apache.activemq.kaha.impl.data.RedoListener;
8
9 public interface DataManager {
10
11     String JavaDoc getName();
12
13     Object JavaDoc readItem(Marshaller marshaller, StoreLocation item)
14             throws IOException JavaDoc;
15
16     StoreLocation storeDataItem(Marshaller marshaller, Object JavaDoc payload)
17             throws IOException JavaDoc;
18
19     StoreLocation storeRedoItem(Object JavaDoc payload) throws IOException JavaDoc;
20
21     void updateItem(StoreLocation location, Marshaller marshaller,
22             Object JavaDoc payload) throws IOException JavaDoc;
23
24     void recoverRedoItems(RedoListener listener) throws IOException JavaDoc;
25
26     void close() throws IOException JavaDoc;
27
28     void force() throws IOException JavaDoc;
29
30     boolean delete() throws IOException JavaDoc;
31
32     void addInterestInFile(int file) throws IOException JavaDoc;
33
34     void removeInterestInFile(int file) throws IOException JavaDoc;
35
36     void consolidateDataFiles() throws IOException JavaDoc;
37
38     Marshaller getRedoMarshaller();
39
40     void setRedoMarshaller(Marshaller redoMarshaller);
41
42 }
43
Popular Tags