<parent>
<groupId>org.opendaylight.odlparent</groupId>
<artifactId>odlparent-lite</artifactId>
- <version>3.1.3</version>
+ <version>4.0.2</version>
<relativePath/>
</parent>
import com.google.common.util.concurrent.Futures;
import com.google.common.util.concurrent.ListenableFuture;
import com.google.common.util.concurrent.MoreExecutors;
+import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import org.opendaylight.yangtools.yang.common.RpcResult;
import org.slf4j.Logger;
private RPCFutures() {
}
+ @SuppressFBWarnings("SLF4J_LOGGER_SHOULD_BE_PRIVATE")
public static <T> void logResult(ListenableFuture<RpcResult<T>> future, String rpc, Logger logger) {
Futures.addCallback(future, new FutureCallback<RpcResult<T>>() {
@Override
<dependency>
<groupId>org.fusesource</groupId>
<artifactId>sigar</artifactId>
- <version>${sigar.version}</version>
+ <version>1.6.4</version>
</dependency>
<dependency>
<groupId>org.opendaylight.tsdr</groupId>
build failure. Please do not modify this unless you have a good reason. -->
<name>ODL :: tsdr :: ${project.artifactId}</name>
<dependencies>
- <dependency>
- <groupId>org.fusesource</groupId>
- <artifactId>sigar</artifactId>
- <version>${sigar.version}</version>
- </dependency>
<dependency>
<groupId>org.opendaylight.tsdr</groupId>
<artifactId>tsdr-collector-spi</artifactId>
<dependency>
<groupId>org.opendaylight.openflowplugin.model</groupId>
<artifactId>model-flow-service</artifactId>
- <version>${model.flow.statistics}</version>
+ <version>0.8.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.opendaylight.openflowplugin.model</groupId>
<artifactId>model-flow-statistics</artifactId>
- <version>${model.flow.statistics}</version>
+ <version>0.8.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;
-import static org.mockito.Matchers.any;
+import static org.mockito.ArgumentMatchers.any;
import static org.mockito.Mockito.after;
import static org.mockito.Mockito.doAnswer;
import static org.mockito.Mockito.doReturn;
AtomicReference<CountDownLatch> storeMetricsLatchRef = new AtomicReference<>(new CountDownLatch(2));
AtomicBoolean storeMetricsContinue = new AtomicBoolean();
doAnswer(invocation -> {
- metricRecords.addAll(invocation.getArgumentAt(0, InsertTSDRMetricRecordInput.class).getTSDRMetricRecord());
+ metricRecords.addAll(((InsertTSDRMetricRecordInput) invocation.getArgument(0)).getTSDRMetricRecord());
CountDownLatch storeMetricsLatch = storeMetricsLatchRef.get();
storeMetricsLatch.countDown();
if (storeMetricsLatch.getCount() == 0) {
<dependency>
<groupId>org.opendaylight.snmp</groupId>
<artifactId>snmp</artifactId>
- <version>${snmp.version}</version>
+ <version>1.7.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.apache.servicemix.bundles</groupId>
<dependency>
<groupId>com.google.protobuf</groupId>
<artifactId>protobuf-java</artifactId>
- <version>${protobuf.version}</version>
+ <version>2.4.1</version>
</dependency>
<dependency>
<groupId>junit</groupId>
Futures.addCallback(future, new FutureCallback<RpcResult<PurgeAllTSDRRecordOutput>>() {
@Override
public void onSuccess(RpcResult<PurgeAllTSDRRecordOutput> result) {
- LOG.debug("RPC purgeAllTSDRRecord returned result {]", result);
+ LOG.debug("RPC purgeAllTSDRRecord returned result {}", result);
}
@Override
<dependency>
<groupId>org.glassfish.jersey.test-framework.providers</groupId>
<artifactId>jersey-test-framework-provider-grizzly2</artifactId>
- <version>2.6</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.glassfish.jersey.bundles.repackaged</groupId>
<artifactId>jersey-guava</artifactId>
- <version>2.6</version>
<scope>test</scope>
</dependency>
</dependencies>
*/
@Singleton
public class TSDRNbiServiceImpl implements TSDRDataqueryImplService {
- private static Logger LOG = LoggerFactory.getLogger(TSDRNbiServiceImpl.class);
+ private static final Logger LOG = LoggerFactory.getLogger(TSDRNbiServiceImpl.class);
private final TsdrMetricDataService metricDataService;
private final TsdrLogDataService logDataService;
Futures.addCallback(future, new FutureCallback<RpcResult<T>>() {
@Override
public void onSuccess(RpcResult<T> result) {
- LOG.debug("RPC {} returned result {]", rpc, result);
+ LOG.debug("RPC {} returned result {}", rpc, result);
}
@Override
input.setStartTime(TSDRNbiRestAPI.getTimeFromString(fromString));
} catch (NumberFormatException ex) {
String errStr = "Invalid request format. Cannot parse start time == " + fromString;
- LOG.error(errStr);
return Response.status(Response.Status.BAD_REQUEST).entity(toJson(errStr)).build();
}
input.setEndTime(TSDRNbiRestAPI.getTimeFromString(untilString));
} catch (NumberFormatException ex) {
String errStr = "Invalid request format. Cannot parse end time == " + untilString;
- LOG.error(errStr);
return Response.status(Response.Status.BAD_REQUEST).entity(toJson(errStr)).build();
}
if (metric == null || !metric.get().isSuccessful()) {
String errStr = "Error retrieving metrics from " + fromString + " to " + untilString;
- LOG.error(errStr);
return Response.status(Status.SERVICE_UNAVAILABLE).entity(errStr).build();
}
from = TSDRNbiRestAPI.getTimeFromString(fromString);
} catch (NumberFormatException ex) {
String errStr = "Invalid request format. Cannot parse start time == " + fromString;
- LOG.error(errStr);
return Response.status(Status.BAD_REQUEST).entity(toJson(errStr)).build();
}
until = TSDRNbiRestAPI.getTimeFromString(untilString);
} catch (NumberFormatException ex) {
String errStr = "Invalid request format. Cannot parse end time == " + untilString;
- LOG.error(errStr);
return Response.status(Status.BAD_REQUEST).entity(toJson(errStr)).build();
}
maxDataPoints = Long.parseLong(request.getMaxDataPoints());
} catch (NumberFormatException ex) {
String errStr = "Invalid request format. Cannot parse maxDataPoints == " + request.getMaxDataPoints();
- LOG.error(errStr);
return Response.status(Status.BAD_REQUEST).entity(toJson(errStr)).build();
}
if (metric == null || !metric.get().isSuccessful()) {
String errStr = "Error retrieving aggregated metrics from " + fromString + " to " + untilString;
- LOG.error(errStr);
return Response.status(Status.OK).entity(errStr).build();
}
if (metric == null || !metric.get().isSuccessful()) {
String errStr = "Error retrieving metrics from " + fromString + " to " + untilString;
- LOG.error(errStr);
return Response.status(Status.BAD_REQUEST).entity(errStr).build();
}
</resource>
</resources>
<plugins>
- <plugin>
- <groupId>org.apache.felix</groupId>
- <artifactId>maven-bundle-plugin</artifactId>
- <extensions>true</extensions>
- <configuration>
- <instructions>
- <!--Export-Package>org.opendaylight.tsdr.datastorage.*,org.opendaylight.controller.config.yang.config.TSDR_datastorage.impl.*</Export-Package>
- <Import-Package>*</Import-Package-->
- </instructions>
- </configuration>
- </plugin>
<plugin>
<groupId>org.apache.aries.blueprint</groupId>
<artifactId>blueprint-maven-plugin</artifactId>
<parent>
<groupId>org.opendaylight.odlparent</groupId>
<artifactId>feature-repo-parent</artifactId>
- <version>3.1.3</version>
+ <version>4.0.2</version>
<relativePath/>
</parent>
<parent>
<groupId>org.opendaylight.odlparent</groupId>
<artifactId>single-feature-parent</artifactId>
- <version>3.1.3</version>
+ <version>4.0.2</version>
<relativePath/>
</parent>
<parent>
<groupId>org.opendaylight.odlparent</groupId>
<artifactId>single-feature-parent</artifactId>
- <version>3.1.3</version>
+ <version>4.0.2</version>
<relativePath/>
</parent>
build failure. Please do not modify this unless you have a good reason. -->
<name>ODL :: tsdr :: Cassandra</name>
<properties>
- <com.datastax.cassandra.version>3.2.0</com.datastax.cassandra.version>
<guava.old.version>19.0</guava.old.version>
</properties>
<dependency>
<groupId>com.datastax.cassandra</groupId>
<artifactId>cassandra-driver-core</artifactId>
- <version>${com.datastax.cassandra.version}</version>
- </dependency>
- <dependency>
- <groupId>com.google.guava</groupId>
- <artifactId>guava</artifactId>
- <version>${guava.old.version}</version>
- </dependency>
-
-
+ <version>3.2.0</version>
+ </dependency>
+ <dependency>
+ <groupId>org.ow2.asm</groupId>
+ <artifactId>asm</artifactId>
+ <version>5.0.3</version>
+ </dependency>
+ <dependency>
+ <groupId>com.google.guava</groupId>
+ <artifactId>guava</artifactId>
+ <version>${guava.old.version}</version>
+ </dependency>
</dependencies>
</project>
<parent>
<groupId>org.opendaylight.odlparent</groupId>
<artifactId>single-feature-parent</artifactId>
- <version>3.1.3</version>
+ <version>4.0.2</version>
<relativePath/>
</parent>
<parent>
<groupId>org.opendaylight.odlparent</groupId>
<artifactId>single-feature-parent</artifactId>
- <version>3.1.3</version>
+ <version>4.0.2</version>
<relativePath/>
</parent>
<!-- <name> formatting is used by autorelease to parse and notify projects on
build failure. Please do not modify this unless you have a good reason. -->
<name>ODL :: tsdr :: core</name>
- <properties>
- <openflowplugin.version>0.8.0-SNAPSHOT</openflowplugin.version>
- <mdsal.model.version>0.14.0-SNAPSHOT</mdsal.model.version>
- <mdsal.common.version>2.6.0-SNAPSHOT</mdsal.common.version>
- <restconf.version>1.9.0-SNAPSHOT</restconf.version>
- <controller.mdsal.version>1.9.0-SNAPSHOT</controller.mdsal.version>
- </properties>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.opendaylight.controller</groupId>
<artifactId>mdsal-artifacts</artifactId>
- <version>${controller.mdsal.version}</version>
+ <version>1.9.0-SNAPSHOT</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>org.opendaylight.mdsal</groupId>
<artifactId>mdsal-artifacts</artifactId>
- <version>${mdsal.common.version}</version>
+ <version>3.0.1</version>
<scope>import</scope>
<type>pom</type>
</dependency>
- <dependency>
- <groupId>org.opendaylight.mdsal.model</groupId>
- <artifactId>mdsal-model-artifacts</artifactId>
- <version>${mdsal.model.version}</version>
- <type>pom</type>
- <scope>import</scope>
- </dependency>
<!-- ODL-NETCONF/RESTCONF-ARTIFACTS -->
<dependency>
<groupId>org.opendaylight.netconf</groupId>
<artifactId>restconf-artifacts</artifactId>
- <version>${restconf.version}</version>
+ <version>1.9.0-SNAPSHOT</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>org.opendaylight.netconf</groupId>
<artifactId>odl-restconf-all</artifactId>
- <version>${restconf.version}</version>
<classifier>features</classifier>
<type>xml</type>
</dependency>
<parent>
<groupId>org.opendaylight.odlparent</groupId>
<artifactId>single-feature-parent</artifactId>
- <version>3.1.3</version>
+ <version>4.0.2</version>
<relativePath/>
</parent>
<parent>
<groupId>org.opendaylight.odlparent</groupId>
<artifactId>single-feature-parent</artifactId>
- <version>3.1.3</version>
+ <version>4.0.2</version>
<relativePath/>
</parent>
<parent>
<groupId>org.opendaylight.odlparent</groupId>
<artifactId>single-feature-parent</artifactId>
- <version>3.1.3</version>
+ <version>4.0.2</version>
<relativePath/>
</parent>
<parent>
<groupId>org.opendaylight.odlparent</groupId>
<artifactId>single-feature-parent</artifactId>
- <version>3.1.3</version>
+ <version>4.0.2</version>
<relativePath/>
</parent>
<parent>
<groupId>org.opendaylight.odlparent</groupId>
<artifactId>single-feature-parent</artifactId>
- <version>3.1.3</version>
+ <version>4.0.2</version>
<relativePath/>
</parent>
<parent>
<groupId>org.opendaylight.odlparent</groupId>
<artifactId>single-feature-parent</artifactId>
- <version>3.1.3</version>
+ <version>4.0.2</version>
<relativePath/>
</parent>
<parent>
<groupId>org.opendaylight.odlparent</groupId>
<artifactId>single-feature-parent</artifactId>
- <version>3.1.3</version>
+ <version>4.0.2</version>
<relativePath/>
</parent>
<parent>
<groupId>org.opendaylight.odlparent</groupId>
<artifactId>single-feature-parent</artifactId>
- <version>3.1.3</version>
+ <version>4.0.2</version>
<relativePath/>
</parent>
<parent>
<groupId>org.opendaylight.odlparent</groupId>
<artifactId>single-feature-parent</artifactId>
- <version>3.1.3</version>
+ <version>4.0.2</version>
<relativePath/>
</parent>
<parent>
<groupId>org.opendaylight.odlparent</groupId>
<artifactId>odlparent-lite</artifactId>
- <version>3.1.3</version>
+ <version>4.0.2</version>
<relativePath/>
</parent>
<parent>
<groupId>org.opendaylight.odlparent</groupId>
<artifactId>karaf4-parent</artifactId>
- <version>3.1.3</version>
+ <version>4.0.2</version>
</parent>
<groupId>org.opendaylight.tsdr</groupId>
<parent>
<groupId>org.opendaylight.mdsal</groupId>
<artifactId>binding-parent</artifactId>
- <version>0.14.0-SNAPSHOT</version>
+ <version>3.0.1</version>
<relativePath/>
</parent>
<packaging>pom</packaging>
<name>ODL :: tsdr :: ${project.artifactId}</name>
- <properties>
- <mdsal.java.binding.version>0.14.0-SNAPSHOT</mdsal.java.binding.version>
- <mdsal.model.version>0.14.0-SNAPSHOT</mdsal.model.version>
- <config.version>0.10.0-SNAPSHOT</config.version>
- <controller.mdsal.version>1.9.0-SNAPSHOT</controller.mdsal.version>
- <snmp.version>1.7.0-SNAPSHOT</snmp.version>
- <guava.old.version>19.0</guava.old.version>
- <hbase.version>0.94.15</hbase.version>
- <hadoop.version>1.2.0</hadoop.version>
- <model.flow.statistics>0.8.0-SNAPSHOT</model.flow.statistics>
- <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
- <protobuf.version>2.4.1</protobuf.version>
- <com.codahale.metrics.version>3.0.2</com.codahale.metrics.version>
- <io.netty.version>3.10.6.Final</io.netty.version>
- <com.datastax.cassandra.version>2.2.0-rc3</com.datastax.cassandra.version>
- <sigar.version>1.6.4</sigar.version>
- <hsqldb.version>1.8.0.10</hsqldb.version>
- <jest.version>2.0.3</jest.version>
- </properties>
-
-
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.opendaylight.controller</groupId>
<artifactId>mdsal-artifacts</artifactId>
- <version>${controller.mdsal.version}</version>
+ <version>1.9.0-SNAPSHOT</version>
<type>pom</type>
<scope>import</scope>
</dependency>
+ <dependency>
+ <groupId>org.opendaylight.mdsal</groupId>
+ <artifactId>mdsal-artifacts</artifactId>
+ <version>3.0.1</version>
+ <scope>import</scope>
+ <type>pom</type>
+ </dependency>
</dependencies>
</dependencyManagement>
<artifactId>javax.inject</artifactId>
</dependency>
- <dependency>
- <groupId>org.ops4j.pax.cdi</groupId>
- <artifactId>pax-cdi-api</artifactId>
- <optional>true</optional>
- </dependency>
-
<!-- Testing Dependencies -->
<dependency>
<groupId>junit</groupId>
<dependency>
<groupId>org.opendaylight.odlparent</groupId>
<artifactId>findbugs</artifactId>
- <version>3.1.3</version>
+ <version>4.0.2</version>
</dependency>
</dependencies>
<configuration>
<!-- <name> formatting is used by autorelease to parse and notify projects on
build failure. Please do not modify this unless you have a good reason. -->
<name>ODL :: tsdr :: ${project.artifactId}</name>
- <properties>
- <com.datastax.cassandra.version>3.2.0</com.datastax.cassandra.version>
- </properties>
<build>
<plugins>
<plugin>
<dependency>
<groupId>com.codahale.metrics</groupId>
<artifactId>metrics-core</artifactId>
- <version>${com.codahale.metrics.version}</version>
+ <version>3.0.2</version>
</dependency>
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty</artifactId>
- <version>${io.netty.version}</version>
+ <version>3.10.6.Final</version>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<dependency>
<groupId>com.datastax.cassandra</groupId>
<artifactId>cassandra-driver-core</artifactId>
- <version>${com.datastax.cassandra.version}</version>
+ <version>3.2.0</version>
</dependency>
</dependencies>
</project>
boolean isMaster = Boolean.parseBoolean(config.get("master"));
int replicationFactor = Integer.parseInt(config.get("replication_factor"));
- LOG.info("Trying to work with " + host + ", Which cassandra master is set to=" + isMaster);
+ LOG.info("Trying to work with {}, Which cassandra master is set to {}", host, isMaster);
Cluster cluster = Cluster.builder().addContactPoint(host).build();
// Try 5 times to connect to cassandra with a 5 seconds delay
<dependency>
<groupId>io.searchbox</groupId>
<artifactId>jest</artifactId>
- <version>${jest.version}</version>
+ <version>2.0.3</version>
</dependency>
<dependency>
<groupId>org.opendaylight.tsdr</groupId>
<artifactId>mockito-core</artifactId>
<scope>test</scope>
</dependency>
- <dependency>
- <groupId>org.powermock</groupId>
- <artifactId>powermock-module-junit4</artifactId>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.powermock</groupId>
- <artifactId>powermock-api-mockito</artifactId>
- <scope>test</scope>
- </dependency>
-<!--
- <dependency>
- <groupId>org.slf4j</groupId>
- <artifactId>slf4j-log4j12</artifactId>
- <scope>test</scope>
- </dependency>
--->
</dependencies>
</project>
+ name + "_mapping.json");
json = Files.asCharSource(file, StandardCharsets.UTF_8).read();
} catch (IOException | IllegalArgumentException e) {
- LOGGER.error("Mapping for {} cannot be set: {}", name, e);
+ LOGGER.error("Mapping for {} cannot be set", name, e);
LOGGER.warn("Using the default mapping strategy for {} type "
+ "that may result it suboptimal types representation", name);
}
}
return result;
} catch (IOException ioe) {
- LOGGER.error("Failed to execute action {}, cause: {}", action, ioe);
+ LOGGER.error("Failed to execute action {}", action, ioe);
}
return null;
}
@Override
public void failed(Exception ex) {
- LOGGER.error("Failed to execute action: {}, cause: {}", action, ex);
+ LOGGER.error("Failed to execute action: {}", action, ex);
}
});
}
RecordType type = RecordType.resolve(r);
bulk.addAction(new Index.Builder(r).index(INDEX).type(type.name).build());
} catch (IllegalArgumentException iae) {
- LOGGER.error("Cannot resolve type: {}, {}", r, iae);
+ LOGGER.error("Cannot resolve type: {}", r, iae);
}
}
BulkResult result = execute(bulk.build());
try {
store.store(record);
} catch (IllegalStateException ise) {
- LOGGER.error("Cannot store the record: {}, cause: {}", record, ise);
+ LOGGER.error("Cannot store the record: {}", record, ise);
}
}
try {
store.storeAll(records);
} catch (IllegalStateException ise) {
- LOGGER.error("Cannot store the records: {}, cause: {}", records.toArray(), ise);
+ LOGGER.error("Cannot store the records: {}", records.toArray(), ise);
}
}
0L,
1000);
assertThat(result).isEqualTo(Collections.emptyList());
- Mockito.verify(CLIENT, Mockito.atLeastOnce()).execute(Mockito.any(Bulk.class));
+ Mockito.verify(CLIENT, Mockito.atLeastOnce()).execute(Mockito.any());
}
/**
<dependency>
<groupId>org.apache.hbase</groupId>
<artifactId>hbase</artifactId>
- <version>${hbase.version}</version>
+ <version>0.94.15</version>
</dependency>
<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-core</artifactId>
- <version>${hadoop.version}</version>
+ <version>1.2.0</version>
</dependency>
<dependency>
<groupId>org.opendaylight.tsdr</groupId>
}
}
- LOG.info("Exiting createTables() - pending tables count:" + pendingTableNames.size());
+ LOG.info("Exiting createTables() - pending tables count: {}", pendingTableNames.size());
if (pendingTableNames.isEmpty()) {
completionFuture.set(null);
} else {
}
if (htablePool != null) {
htableResult = htablePool.getTable(tableName);
- LOG.debug("Obtained connection to table:" + tableName);
+ LOG.debug("Obtained connection to table {}", tableName);
htableResult.setAutoFlush(autoFlush);
htableResult.setWriteBufferSize(writeBufferSize);
}
} catch (TableNotFoundException nfe) {
throw nfe;
} catch (IOException ioe) {
- LOG.error("Cannot put Data into HBase", ioe.getMessage());
+ LOG.error("Cannot put Data into HBase", ioe);
closeConnection(entity.getTableName());
HConnectionManager.deleteAllConnections();
} finally {
} catch (TableNotFoundException nfe) {
throw nfe;
} catch (IOException ioe) {
- LOG.error("Cannot put Data into HBase", ioe.getMessage());
+ LOG.error("Cannot put Data into HBase", ioe);
closeConnection(tableName);
HConnectionManager.deleteAllConnections();
} finally {
} catch (TableNotFoundException nfe) {
throw nfe;
} catch (IOException ioe) {
- LOG.error("Deletion from HBase Data Store failed!", ioe.getMessage());
+ LOG.error("Deletion from HBase Data Store failed!", ioe);
closeConnection(tableName);
HConnectionManager.deleteAllConnections();
} finally {
*/
package org.opendaylight.tsdr.persistence.hbase;
-import static org.mockito.Matchers.any;
+import static org.mockito.ArgumentMatchers.any;
import static org.mockito.Mockito.doAnswer;
import static org.mockito.Mockito.doReturn;
import static org.mockito.Mockito.mock;
@Test(expected = TableNotFoundException.class)
public void testCreateEntityException() throws TableNotFoundException {
- HBaseDataStore hbasedatastore1 = null;
HBaseEntity dentity = new HBaseEntity();
dentity.setRowKey("rowKey1");
dentity.setTableName("tableName1");
columnList1.add(column);
dentity.setColumns(columnList1);
- hbasedatastore1 = new HBaseDataStore() {
+ HBaseDataStore hbasedatastore1 = new HBaseDataStore() {
@Override
public HTableInterface getConnection(String tableName) throws IOException {
throw new IOException();
@Test(expected = TableNotFoundException.class)
public void testCreateEntityListException() throws TableNotFoundException {
- HBaseDataStore hbasedatastore1 = null;
HBaseEntity dentity = new HBaseEntity();
dentity.setRowKey("rowKey1");
dentity.setTableName("tableName1");
List<HBaseEntity> entityList = new ArrayList<>();
entityList.add(dentity);
- hbasedatastore1 = new HBaseDataStore() {
+ HBaseDataStore hbasedatastore1 = new HBaseDataStore() {
@Override
public HTableInterface getConnection(String tableName) throws IOException {
throw new IOException();
</instructions>
</configuration>
</plugin>
- <plugin>
- <groupId>org.opendaylight.yangtools</groupId>
- <artifactId>yang-maven-plugin</artifactId>
- </plugin>
<plugin>
<groupId>org.apache.aries.blueprint</groupId>
<artifactId>blueprint-maven-plugin</artifactId>
<dependency>
<groupId>hsqldb</groupId>
<artifactId>hsqldb</artifactId>
- <version>${hsqldb.version}</version>
+ <version>1.8.0.10</version>
</dependency>
<dependency>
<groupId>org.opendaylight.tsdr</groupId>
*/
@Singleton
public class SchedulerServiceImpl implements SchedulerService {
- private static final Logger LOG = LoggerFactory.getLogger(SchedulerService.class);
+ private static final Logger LOG = LoggerFactory.getLogger(SchedulerServiceImpl.class);
private static final int THREADS_COUNT = 10;
<groupId>org.opendaylight.mdsal</groupId>
<artifactId>yang-binding</artifactId>
</dependency>
- <dependency>
- <groupId>org.opendaylight.mdsal.model</groupId>
- <artifactId>ietf-inet-types-2013-07-15</artifactId>
- </dependency>
- <dependency>
- <groupId>org.opendaylight.mdsal.model</groupId>
- <artifactId>ietf-yang-types-20130715</artifactId>
- </dependency>
<dependency>
<groupId>org.opendaylight.yangtools</groupId>
<artifactId>yang-common</artifactId>
</dependency>
+ <dependency>
+ <groupId>org.opendaylight.mdsal.binding.model.ietf</groupId>
+ <artifactId>rfc6991</artifactId>
+ </dependency>
<dependency>
<groupId>org.opendaylight.controller</groupId>
<artifactId>sal-core-api</artifactId>
<extensions>true</extensions>
<configuration>
<instructions>
- <!-- This bundle works with Karaf 3 and 4.0 -->
- <Import-Package>
- org.apache.karaf.shell.commands;version="[3.0.0,4.2)",
- org.apache.karaf.shell.console;version="[3.0.0,4.2)",
- *
- </Import-Package>
- <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
<Karaf-Commands>*</Karaf-Commands>
</instructions>
</configuration>
} catch (ParseException e) {
//Note we will log just a warning for this exception without stack trace
// As this is expected in some cases
- LOG.warn("getDate for " + dateTime + "caused exception {}", e);
+ LOG.warn("Error parsing date {}", dateTime, e);
return 0;
}
return date.getTime();
<parent>
<groupId>org.opendaylight.odlparent</groupId>
<artifactId>odlparent-lite</artifactId>
- <version>3.1.3</version>
+ <version>4.0.2</version>
<relativePath/>
</parent>