Code Review
/
controller.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Merge "Add netconf-ssh as dependency to features-mdsal"
[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 3bbaa2283836fb24bd221a14d21bb7e250dfa14e..19796097364f3a2d321b11edb281834055f97a16 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
@@
-8,6
+8,8
@@
package org.opendaylight.controller.cluster.raft;
package org.opendaylight.controller.cluster.raft;
+import org.opendaylight.controller.cluster.raft.protobuff.client.messages.Payload;
+
/**
* Represents one entry in the replicated log
*/
/**
* Represents one entry in the replicated log
*/
@@
-17,7
+19,7
@@
public interface ReplicatedLogEntry {
*
* @return
*/
*
* @return
*/
-
Object
getData();
+
Payload
getData();
/**
* The term stored in that entry
/**
* The term stored in that entry
@@
-32,4
+34,13
@@
public interface ReplicatedLogEntry {
* @return
*/
long getIndex();
* @return
*/
long getIndex();
+
+ /**
+ * The size of the entry in bytes.
+ *
+ * An approximate number may be good enough.
+ *
+ * @return
+ */
+ int size();
}
}