This bumps mdsal to 5.0.2 as part of Magnesium MRI.
Change-Id: I93e10e95b7a241d678829afb732e2adef82c1a24
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
<parent>
<groupId>org.opendaylight.mdsal</groupId>
<artifactId>binding-parent</artifactId>
- <version>4.0.6</version>
+ <version>5.0.2</version>
<relativePath/>
</parent>
<parent>
<groupId>org.opendaylight.mdsal</groupId>
<artifactId>binding-parent</artifactId>
- <version>4.0.6</version>
+ <version>5.0.2</version>
<relativePath/>
</parent>
<parent>
<groupId>org.opendaylight.mdsal</groupId>
<artifactId>binding-parent</artifactId>
- <version>4.0.6</version>
+ <version>5.0.2</version>
<relativePath/>
</parent>
<parent>
<groupId>org.opendaylight.mdsal</groupId>
<artifactId>binding-parent</artifactId>
- <version>4.0.6</version>
+ <version>5.0.2</version>
<relativePath/>
</parent>
<dependency>
<groupId>org.opendaylight.mdsal</groupId>
<artifactId>odl-mdsal-binding-base</artifactId>
- <version>4.0.6</version>
+ <version>5.0.2</version>
<type>xml</type>
<classifier>features</classifier>
</dependency>
<dependency>
<groupId>org.opendaylight.mdsal</groupId>
<artifactId>mdsal-artifacts</artifactId>
- <version>4.0.6</version>
+ <version>5.0.2</version>
<scope>import</scope>
<type>pom</type>
</dependency>
<dependency>
<groupId>org.opendaylight.mdsal</groupId>
<artifactId>mdsal-artifacts</artifactId>
- <version>4.0.6</version>
+ <version>5.0.2</version>
<type>pom</type>
<scope>import</scope>
</dependency>
-->
<features xmlns="http://karaf.apache.org/xmlns/features/v1.2.0" name="odl-controller-binding-api-${project.version}">
<feature name="odl-controller-binding-api" version="${project.version}">
- <feature version="[4,5)">odl-mdsal-binding-api</feature>
+ <feature version="[5,6)">odl-mdsal-binding-api</feature>
</feature>
</features>
<dependency>
<groupId>org.opendaylight.mdsal</groupId>
<artifactId>mdsal-artifacts</artifactId>
- <version>4.0.6</version>
+ <version>5.0.2</version>
<type>pom</type>
<scope>import</scope>
</dependency>
-->
<features xmlns="http://karaf.apache.org/xmlns/features/v1.2.0" name="odl-controller-dom-api-${project.version}">
<feature name="odl-controller-dom-api" version="${project.version}">
- <feature version="[4,5)">odl-mdsal-dom-api</feature>
+ <feature version="[5,6)">odl-mdsal-dom-api</feature>
</feature>
</features>
<dependency>
<groupId>org.opendaylight.mdsal</groupId>
<artifactId>mdsal-artifacts</artifactId>
- <version>4.0.6</version>
+ <version>5.0.2</version>
<type>pom</type>
<scope>import</scope>
</dependency>
-->
<features xmlns="http://karaf.apache.org/xmlns/features/v1.2.0" name="odl-controller-mdsal-common-${project.version}">
<feature name="odl-controller-mdsal-common" version="${project.version}">
- <feature version="[4,5)">odl-mdsal-common</feature>
- <feature version="[4,5)">odl-mdsal-binding-runtime</feature>
+ <feature version="[5,6)">odl-mdsal-common</feature>
+ <feature version="[5,6)">odl-mdsal-binding-runtime</feature>
</feature>
</features>
<dependency>
<groupId>org.opendaylight.mdsal</groupId>
<artifactId>mdsal-artifacts</artifactId>
- <version>4.0.6</version>
+ <version>5.0.2</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>org.opendaylight.mdsal</groupId>
<artifactId>mdsal-artifacts</artifactId>
- <version>4.0.6</version>
+ <version>5.0.2</version>
<type>pom</type>
<scope>import</scope>
</dependency>
-->
<features xmlns="http://karaf.apache.org/xmlns/features/v1.2.0" name="odl-mdsal-${project.version}">
<feature name="odl-mdsal-broker-local" version="${project.version}">
- <feature version="[4,5)">odl-mdsal-dom</feature>
- <feature version="[4,5)">odl-mdsal-eos-binding</feature>
- <feature version="[4,5)">odl-mdsal-eos-dom</feature>
- <feature version="[4,5)">odl-mdsal-singleton-dom</feature>
+ <feature version="[5,6)">odl-mdsal-dom</feature>
+ <feature version="[5,6)">odl-mdsal-eos-binding</feature>
+ <feature version="[5,6)">odl-mdsal-eos-dom</feature>
+ <feature version="[5,6)">odl-mdsal-singleton-dom</feature>
</feature>
</features>
<dependency>
<groupId>org.opendaylight.mdsal</groupId>
<artifactId>mdsal-artifacts</artifactId>
- <version>4.0.6</version>
+ <version>5.0.2</version>
<type>pom</type>
<scope>import</scope>
</dependency>
-->
<features xmlns="http://karaf.apache.org/xmlns/features/v1.2.0" name="odl-mdsal-${project.version}">
<feature name="odl-mdsal-broker" version="${project.version}">
- <feature version="[4,5)">odl-mdsal-singleton-dom</feature>
- <feature version="[4,5)">odl-mdsal-eos-binding</feature>
+ <feature version="[5,6)">odl-mdsal-singleton-dom</feature>
+ <feature version="[5,6)">odl-mdsal-eos-binding</feature>
</feature>
</features>
<dependency>
<groupId>org.opendaylight.mdsal</groupId>
<artifactId>mdsal-artifacts</artifactId>
- <version>4.0.6</version>
+ <version>5.0.2</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<feature name="odl-mdsal-distributed-datastore" version="${project.version}">
<feature version="[6,7)">odl-apache-commons-text</feature>
<feature version="[4,5)">odl-yangtools-codec</feature>
- <feature version="[4,5)">odl-mdsal-eos-dom</feature>
- <feature version="[4,5)">odl-mdsal-dom-broker</feature>
- <feature version="[4.0.1,5)">odl-mdsal-binding-dom-adapter</feature>
+ <feature version="[5,6)">odl-mdsal-eos-dom</feature>
+ <feature version="[5,6)">odl-mdsal-dom-broker</feature>
+ <feature version="[5,6)">odl-mdsal-binding-dom-adapter</feature>
<configfile finalname="configuration/initial/akka.conf">
mvn:org.opendaylight.controller/sal-clustering-config/${project.version}/xml/akkaconf
</configfile>
<dependency>
<groupId>org.opendaylight.mdsal</groupId>
<artifactId>mdsal-artifacts</artifactId>
- <version>4.0.6</version>
+ <version>5.0.2</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>org.opendaylight.mdsal</groupId>
<artifactId>mdsal-artifacts</artifactId>
- <version>4.0.6</version>
+ <version>5.0.2</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>org.opendaylight.mdsal</groupId>
<artifactId>odl-mdsal-binding-runtime</artifactId>
- <version>4.0.6</version>
+ <version>5.0.2</version>
<type>xml</type>
<classifier>features</classifier>
</dependency>
<dependency>
<groupId>org.opendaylight.mdsal</groupId>
<artifactId>features-mdsal</artifactId>
- <version>4.0.6</version>
+ <version>5.0.2</version>
<classifier>features</classifier>
<type>xml</type>
<scope>runtime</scope>
<dependency>
<groupId>org.opendaylight.mdsal</groupId>
<artifactId>mdsal-artifacts</artifactId>
- <version>4.0.6</version>
+ <version>5.0.2</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<parent>
<groupId>org.opendaylight.mdsal</groupId>
<artifactId>binding-parent</artifactId>
- <version>4.0.6</version>
+ <version>5.0.2</version>
<relativePath/>
</parent>
<parent>
<groupId>org.opendaylight.mdsal</groupId>
<artifactId>binding-parent</artifactId>
- <version>4.0.6</version>
+ <version>5.0.2</version>
<relativePath/>
</parent>
import com.google.common.util.concurrent.ListeningExecutorService;
import com.google.common.util.concurrent.MoreExecutors;
import java.util.concurrent.ExecutorService;
-import javassist.ClassPool;
@Beta
@Deprecated
public class BindingBrokerTestFactory {
-
- private static final ClassPool CLASS_POOL = ClassPool.getDefault();
private boolean startWithParsedSchema = true;
private ExecutorService executor;
- private ClassPool classPool;
public boolean isStartWithParsedSchema() {
ListeningExecutorService listenableExecutor = MoreExecutors.listeningDecorator(executor);
return new BindingTestContext(listenableExecutor, startWithParsedSchema);
}
-
- @Deprecated
- public ClassPool getClassPool() {
- if (classPool == null) {
- return CLASS_POOL;
- }
-
- return classPool;
- }
-
- @Deprecated
- public void setClassPool(final ClassPool classPool) {
- this.classPool = classPool;
- }
}
<dependency>
<groupId>org.opendaylight.mdsal</groupId>
<artifactId>mdsal-artifacts</artifactId>
- <version>4.0.6</version>
+ <version>5.0.2</version>
<type>pom</type>
<scope>import</scope>
</dependency>
final long inputCount;
// If rate is not provided, or given as zero, then just return.
- if (input.getRate() == null || input.getRate() == 0) {
+ if (input.getRate() == null || input.getRate().toJava() == 0) {
LOG_PURCHASE_CAR.info("Exiting stress test as no rate is given.");
return Futures.immediateFuture(RpcResultBuilder.<StressTestOutput>failed()
.withError(ErrorType.PROTOCOL, "invalid rate")
.build());
}
- inputRate = input.getRate();
+ inputRate = input.getRate().toJava();
if (input.getCount() != null) {
- inputCount = input.getCount();
+ inputCount = input.getCount().toJava();
} else {
inputCount = 0;
}
LOG.info("In startPublishNotifications - input: {}", input);
final PublishNotificationsTask task = new PublishNotificationsTask(notificationPublishService, input.getId(),
- input.getSeconds(), input.getNotificationsPerSecond());
+ input.getSeconds().toJava(), input.getNotificationsPerSecond().toJava());
publishNotificationsTasks.put(input.getId(), task);
private volatile State state;
AbstractTransactionHandler(final TransactionsParams params) {
- runtimeNanos = TimeUnit.SECONDS.toNanos(params.getSeconds());
- delayNanos = SECOND_AS_NANO / params.getTransactionsPerSecond();
+ runtimeNanos = TimeUnit.SECONDS.toNanos(params.getSeconds().toJava());
+ delayNanos = SECOND_AS_NANO / params.getTransactionsPerSecond().toJava();
}
final synchronized void doStart() {
import org.opendaylight.yangtools.yang.common.RpcError.ErrorType;
import org.opendaylight.yangtools.yang.common.RpcResult;
import org.opendaylight.yangtools.yang.common.RpcResultBuilder;
+import org.opendaylight.yangtools.yang.common.Uint32;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
+ "old Toaster: {}, new Toaster: {}", change.getRootPath().getRootIdentifier(),
oldToaster, newToaster);
- Long darkness = newToaster.getDarknessFactor();
+ Uint32 darkness = newToaster.getDarknessFactor();
if (darkness != null) {
- darknessFactor.set(darkness);
+ darknessFactor.set(darkness.toJava());
}
} else if (rootNode.getModificationType() == DELETE) {
LOG.info("onDataTreeChanged - Toaster config with path {} was deleted: old Toaster: {}",
final SettableFuture<RpcResult<MakeToastOutput>> futureResult = SettableFuture.create();
- checkStatusAndMakeToast(input, futureResult, toasterAppConfig.getMaxMakeToastTries());
+ checkStatusAndMakeToast(input, futureResult, toasterAppConfig.getMaxMakeToastTries().toJava());
return futureResult;
}
public ListenableFuture<RpcResult<RestockToasterOutput>> restockToaster(final RestockToasterInput input) {
LOG.info("restockToaster: {}", input);
- amountOfBreadInStock.set(input.getAmountOfBreadToStock());
+ amountOfBreadInStock.set(input.getAmountOfBreadToStock().toJava());
if (amountOfBreadInStock.get() > 0) {
ToasterRestocked reStockedNotification = new ToasterRestockedBuilder()
public Void call() {
try {
// make toast just sleeps for n seconds per doneness level.
- Thread.sleep(OpendaylightToaster.this.darknessFactor.get() * toastRequest.getToasterDoneness());
+ Thread.sleep(OpendaylightToaster.this.darknessFactor.get()
+ * toastRequest.getToasterDoneness().toJava());
} catch (InterruptedException e) {
LOG.info("Interrupted while making the toast");
<parent>
<groupId>org.opendaylight.mdsal</groupId>
<artifactId>binding-parent</artifactId>
- <version>4.0.6</version>
+ <version>5.0.2</version>
<relativePath/>
</parent>
<parent>
<groupId>org.opendaylight.mdsal</groupId>
<artifactId>binding-parent</artifactId>
- <version>4.0.6</version>
+ <version>5.0.2</version>
<relativePath/>
</parent>