public class Log extends Object
Log is a built-in object that represents the datastore operation and
the operation's state. This object is used as a write-ahead-log in
distributed transaction commitment and also used for the state dump when a
transaction is failed.| Modifier and Type | Class and Description |
|---|---|
static class |
Log.Operation
Operation is the type of datastore operation. |
static class |
Log.State
State is the state of datastore operation. |
| Constructor and Description |
|---|
Log(long sequence,
Log.Operation operation,
Object entity)
Constructs a new
Log instance with the specified operation
sequence in session, operation type and the entity which this operation
is applied to. |
| Modifier and Type | Method and Description |
|---|---|
Object |
entity()
Returns the entity which this operation is applied to.
|
Log.Operation |
operation()
Returns the operation type.
|
long |
sequence()
Returns the operation sequence in session.
|
Log.State |
state()
Returns the state of datastore operation.
|
void |
state(Log.State state)
Sets the specified state into this log.
|
public Log(long sequence, Log.Operation operation, Object entity)
Log instance with the specified operation
sequence in session, operation type and the entity which this operation
is applied to.sequence - The operation sequence in one Session.operation - The operation.entity - The entity which this operation is applied to.public long sequence()
public Log.Operation operation()
public Object entity()
public void state(Log.State state)
state - The state of datastore operation.public Log.State state()
Copyright © 2009-2014 Eiichiro Uchiumi. All Rights Reserved.