miniraft
.
state
.
Log
InMemoryLog
Related Doc:
package Log
class
InMemoryLog
[
Command
]
extends
Log
[
Command
]
Linear Supertypes
Log
[
Command
],
AnyRef
,
Any
Ordering
Alphabetic
By Inheritance
Inherited
InMemoryLog
Log
AnyRef
Any
Hide All
Show All
Visibility
Public
All
Instance Constructors
new
InMemoryLog
(
applyToStateMachine: (
LogEntry
[
Command
]) ⇒
Unit
)
Value Members
final
def
!=
(
arg0:
Any
)
:
Boolean
Definition Classes
AnyRef → Any
final
def
##
()
:
Int
Definition Classes
AnyRef → Any
final
def
==
(
arg0:
Any
)
:
Boolean
Definition Classes
AnyRef → Any
def
append
(
newEntries:
List
[
LogEntry
[
Command
]]
)
:
Log
[
Command
]
Definition Classes
InMemoryLog
→
Log
def
append
(
newEntry:
LogEntry
[
Command
]
)
:
Log
[
Command
]
Note - implementations need to override one of the two appends
Note - implementations need to override one of the two appends
Definition Classes
Log
final
def
asInstanceOf
[
T0
]
:
T0
Definition Classes
Any
def
at
(
index:
LogIndex
)
:
Option
[
LogEntry
[
Command
]]
Definition Classes
InMemoryLog
→
Log
def
clone
()
:
AnyRef
Attributes
protected[
java.lang
]
Definition Classes
AnyRef
Annotations
@throws
(
...
)
def
commit
(
latestIndex:
LogIndex
)
:
Log
[
Command
]
Definition Classes
InMemoryLog
→
Log
final
def
eq
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
def
equals
(
other:
Any
)
:
Boolean
Definition Classes
Log
→ AnyRef → Any
def
finalize
()
:
Unit
Attributes
protected[
java.lang
]
Definition Classes
AnyRef
Annotations
@throws
(
classOf[java.lang.Throwable]
)
final
def
getClass
()
:
Class
[_]
Definition Classes
AnyRef → Any
def
hashCode
()
:
Int
Definition Classes
Log
→ AnyRef → Any
def
isCommitted
(
index:
Int
)
:
Boolean
Definition Classes
InMemoryLog
→
Log
final
def
isInstanceOf
[
T0
]
:
Boolean
Definition Classes
Any
def
lastCommittedIndex
:
LogIndex
Definition Classes
Log
def
lastTerm
:
Term
Definition Classes
Log
def
lastUnappliedIndex
:
LogIndex
Definition Classes
Log
def
latestCommittedEntry
:
Option
[
LogEntry
[
Command
]]
Definition Classes
InMemoryLog
→
Log
def
latestUnappliedEntry
:
Option
[
LogEntry
[
Command
]]
Definition Classes
InMemoryLog
→
Log
final
def
ne
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
final
def
notify
()
:
Unit
Definition Classes
AnyRef
final
def
notifyAll
()
:
Unit
Definition Classes
AnyRef
final
def
synchronized
[
T0
]
(
arg0: ⇒
T0
)
:
T0
Definition Classes
AnyRef
def
toString
()
:
String
Definition Classes
Log
→ AnyRef → Any
final
def
wait
()
:
Unit
Definition Classes
AnyRef
Annotations
@throws
(
...
)
final
def
wait
(
arg0:
Long
,
arg1:
Int
)
:
Unit
Definition Classes
AnyRef
Annotations
@throws
(
...
)
final
def
wait
(
arg0:
Long
)
:
Unit
Definition Classes
AnyRef
Annotations
@throws
(
...
)
Inherited from
Log
[
Command
]
Inherited from
AnyRef
Inherited from
Any
Ungrouped