Code Review
/
controller.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Move null check from getTotalMemory()
[controller.git]
/
opendaylight
/
md-sal
/
sal-akka-raft
/
src
/
main
/
java
/
org
/
opendaylight
/
controller
/
cluster
/
raft
/
ReplicatedLogEntry.java
diff --git
a/opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/ReplicatedLogEntry.java
b/opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/ReplicatedLogEntry.java
index f501c4d37f1f864c7a0551c119403d2b76457d1d..1bced2404dea9161ae64dc2f0cee0d37e0a2d677 100644
(file)
--- a/
opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/ReplicatedLogEntry.java
+++ b/
opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/ReplicatedLogEntry.java
@@
-15,23
+15,26
@@
import org.opendaylight.controller.cluster.raft.protobuff.client.messages.Payloa
*/
public interface ReplicatedLogEntry {
/**
*/
public interface ReplicatedLogEntry {
/**
- * The data stored in that entry
*
*
- * @return
+ * @return
The payload/data to be replicated
*/
Payload getData();
/**
*/
Payload getData();
/**
- * The term stored in that entry
*
*
- * @return
+ * @return
The term of the entry
*/
long getTerm();
/**
*/
long getTerm();
/**
- * The index of the entry
*
*
- * @return
+ * @return
The index of the entry
*/
long getIndex();
*/
long getIndex();
+
+ /**
+ *
+ * @return The size of the entry in bytes. An approximate number may be good enough.
+ */
+ int size();
}
}