public final class InstalledIndex extends Object
The GNU Lesser General Public License for details.
Modifier and Type | Field and Description |
---|---|
static float |
DEFAULT_INSTALLED_INDEX_VERSION
The Index version for new indexes
|
static String |
INSTALLED_INDEX_DEFAULT_VERSION |
private static org.slf4j.Logger |
log |
private static String |
metadataFileComment |
private static InstalledIndex |
myInstance |
static String |
PREFIX_INSTALLED_INDEX_VERSION_BOOK_OVERRIDE |
private PropertyMap |
props |
private Object |
writeLock |
Modifier | Constructor and Description |
---|---|
private |
InstalledIndex() |
Modifier and Type | Method and Description |
---|---|
float |
getInstalledIndexDefaultVersion() |
float |
getInstalledIndexVersion(Book b) |
URI |
getPropertyFileURI() |
static InstalledIndex |
instance()
All access through this single instance.
|
void |
removeFromInstalledIndexMetadata(Book b) |
protected void |
storeInstalledIndexMetadata() |
void |
storeInstalledIndexMetadata(Book b,
String installedIndexVersionToStore) |
void |
storeInstalledIndexMetadata(PropertyMap updateProps)
Use this method to add/update custom property in the metadata file.
|
void |
storeLatestVersionAsInstalledIndexMetadata(Book b) |
public static final String INSTALLED_INDEX_DEFAULT_VERSION
public static final String PREFIX_INSTALLED_INDEX_VERSION_BOOK_OVERRIDE
public static final float DEFAULT_INSTALLED_INDEX_VERSION
private PropertyMap props
private Object writeLock
private static String metadataFileComment
private static InstalledIndex myInstance
private static final org.slf4j.Logger log
public static InstalledIndex instance()
public float getInstalledIndexDefaultVersion()
public float getInstalledIndexVersion(Book b)
public void storeLatestVersionAsInstalledIndexMetadata(Book b) throws IOException
IOException
public URI getPropertyFileURI()
protected void storeInstalledIndexMetadata() throws IOException
IOException
public void storeInstalledIndexMetadata(PropertyMap updateProps) throws IOException
updateProps
- IOException
public void storeInstalledIndexMetadata(Book b, String installedIndexVersionToStore) throws IOException
IOException
public void removeFromInstalledIndexMetadata(Book b) throws IOException
IOException