|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.jini.reliableLog.LogHandler
org.rioproject.jsb.ServiceBeanContextManager.ContextAttributeLogHandler
public class ServiceBeanContextManager.ContextAttributeLogHandler
Class which implements methods needed to meet the LogHandler interface
| Constructor Summary | |
|---|---|
ServiceBeanContextManager.ContextAttributeLogHandler()
|
|
| Method Summary | |
|---|---|
void |
applyUpdate(Object update)
This method always throws UnsupportedOperationException
since ContextAttributeLogHandler should never update a
log. |
ServiceBeanContext |
getRestoredContext()
|
void |
prepareDestroy()
Informs the SubStore that the service is being destroyed
and it should perform any necessary cleanup (closing files for example). |
void |
recover(InputStream in)
|
void |
setDirectory(File dir)
Gives the SubStore a piece of the file system to
use for its store. |
void |
snapshot(OutputStream out)
|
String |
subDirectory()
If this components what's its own sub-directory it should return a non- null string that will be its sub-directory's name. |
void |
takeSnapshot()
Used by all the methods that change persistent state to commit the change to disk |
void |
updatePerformed(int updateCount)
Called by PersistentStore after every update to give
server a chance to trigger a snapshot |
| Methods inherited from class com.sun.jini.reliableLog.LogHandler |
|---|
readUpdate, writeUpdate |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ServiceBeanContextManager.ContextAttributeLogHandler()
| Method Detail |
|---|
public void setDirectory(File dir)
throws IOException
SubStoreSubStore a piece of the file system to
use for its store.
setDirectory in interface SubStoredir - the directory to use
IOException - if there is a problem initializing it's store
or recovering its state.public String subDirectory()
SubStorenull string that will be its sub-directory's name.
If it does not need its own sub-directory this method should return
null
subDirectory in interface SubStore
public void snapshot(OutputStream out)
throws Exception
snapshot in class LogHandlerException
public void recover(InputStream in)
throws Exception
recover in class LogHandlerExceptionpublic ServiceBeanContext getRestoredContext()
null
public void applyUpdate(Object update)
throws Exception
UnsupportedOperationException
since ContextAttributeLogHandler should never update a
log.
applyUpdate in class LogHandlerException
public void takeSnapshot()
throws IOException
takeSnapshot in interface SnapshotHandlerIOException - if an error occurspublic void updatePerformed(int updateCount)
SnapshotHandlerPersistentStore after every update to give
server a chance to trigger a snapshot
updatePerformed in interface SnapshotHandlerupdateCount - Number of updates since last snapshotpublic void prepareDestroy()
SubStoreSubStore that the service is being destroyed
and it should perform any necessary cleanup (closing files for example).
The store does not need to delete it's data.
prepareDestroy in interface SubStore
|
Copyright © Rio Project. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||