Skip to content

Commit

Permalink
Setting up some defaults for bitrepositorySettings
Browse files Browse the repository at this point in the history
  • Loading branch information
Søren Vejrup Carlsen committed Sep 4, 2015
1 parent 1bd0227 commit e730c8a
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 5 deletions.
Expand Up @@ -82,15 +82,15 @@ public class BitmagArcRepositoryClient implements ArcRepositoryClient {
Settings.addDefaultClasspathSettings(defaultSettingsClasspath);
}

private static final String ARCREPOSITORY_TEMPDIR = "settings.common.arcrepositoryClient.tempdir";
private static final String ARCREPOSITORY_TEMPDIR = "settings.common.arcrepositoryClient.bitrepository.tempdir";

private static final String BITREPOSITORY_SETTINGS_DIR = "settings.common.arcrepositoryClient.bitrepositorySettingsDir";
private static final String BITREPOSITORY_SETTINGS_DIR = "settings.common.arcrepositoryClient.bitrepository.settingsDir";

private static final String BITREPOSITORY_KEYFILE = "settings.common.arcrepositoryClient.keyfile"; //TODO necessary? optional so we don't force the user to use credentials.
private static final String BITREPOSITORY_KEYFILE = "settings.common.arcrepositoryClient.bitrepository.keyfile"; //TODO necessary? optional so we don't force the user to use credentials.

private static final String BITREPOSITORY_STORE_MAX_PILLAR_FAILURES = "settings.common.arcrepositoryClient.storeMaxPillarFailures"; //TODO necessary?
private static final String BITREPOSITORY_STORE_MAX_PILLAR_FAILURES = "settings.common.arcrepositoryClient.bitrepository.storeMaxPillarFailures"; //TODO necessary?

private static final String BITREPOSITORY_COLLECTIONID = "settings.common.arcrepositoryClient.collectionid";
private static final String BITREPOSITORY_COLLECTIONID = "settings.common.arcrepositoryClient.bitrepository.collectionid";


/** Create a new BitmagArcRepositoryClient based on current settings. */
Expand Down
@@ -0,0 +1,47 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
* File: $Id$
* Revision: $Revision$
* Author: $Author$
* Date: $Date$
*
* The Netarchive Suite - Software to harvest and preserve websites
* Copyright 2004-2012 The Royal Danish Library, the Danish State and
University Library, the National Library of France and the Austrian
National Library.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-->
<!--
This file contains the default settings used by the BitmagArcrepositoryClient
class.
For documentation of the individual settings, please refer to the javadoc for
dk.netarkivet.common.distribute.arcrepository.bitrepository.BitmagArcRepositoryClient.java
-->
<settings>
<common>
<arcrepositoryClient>
<bitrepository>
<keyfile></keyfile>
<settingsDir></settingsDir>
<storeMaxPillarFailures>1</storeMaxPillarFailures>
<tempdir>arcrepositoryTemp</tempdir>
<collectionID></collectionID>
</bitrepository>
</arcrepositoryClient>
</common>
</settings>

0 comments on commit e730c8a

Please sign in to comment.