public class ReindexMetadata extends Object
Constructor and Description |
---|
ReindexMetadata()
Create a new, empty, metadata object
|
ReindexMetadata(File indexDir)
Load the metadata from an existing metadata file contained within this index directory.
|
Modifier and Type | Method and Description |
---|---|
Date |
getIndexStartTime() |
void |
setIndexStartTime(long indexStartTime) |
void |
storeTo(File targetDir)
Persist the metadata
|
public ReindexMetadata()
public ReindexMetadata(File indexDir) throws IOException
indexDir
- the directory containing the snapshot filesIOException
- if indexDir is not a directory, or cannot be read@Nullable public Date getIndexStartTime()
public void setIndexStartTime(long indexStartTime)
indexStartTime
- the index start time, in milliseconds since epochpublic void storeTo(File targetDir) throws IOException
targetDir
- the target directoryIOException
- if the metadata cannot be persistedCopyright © 2002-2019 Atlassian. All Rights Reserved.