@Deprecated public class ReadOnlyAdminData extends AdminData
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.
Modifier and Type | Field and Description |
---|---|
protected long |
lastModified
Deprecated.
The time the underlying file (adminDataFile) was last read in.
|
ADMIN_FILE_NAME, adminDataFile, adminDir, knownBitArchives, storeEntries, VERSION_NUMBER
Constructor and Description |
---|
ReadOnlyAdminData()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
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.
|
getAllFileNames, getAllFileNames, getCheckSum, getEntry, getReadOnlyInstance, getState, getUpdateableInstance, hasEntry, hasReplyInfo, hasState, toString
protected long lastModified
public ReadOnlyAdminData()
AdminData.AdminData()
public static ReadOnlyAdminData getInstance()
protected void read()
public void synchronize()
Copyright © 2005–2016 The Royal Danish Library, the Danish State and University Library, the National Library of France and the Austrian National Library.. All rights reserved.