Class ArcRepositoryClientFactory
- java.lang.Object
-
- dk.netarkivet.common.utils.SettingsFactory<ArcRepositoryClient>
-
- dk.netarkivet.common.distribute.arcrepository.ArcRepositoryClientFactory
-
public class ArcRepositoryClientFactory extends SettingsFactory<ArcRepositoryClient>
A factory for ArcRepositoryClients.Implementation note: This implementation assumes that only one actual implementation class exists, pointed out by the setting settings.common.arcrepositoryClient.class, and merely gives three different view on that class.
-
-
Constructor Summary
Constructors Constructor Description ArcRepositoryClientFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static HarvesterArcRepositoryClient
getHarvesterInstance()
Returns a new ArcRepositoryClient suitable for use by a harvester.static PreservationArcRepositoryClient
getPreservationInstance()
Returns a new ArcRepositoryClient suitable for use in bit preservation.static ViewerArcRepositoryClient
getViewerInstance()
Returns a new ArcRepositoryClient suitable for use by a viewer.-
Methods inherited from class dk.netarkivet.common.utils.SettingsFactory
getInstance
-
-
-
-
Method Detail
-
getHarvesterInstance
public static HarvesterArcRepositoryClient getHarvesterInstance()
Returns a new ArcRepositoryClient suitable for use by a harvester.- Returns:
- An ArcRepositoryClient that implements the methods defined by HarvesterArcRepositoryClient. At end of use, close() should be called on this to release any resources claimed.
-
getViewerInstance
public static ViewerArcRepositoryClient getViewerInstance()
Returns a new ArcRepositoryClient suitable for use by a viewer.- Returns:
- An ArcRepositoryClient that implements the methods defined by ViewerArcRepositoryClient. At end of use, close() should be called on this to release any resources claimed.
-
getPreservationInstance
public static PreservationArcRepositoryClient getPreservationInstance()
Returns a new ArcRepositoryClient suitable for use in bit preservation.- Returns:
- An ArcRepositoryClient that implements the methods defined by PreservationArcRepositoryClient. At end of use, close() should be called on this to release any resources claimed.
-
-