public class HALogFile extends Object
Modifier and Type | Class and Description |
---|---|
class |
HALogFile.HALogWriter |
Modifier and Type | Field and Description |
---|---|
static long |
START_DATA |
Constructor and Description |
---|
HALogFile(File file)
This constructor creates a read only view of the log file and can be
used independently of the HALogManager.
|
HALogFile(IRootBlockView rbv,
com.bigdata.ha.althalog.HALogManager.IHALogManagerCallback callback)
This constructor is called by the log manager to create the file.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Attempts to close the file; will only succeed if there are
no readers and writers.
|
void |
delete()
Requests that the underlying log file is deleted.
|
void |
disable()
Called from the LogManager to disable the current log file for writing.
|
long |
getCommitCounter() |
File |
getFile() |
static File |
getHALogFileName(File dir,
long commitCounter)
Return the local name of the HA Log file associated with the
commitCounter.
|
IHALogReader |
getReader() |
HALogFile.HALogWriter |
getWriter() |
boolean |
isEmpty() |
boolean |
isOpen() |
public static final long START_DATA
public HALogFile(IRootBlockView rbv, com.bigdata.ha.althalog.HALogManager.IHALogManagerCallback callback) throws IOException
IOException
public HALogFile(File file)
readonlyLog
- FileNotFoundException
public void close() throws IOException
IOException
public void delete() throws IOException
IOException
public boolean isEmpty()
public long getCommitCounter()
public HALogFile.HALogWriter getWriter()
public IHALogReader getReader() throws IOException
IOException
public void disable() throws IOException
IOException
public static File getHALogFileName(File dir, long commitCounter)
commitCounter
- public boolean isOpen()
public File getFile()
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.