| Modifier and Type | Field and Description |
|---|---|
private long |
cookie
Unique ID associated with this log
|
private MultiLogManager.LogRemovalManager |
logMgr
Reference to
LogRemovalManager, which is called
to remove this log from the managed set of logs. |
private static Logger |
operationsLogger
Logger for operations related messages
|
private static Logger |
persistenceLogger
Logger for persistence related messages
|
| Constructor and Description |
|---|
TransientLogFile(long id,
MultiLogManager.LogRemovalManager lrm)
Simple constructor that simply assigns the given parameter to
an internal field.
|
| Modifier and Type | Method and Description |
|---|---|
long |
cookie()
Returns the identifier associated with information in
this
Log. |
void |
invalidate()
Invalidate the log.
|
void |
recover(LogRecovery client)
Recover information from the log.
|
void |
write(LogRecord rec)
Add a
LogRecord to the Log. |
private final long cookie
private final MultiLogManager.LogRemovalManager logMgr
LogRemovalManager, which is called
to remove this log from the managed set of logs.private static final Logger persistenceLogger
private static final Logger operationsLogger
public TransientLogFile(long id,
MultiLogManager.LogRemovalManager lrm)
id - the unique identifier for this logLog,
LogManager,
MultiLogManager,
MultiLogManager.LogRemovalManagerpublic long cookie()
Log.public void write(LogRecord rec) throws LogException
LogRecord to the Log.
This method does nothing with the provided argument.write in interface ClientLogrec - the record to be ignored.LogExceptionLogRecordpublic void invalidate()
throws LogException
invalidate in interface ClientLogLogExceptionpublic void recover(LogRecovery client) throws LogException
recover in interface Logclient - who to inform with information from the log.LogExceptionLogRecoveryCopyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.