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 2138 - Do not fail on module-based default shard
[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 8ce28571ee16b22bca1d1a5a8d76e5c88dd51583..0f766295409c73e0305f6d45dd3fbc2df605afce 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
@@
-17,11
+17,10
@@
import com.google.common.base.Preconditions;
* Base class for factories instantiating delegates which are local to the
* shard leader.
*
* Base class for factories instantiating delegates which are local to the
* shard leader.
*
- * <D> delegate type
- * <M> message type
- * <I> initial state type
+ * @param <D> delegate type
+ * @param <M> message type
*/
*/
-abstract class LeaderLocalDelegateFactory<M, D
, I> extends DelegateFactory<M, D, I
> {
+abstract class LeaderLocalDelegateFactory<M, D
> extends DelegateFactory<M, D
> {
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);
}