public final class DataManagerFacade extends Object implements DataManager
Constructor and Description |
---|
DataManagerFacade(AsyncDataManager dataManager,
String name) |
Modifier and Type | Method and Description |
---|---|
void |
addInterestInFile(int file) |
void |
close() |
void |
consolidateDataFiles() |
boolean |
delete() |
void |
force() |
String |
getName() |
Marshaller |
getRedoMarshaller() |
Object |
readItem(Marshaller marshaller,
StoreLocation location) |
void |
recoverRedoItems(RedoListener listener) |
void |
removeInterestInFile(int file) |
void |
setRedoMarshaller(Marshaller redoMarshaller) |
StoreLocation |
storeDataItem(Marshaller marshaller,
Object payload) |
StoreLocation |
storeRedoItem(Object payload) |
void |
updateItem(StoreLocation location,
Marshaller marshaller,
Object payload) |
public DataManagerFacade(AsyncDataManager dataManager, String name)
public Object readItem(Marshaller marshaller, StoreLocation location) throws IOException
readItem
in interface DataManager
IOException
public StoreLocation storeDataItem(Marshaller marshaller, Object payload) throws IOException
storeDataItem
in interface DataManager
IOException
public void force() throws IOException
force
in interface DataManager
IOException
public void updateItem(StoreLocation location, Marshaller marshaller, Object payload) throws IOException
updateItem
in interface DataManager
IOException
public void close() throws IOException
close
in interface DataManager
IOException
public void consolidateDataFiles() throws IOException
consolidateDataFiles
in interface DataManager
IOException
public boolean delete() throws IOException
delete
in interface DataManager
IOException
public void addInterestInFile(int file) throws IOException
addInterestInFile
in interface DataManager
IOException
public void removeInterestInFile(int file) throws IOException
removeInterestInFile
in interface DataManager
IOException
public void recoverRedoItems(RedoListener listener) throws IOException
recoverRedoItems
in interface DataManager
IOException
public StoreLocation storeRedoItem(Object payload) throws IOException
storeRedoItem
in interface DataManager
IOException
public Marshaller getRedoMarshaller()
getRedoMarshaller
in interface DataManager
public void setRedoMarshaller(Marshaller redoMarshaller)
setRedoMarshaller
in interface DataManager
public String getName()
getName
in interface DataManager
Copyright © 2005-2013 The Apache Software Foundation. All Rights Reserved.