|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.elasticsearch.index.shard.AbstractIndexShardComponent org.elasticsearch.index.translog.fs.FsTranslog
public class FsTranslog
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.elasticsearch.index.translog.Translog |
---|
Translog.Create, Translog.Delete, Translog.DeleteByQuery, Translog.Index, Translog.Operation, Translog.Snapshot |
Field Summary |
---|
Fields inherited from class org.elasticsearch.index.shard.AbstractIndexShardComponent |
---|
componentSettings, indexSettings, logger, shardId |
Constructor Summary | |
---|---|
FsTranslog(ShardId shardId,
Settings indexSettings,
java.io.File location)
|
|
FsTranslog(ShardId shardId,
Settings indexSettings,
java.io.File location,
boolean useStream)
|
|
FsTranslog(ShardId shardId,
Settings indexSettings,
NodeEnvironment nodeEnv)
|
Method Summary | |
---|---|
void |
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. |
ByteSizeValue |
estimateMemorySize()
The estimated memory size this translog is taking. |
java.io.File |
location()
|
void |
newTranslog()
Creates a new transaction log internally. |
void |
newTranslog(long id)
Creates a new transaction log internally. |
int |
size()
Returns the number of operations in the transaction log. |
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. |
void |
syncOnEachOperation(boolean syncOnEachOperation)
|
Methods inherited from class org.elasticsearch.index.shard.AbstractIndexShardComponent |
---|
indexSettings, managementGroupName, nodeName, shardId |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.elasticsearch.index.shard.IndexShardComponent |
---|
indexSettings, shardId |
Constructor Detail |
---|
@Inject public FsTranslog(ShardId shardId, @IndexSettings Settings indexSettings, NodeEnvironment nodeEnv)
public FsTranslog(ShardId shardId, @IndexSettings Settings indexSettings, java.io.File location)
public FsTranslog(ShardId shardId, @IndexSettings Settings indexSettings, java.io.File location, boolean useStream)
Method Detail |
---|
public java.io.File location()
public long currentId()
Translog
currentId
in interface Translog
public int size()
Translog
size
in interface Translog
public ByteSizeValue estimateMemorySize()
Translog
estimateMemorySize
in interface Translog
public void clearUnreferenced()
Translog
clearUnreferenced
in interface Translog
public void newTranslog() throws TranslogException
Translog
newTranslog
in interface Translog
TranslogException
public void newTranslog(long id) throws TranslogException
Translog
newTranslog
in interface Translog
TranslogException
public void add(Translog.Operation operation) throws TranslogException
Translog
add
in interface Translog
TranslogException
public Translog.Snapshot snapshot() throws TranslogException
Translog
snapshot
in interface Translog
TranslogException
public Translog.Snapshot snapshot(Translog.Snapshot snapshot)
Translog
snapshot
in interface Translog
public void sync()
Translog
sync
in interface Translog
public void syncOnEachOperation(boolean syncOnEachOperation)
syncOnEachOperation
in interface Translog
public void close(boolean delete)
Translog
close
in interface Translog
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |