}
// create the listener using a separate actor system for each example actor
- private void createClusterRoleChangeListener(List<String> memberIds) {
+ private static void createClusterRoleChangeListener(List<String> memberIds) {
System.out.println("memberIds="+memberIds);
for (String memberId : memberIds) {
ActorRef listenerActor = listenerActorSystem.actorOf(
assertEquals("isSerializedType", false, InstallSnapshot.isSerializedType(new Object()));
}
- private void verifyInstallSnapshot(InstallSnapshot expected, InstallSnapshot actual) {
+ private static void verifyInstallSnapshot(InstallSnapshot expected, InstallSnapshot actual) {
assertEquals("getTerm", expected.getTerm(), actual.getTerm());
assertEquals("getChunkIndex", expected.getChunkIndex(), actual.getChunkIndex());
assertEquals("getTotalChunks", expected.getTotalChunks(), actual.getTotalChunks());
Preconditions.checkState(!sealed, "Pruner can be used only once");
}
- private boolean hasValidSchema(QName name, NormalizedNodeBuilderWrapper parent) {
+ private static boolean hasValidSchema(QName name, NormalizedNodeBuilderWrapper parent) {
boolean valid = parent.getSchema().isPresent() && parent.getSchema().get().getChild(name) != null;
if(!valid) {
LOG.debug("Schema not found for {}", name);
throw new UnsupportedOperationException("Commit cohort is not supported for " + path);
}
- private LogicalDatastoreType toLegacy(org.opendaylight.mdsal.common.api.LogicalDatastoreType datastoreType) {
+ private static LogicalDatastoreType toLegacy(org.opendaylight.mdsal.common.api.LogicalDatastoreType datastoreType) {
switch (datastoreType) {
case CONFIGURATION:
return LogicalDatastoreType.CONFIGURATION;
return viableCandidates;
}
- private void assertStatistics(Map<String, Long> statistics, long... count){
+ private static void assertStatistics(Map<String, Long> statistics, long... count){
for(int i=0;i<count.length;i++){
assertEquals(count[i], (long) statistics.get("member-" + (i+1)));
}