dk.netarkivet.common.distribute.arcrepository
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ArcRepositoryClientFactory
public ArcRepositoryClientFactory()
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.