|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object dk.netarkivet.archive.arcrepositoryadmin.AdminData dk.netarkivet.archive.arcrepositoryadmin.ReadOnlyAdminData
@Deprecated public class ReadOnlyAdminData
A version of AdminData that cannot be changed, but which allows synchronization through a file. To avoid excessive reading of the admin data file and constant stat() calls, users of this are required call synchronize() before major chunks of use to ensure that the data are up to date. Implementation note: Two alternative synch strategies are
1) Recreate ReadOnlyAdminData before every use -- this requires reading the
entire file again (millions of lines).
2) Synchronize at every entry point (hasEntry, getState etc) -- this requires
an expensive stat() call before every action, costly when iterating.
Field Summary | |
---|---|
protected long |
lastModified
Deprecated. The time the underlying file (adminDataFile) was last read in. |
Fields inherited from class dk.netarkivet.archive.arcrepositoryadmin.AdminData |
---|
ADMIN_FILE_NAME, adminDataFile, adminDir, knownBitArchives, storeEntries, VERSION_NUMBER |
Constructor Summary | |
---|---|
ReadOnlyAdminData()
Deprecated. |
Method Summary | |
---|---|
static ReadOnlyAdminData |
getInstance()
Deprecated. Returns _an_ instance if admin data. |
protected void |
read()
Deprecated. Read admin data. |
void |
synchronize()
Deprecated. Make sure that the internal admin data set is synchronized to the file. |
Methods inherited from class dk.netarkivet.archive.arcrepositoryadmin.AdminData |
---|
getAllFileNames, getAllFileNames, getCheckSum, getEntry, getReadOnlyInstance, getState, getUpdateableInstance, hasEntry, hasReplyInfo, hasState, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected long lastModified
Constructor Detail |
---|
public ReadOnlyAdminData()
AdminData.AdminData()
Method Detail |
---|
public static ReadOnlyAdminData getInstance()
protected void read()
read
in class AdminData
public void synchronize()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |