|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object dk.netarkivet.viewerproxy.DelegatingController
public class DelegatingController
Control of viewer proxy. Delegates URL-methods to a missing URL recorder, and cdx control to a CDXCache instance combined with an ARCArchiveAccess instance.
Constructor Summary | |
---|---|
DelegatingController(MissingURIRecorder mur,
JobIndexCache cc,
ARCArchiveAccess aaa)
Initialise a controller with the relevant instances to control. |
Method Summary | |
---|---|
void |
changeIndex(java.util.Set<java.lang.Long> jobSet,
java.lang.String label)
Change index to use an index based on a list of jobs. |
void |
clearRecordedURIs()
Clear list of missing URLs. |
java.util.Set<java.net.URI> |
getRecordedURIs()
Get list of missing URLs. |
java.lang.String |
getStatus(java.util.Locale locale)
Get a human readable status of the viewer proxy. |
void |
startRecordingURIs()
Start collecting missing URLs. |
void |
stopRecordingURIs()
Stop collecting missing URLs. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DelegatingController(MissingURIRecorder mur, JobIndexCache cc, ARCArchiveAccess aaa)
mur
- The missing URL recorder which handles missing URL
collection.cc
- The CDX cache 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.Method Detail |
---|
public void startRecordingURIs()
startRecordingURIs
in interface Controller
public void stopRecordingURIs()
stopRecordingURIs
in interface Controller
public void clearRecordedURIs()
clearRecordedURIs
in interface Controller
public java.util.Set<java.net.URI> getRecordedURIs()
getRecordedURIs
in interface Controller
public void changeIndex(java.util.Set<java.lang.Long> jobSet, java.lang.String label)
changeIndex
in interface Controller
jobSet
- List of jobs to get an index for.label
- The label this index should be known aspublic java.lang.String getStatus(java.util.Locale locale)
getStatus
in interface Controller
locale
- The locale used to generate the string
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |