Code Review
/
controller.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Bug 8328 - Create prefix shards with correct peers
[controller.git]
/
opendaylight
/
md-sal
/
sal-distributed-datastore
/
src
/
main
/
java
/
org
/
opendaylight
/
controller
/
cluster
/
datastore
/
LeaderLocalDelegateFactory.java
diff --git
a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/LeaderLocalDelegateFactory.java
b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/LeaderLocalDelegateFactory.java
index 8e22d5f9e720553bf85878f7d3e5bde30c566543..5f58bc9ef57f61f28326c7e661a23ba57c0bfafd 100644
(file)
--- a/
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/LeaderLocalDelegateFactory.java
+++ b/
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/LeaderLocalDelegateFactory.java
@@
-19,9
+19,8
@@
import com.google.common.base.Preconditions;
*
* @param <D> delegate type
* @param <M> message type
*
* @param <D> delegate type
* @param <M> message type
- * @param <I> initial state type
*/
*/
-abstract class LeaderLocalDelegateFactory<M
, D, I> extends DelegateFactory<M, D, I
> {
+abstract class LeaderLocalDelegateFactory<M> {
private final Shard shard;
protected LeaderLocalDelegateFactory(final Shard shard) {
private final Shard shard;
protected LeaderLocalDelegateFactory(final Shard shard) {
@@
-64,5
+63,6
@@
abstract class LeaderLocalDelegateFactory<M, D, I> extends DelegateFactory<M, D,
* @param hasLeader true if the shard knows about leader ID
*/
abstract void onLeadershipChange(boolean isLeader, boolean hasLeader);
* @param hasLeader true if the shard knows about leader ID
*/
abstract void onLeadershipChange(boolean isLeader, boolean hasLeader);
+
abstract void onMessage(M message, boolean isLeader, boolean hasLeader);
}
abstract void onMessage(M message, boolean isLeader, boolean hasLeader);
}