Examples of addVolume()


Examples of org.photovault.common.PVDatabase.addVolume()

            ExternalVolume v = new ExternalVolume( extVolName,
                    dir.getAbsolutePath() );
            PhotovaultSettings settings = PhotovaultSettings.getSettings();
            PVDatabase db = settings.getCurrentDatabase();
            try {
                db.addVolume( v );
            } catch (PhotovaultException ex) {
                // This should not happen since we just checked for it!!!
            }
           
            // Set up the indexer
View Full Code Here

Examples of org.photovault.common.PVDatabase.addVolume()

  volume = new Volume( "testVolume", volumeRoot.getAbsolutePath() );
  extVol = new ExternalVolume( "extVolume", extvolRoot.getAbsolutePath() );
        PhotovaultSettings settings = PhotovaultSettings.getSettings();
        PVDatabase curDb = settings.getCurrentDatabase();
        try {
            curDb.addVolume( extVol );
        } catch (PhotovaultException ex) {
            ex.printStackTrace();
        }
    }
   
View Full Code Here

Examples of org.photovault.common.PVDatabase.addVolume()

                }
                db.setDbName( dbNameFld.getText() );
                db.setHost( dbHostFld.getText() );
                Volume vol = new Volume( "defaultVolume", volumeDirFld.getText() );
                try {
                    db.addVolume( vol );
                } catch (PhotovaultException ex) {
                    // Should not happen...
                }
            } else {
                // Creating an embedded database
View Full Code Here

Examples of org.photovault.common.PVDatabase.addVolume()

        int n;
        ExternalVolume v = new ExternalVolume( "extVol", extVolDir.getAbsolutePath() );
        PhotovaultSettings settings = PhotovaultSettings.getSettings();
        PVDatabase db = settings.getDatabase( "pv_junit" );
        try {
            db.addVolume( v );
        } catch (PhotovaultException ex) {
            fail( ex.getMessage() );
        }
        ExtVolIndexer indexer = new ExtVolIndexer( v );
        indexer.setTopFolder( topFolder );
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.