public class DelegatingController extends Object implements Controller
Constructor and Description |
---|
DelegatingController(MissingURIRecorder mur,
JobIndexCache cc,
ARCArchiveAccess aaa)
Initialise a controller with the relevant instances to control.
|
Modifier and Type | Method and Description |
---|---|
void |
changeIndex(Set<Long> jobSet,
String label)
Change index to use an index based on a list of jobs.
|
void |
clearRecordedURIs()
Clear list of missing URLs.
|
Set<URI> |
getRecordedURIs()
Get list of missing URLs.
|
String |
getStatus(Locale locale)
Get a human readable status of the viewer proxy.
|
void |
startRecordingURIs()
Start collecting missing URLs.
|
void |
stopRecordingURIs()
Stop collecting missing URLs.
|
public DelegatingController(MissingURIRecorder mur, JobIndexCache cc, ARCArchiveAccess aaa)
mur
- The missing URL recorder which handles missing URL collection.cc
- The JobIndexCache which generates an index from a list of jobs on changeIndex command.aaa
- The ARCArchiveAccess instance to receive new cdx on changeIndex command.ArgumentNotValid
- if any argument is null.public void startRecordingURIs()
startRecordingURIs
in interface Controller
public void stopRecordingURIs()
stopRecordingURIs
in interface Controller
public void clearRecordedURIs()
clearRecordedURIs
in interface Controller
public Set<URI> getRecordedURIs()
getRecordedURIs
in interface Controller
public void changeIndex(Set<Long> jobSet, String label)
changeIndex
in interface Controller
jobSet
- List of jobs to get an index for.label
- The label this index should be known aspublic String getStatus(Locale locale)
getStatus
in interface Controller
locale
- The locale used to generate the stringCopyright © 2005–2018 The Royal Danish Library, the National Library of France and the Austrian National Library.. All rights reserved.