com.sun.jini.norm.lookup
Interface SubStore

All Known Implementing Classes:
JoinState

public interface SubStore

Interface components must meet if they implement their own persistent store.

Author:
Sun Microsystems, Inc.

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 wants 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 wants 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 ConfigurationException,
                         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 its store or recovering its state
ConfigurationException - if this is a problem configuring this object

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 2007-2010, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.