Rio Project 4.2 API Documentation



org.rioproject.resources.persistence
Interface SubStore

All Known Implementing Classes:
ServiceBeanContextManager.ContextAttributeLogHandler

public interface SubStore

Interface components must meet if they implement their own persistent store


Method Summary
 void prepareDestroy()
          Informs the SubStore that the service is being destroyed and it should perform any necessary cleanup (closing files for example).
 void setDirectory(File dir)
          Gives the SubStore a piece of the file system to use for its store.
 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.
 

Method Detail

subDirectory

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. If it does not need its own sub-directory this method should return null


setDirectory

void setDirectory(File dir)
                  throws IOException
Gives the SubStore a piece of the file system to use for its store.

Parameters:
dir - the directory to use
Throws:
IOException - if there is a problem initializing it's store or recovering its state.

prepareDestroy

void prepareDestroy()
Informs the SubStore 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.


Copyright © Rio Project.

Copyright © 2006-2011 Rio Project. All Rights Reserved.