|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Translog
Nested Class Summary | |
---|---|
static class |
Translog.Create
|
static class |
Translog.Delete
|
static class |
Translog.DeleteByQuery
|
static class |
Translog.Index
|
static class |
Translog.Location
|
static interface |
Translog.Operation
A generic interface representing an operation performed on the transaction log. |
static interface |
Translog.Snapshot
A snapshot of the transaction log, allows to iterate over all the transaction log operations. |
static class |
Translog.Source
|
Field Summary | |
---|---|
static String |
TRANSLOG_ID_KEY
|
Method Summary | |
---|---|
Translog.Location |
add(Translog.Operation operation)
Adds a create operation to the transaction log. |
void |
clearUnreferenced()
Clears unreferenced transaclogs. |
void |
close(boolean delete)
Closes the transaction log. |
long |
currentId()
Returns the id of the current transaction log. |
int |
estimatedNumberOfOperations()
Returns the number of operations in the transaction log. |
void |
makeTransientCurrent()
Swaps the transient translog to be the current one. |
long |
memorySizeInBytes()
The estimated memory size this translog is taking. |
void |
newTransientTranslog(long id)
Creates a new transient translog, where added ops will be added to the current one, and to it. |
void |
newTranslog(long id)
Creates a new transaction log internally. |
byte[] |
read(Translog.Location location)
|
void |
revertTransient()
Reverts back to not have a transient translog. |
Translog.Snapshot |
snapshot()
Snapshots the current transaction log allowing to safely iterate over the snapshot. |
Translog.Snapshot |
snapshot(Translog.Snapshot snapshot)
Snapshots the delta between the current state of the translog, and the state defined by the provided snapshot. |
void |
sync()
Sync's the translog. |
boolean |
syncNeeded()
|
void |
syncOnEachOperation(boolean syncOnEachOperation)
|
long |
translogSizeInBytes()
Returns the size in bytes of the translog. |
Methods inherited from interface org.elasticsearch.index.shard.IndexShardComponent |
---|
indexSettings, shardId |
Field Detail |
---|
static final String TRANSLOG_ID_KEY
Method Detail |
---|
long currentId()
int estimatedNumberOfOperations()
long memorySizeInBytes()
long translogSizeInBytes()
void newTranslog(long id) throws TranslogException
Can only be called by one thread.
TranslogException
void newTransientTranslog(long id) throws TranslogException
Can only be called by one thread.
TranslogException
void makeTransientCurrent()
Can only be called by one thread.
void revertTransient()
Translog.Location add(Translog.Operation operation) throws TranslogException
TranslogException
byte[] read(Translog.Location location)
Translog.Snapshot snapshot() throws TranslogException
TranslogException
Translog.Snapshot snapshot(Translog.Snapshot snapshot)
void clearUnreferenced()
void sync()
boolean syncNeeded()
void syncOnEachOperation(boolean syncOnEachOperation)
void close(boolean delete)
Can only be called by one thread.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |