Author: akarasulu Date: Mon Apr 6 22:24:39 2009 New Revision: 762536 URL: http://svn.apache.org/viewvc?rev=762536&view=rev Log: cleaning up Store interface to avoid having to expose implementation specific details - in general Store should go away soon Modified: directory/apacheds/branches/ldif-partition/xdbm-base/src/main/java/org/apache/directory/server/xdbm/Store.java Modified: directory/apacheds/branches/ldif-partition/xdbm-base/src/main/java/org/apache/directory/server/xdbm/Store.java URL: http://svn.apache.org/viewvc/directory/apacheds/branches/ldif-partition/xdbm-base/src/main/java/org/apache/directory/server/xdbm/Store.java?rev=762536&r1=762535&r2=762536&view=diff ============================================================================== --- directory/apacheds/branches/ldif-partition/xdbm-base/src/main/java/org/apache/directory/server/xdbm/Store.java (original) +++ directory/apacheds/branches/ldif-partition/xdbm-base/src/main/java/org/apache/directory/server/xdbm/Store.java Mon Apr 6 22:24:39 2009 @@ -27,7 +27,6 @@ import org.apache.directory.shared.ldap.entry.ModificationOperation; import org.apache.directory.shared.ldap.entry.Modification; -import java.io.File; import java.util.Set; import java.util.Iterator; import java.util.List; @@ -91,36 +90,18 @@ */ - void setWorkingDirectory( File workingDirectory ); - - - File getWorkingDirectory(); - - - void setUserIndices( Set> userIndices ); + void setUserIndices( Set> userIndices ) throws Exception; Set> getUserIndices(); - void setSuffixDn( String suffixDn ); + void setSuffixDn( String suffixDn ) throws Exception; String getSuffixDn(); - void setSyncOnWrite( boolean isSyncOnWrite ); - - - boolean isSyncOnWrite(); - - - void setCacheSize( int cacheSize ); - - - int getCacheSize(); - - void setName( String name ); @@ -154,15 +135,6 @@ boolean isInitialized(); - /** - * This method is called when the synch thread is waking up, to write - * the modified data. - * - * @throws Exception on failures to sync database files to disk - */ - void sync() throws Exception; - - void addIndex( Index index ) throws Exception; @@ -288,7 +260,7 @@ LdapDN getSuffix(); - LdapDN getUpSuffix(); + LdapDN getUpSuffix() throws Exception; void setProperty( String propertyName, String propertyValue ) throws Exception;