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 2412 - restconf @GET getModule(identifier,uri) method migration
[controller.git]
/
opendaylight
/
md-sal
/
sal-distributed-datastore
/
src
/
main
/
java
/
org
/
opendaylight
/
controller
/
cluster
/
datastore
/
ThreePhaseCommitCohortProxy.java
diff --git
a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/ThreePhaseCommitCohortProxy.java
b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/ThreePhaseCommitCohortProxy.java
index 4f472266c1f56acbd8fc531ae7189f1ae91951b4..4445b14e2edc1b48b5c92012e8a659275357f433 100644
(file)
--- a/
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/ThreePhaseCommitCohortProxy.java
+++ b/
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/ThreePhaseCommitCohortProxy.java
@@
-71,7
+71,7
@@
public class ThreePhaseCommitCohortProxy implements DOMStoreThreePhaseCommitCoho
private Future<Void> buildCohortList() {
Future<Iterable<ActorSelection>> combinedFutures = Futures.sequence(cohortFutures,
private Future<Void> buildCohortList() {
Future<Iterable<ActorSelection>> combinedFutures = Futures.sequence(cohortFutures,
- actorContext.get
ActorSystem().d
ispatcher());
+ actorContext.get
ClientD
ispatcher());
return combinedFutures.transform(new AbstractFunction1<Iterable<ActorSelection>, Void>() {
@Override
return combinedFutures.transform(new AbstractFunction1<Iterable<ActorSelection>, Void>() {
@Override
@@
-83,7
+83,7
@@
public class ThreePhaseCommitCohortProxy implements DOMStoreThreePhaseCommitCoho
}
return null;
}
}
return null;
}
- }, TransactionProxy.SAME_FAILURE_TRANSFORMER, actorContext.get
ActorSystem().d
ispatcher());
+ }, TransactionProxy.SAME_FAILURE_TRANSFORMER, actorContext.get
ClientD
ispatcher());
}
@Override
}
@Override
@@
-111,7
+111,7
@@
public class ThreePhaseCommitCohortProxy implements DOMStoreThreePhaseCommitCoho
finishCanCommit(returnFuture);
}
}
finishCanCommit(returnFuture);
}
}
- }, actorContext.get
ActorSystem().d
ispatcher());
+ }, actorContext.get
ClientD
ispatcher());
return returnFuture;
}
return returnFuture;
}
@@
-158,7
+158,7
@@
public class ThreePhaseCommitCohortProxy implements DOMStoreThreePhaseCommitCoho
}
returnFuture.set(Boolean.valueOf(result));
}
}
returnFuture.set(Boolean.valueOf(result));
}
- }, actorContext.get
ActorSystem().d
ispatcher());
+ }, actorContext.get
ClientD
ispatcher());
}
private Future<Iterable<Object>> invokeCohorts(Object message) {
}
private Future<Iterable<Object>> invokeCohorts(Object message) {
@@
-170,7
+170,7
@@
public class ThreePhaseCommitCohortProxy implements DOMStoreThreePhaseCommitCoho
futureList.add(actorContext.executeOperationAsync(cohort, message, actorContext.getTransactionCommitOperationTimeout()));
}
futureList.add(actorContext.executeOperationAsync(cohort, message, actorContext.getTransactionCommitOperationTimeout()));
}
- return Futures.sequence(futureList, actorContext.get
ActorSystem().d
ispatcher());
+ return Futures.sequence(futureList, actorContext.get
ClientD
ispatcher());
}
@Override
}
@Override
@@
-239,7
+239,7
@@
public class ThreePhaseCommitCohortProxy implements DOMStoreThreePhaseCommitCoho
propagateException, returnFuture, callback);
}
}
propagateException, returnFuture, callback);
}
}
- }, actorContext.get
ActorSystem().d
ispatcher());
+ }, actorContext.get
ClientD
ispatcher());
}
return returnFuture;
}
return returnFuture;
@@
-304,7
+304,7
@@
public class ThreePhaseCommitCohortProxy implements DOMStoreThreePhaseCommitCoho
callback.success();
}
}
callback.success();
}
}
- }, actorContext.get
ActorSystem().d
ispatcher());
+ }, actorContext.get
ClientD
ispatcher());
}
@VisibleForTesting
}
@VisibleForTesting
@@
-342,7
+342,7
@@
public class ThreePhaseCommitCohortProxy implements DOMStoreThreePhaseCommitCoho
timerContext.stop();
Snapshot timerSnapshot = commitTimer.getSnapshot();
timerContext.stop();
Snapshot timerSnapshot = commitTimer.getSnapshot();
- double allowedLatencyInNanos = timerSnapshot.get9
8
thPercentile();
+ double allowedLatencyInNanos = timerSnapshot.get9
5
thPercentile();
long commitTimeoutInSeconds = actorContext.getDatastoreContext()
.getShardTransactionCommitTimeoutInSeconds();
long commitTimeoutInSeconds = actorContext.getDatastoreContext()
.getShardTransactionCommitTimeoutInSeconds();