Also upgrades jline version to 3.5.0, to be aligned with karaf.
Change-Id: I2e244fd1cf8fd6056813ba8626a049a44de6f24e
Signed-off-by: Tom Pantelis <tompantelis@gmail.com>
Signed-off-by: Robert Varga <rovarga@cisco.com>
target-ide/
.checkstyle
.fbExcludeFilterFile
+.factorypath
# OpenDaylight
yang-gen-sal/
<parent>
<groupId>org.opendaylight.odlparent</groupId>
<artifactId>odlparent-lite</artifactId>
- <version>2.0.5</version>
+ <version>3.0.2</version>
<relativePath/>
</parent>
private final TsdrCollectorSpiService collectorSPIService;
private final ExecutorService storeMetricsExecutor = SpecialExecutors.newBoundedSingleThreadExecutor(
- 1000, "TSDR Openflow Storing Thread");
+ 1000, "TSDR Openflow Storing Thread", TSDROpenflowCollector.class);
private final ScheduledExecutorService scheduledExecutor = Executors.newScheduledThreadPool(
1, new ThreadFactoryBuilder().setNameFormat("TSDR Openflow Poller-%d").build());
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
+import javax.servlet.ReadListener;
import javax.servlet.ServletException;
import javax.servlet.ServletInputStream;
import javax.servlet.ServletRequest;
public int read(byte[] buf, int off, int len) {
return this.bais.read(buf, off, len);
}
+
+ @Override
+ public boolean isFinished() {
+ return true;
+ }
+
+ @Override
+ public boolean isReady() {
+ return true;
+ }
+
+ @Override
+ public void setReadListener(ReadListener arg0) {
+ }
}
}
</plugins>
</build>
<dependencies>
+ <dependency>
+ <groupId>org.osgi</groupId>
+ <artifactId>org.osgi.compendium</artifactId>
+ </dependency>
<dependency>
<groupId>org.opendaylight.tsdr</groupId>
<artifactId>tsdr-collector-spi</artifactId>
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>
- <dependency>
- <groupId>org.apache.felix</groupId>
- <artifactId>org.apache.felix.dependencymanager</artifactId>
- </dependency>
+<!-- <dependency> -->
+<!-- <groupId>org.apache.felix</groupId> -->
+<!-- <artifactId>org.apache.felix.dependencymanager</artifactId> -->
+<!-- </dependency> -->
<dependency>
<groupId>org.opendaylight.controller</groupId>
<artifactId>sal-binding-broker-impl</artifactId>
this.collectorConfig = collectorConfig;
storeMetricsExecutor = SpecialExecutors.newBoundedSingleThreadExecutor(
- collectorConfig.getStoreMetricsExecutorQueueSize().intValue(), "TSDR SNMP Storing Thread");
+ collectorConfig.getStoreMetricsExecutorQueueSize().intValue(), "TSDR SNMP Storing Thread",
+ SNMPDataCollector.class);
}
public void init() {
</build>
<dependencies>
+ <dependency>
+ <groupId>org.osgi</groupId>
+ <artifactId>org.osgi.compendium</artifactId>
+ </dependency>
<dependency>
<groupId>org.opendaylight.tsdr</groupId>
<artifactId>tsdr-persistence-spi</artifactId>
<parent>
<groupId>org.opendaylight.odlparent</groupId>
<artifactId>feature-repo-parent</artifactId>
- <version>2.0.5</version>
+ <version>3.0.2</version>
<relativePath/>
</parent>
<parent>
<groupId>org.opendaylight.odlparent</groupId>
<artifactId>single-feature-parent</artifactId>
- <version>2.0.5</version>
+ <version>3.0.2</version>
<relativePath/>
</parent>
<parent>
<groupId>org.opendaylight.odlparent</groupId>
<artifactId>single-feature-parent</artifactId>
- <version>2.0.5</version>
+ <version>3.0.2</version>
<relativePath/>
</parent>
<parent>
<groupId>org.opendaylight.odlparent</groupId>
<artifactId>single-feature-parent</artifactId>
- <version>2.0.5</version>
+ <version>3.0.2</version>
<relativePath/>
</parent>
<parent>
<groupId>org.opendaylight.odlparent</groupId>
<artifactId>single-feature-parent</artifactId>
- <version>2.0.5</version>
+ <version>3.0.2</version>
<relativePath/>
</parent>
<parent>
<groupId>org.opendaylight.odlparent</groupId>
<artifactId>single-feature-parent</artifactId>
- <version>2.0.5</version>
+ <version>3.0.2</version>
<relativePath/>
</parent>
<parent>
<groupId>org.opendaylight.odlparent</groupId>
<artifactId>single-feature-parent</artifactId>
- <version>2.0.5</version>
+ <version>3.0.2</version>
<relativePath/>
</parent>
<parent>
<groupId>org.opendaylight.odlparent</groupId>
<artifactId>single-feature-parent</artifactId>
- <version>2.0.5</version>
+ <version>3.0.2</version>
<relativePath/>
</parent>
<parent>
<groupId>org.opendaylight.odlparent</groupId>
<artifactId>single-feature-parent</artifactId>
- <version>2.0.5</version>
+ <version>3.0.2</version>
<relativePath/>
</parent>
<parent>
<groupId>org.opendaylight.odlparent</groupId>
<artifactId>single-feature-parent</artifactId>
- <version>2.0.5</version>
+ <version>3.0.2</version>
<relativePath/>
</parent>
<parent>
<groupId>org.opendaylight.odlparent</groupId>
<artifactId>single-feature-parent</artifactId>
- <version>2.0.5</version>
+ <version>3.0.2</version>
<relativePath/>
</parent>
<parent>
<groupId>org.opendaylight.odlparent</groupId>
<artifactId>single-feature-parent</artifactId>
- <version>2.0.5</version>
+ <version>3.0.2</version>
<relativePath/>
</parent>
<parent>
<groupId>org.opendaylight.odlparent</groupId>
<artifactId>single-feature-parent</artifactId>
- <version>2.0.5</version>
+ <version>3.0.2</version>
<relativePath/>
</parent>
<parent>
<groupId>org.opendaylight.odlparent</groupId>
<artifactId>odlparent-lite</artifactId>
- <version>2.0.5</version>
+ <version>3.0.2</version>
<relativePath/>
</parent>
org.hibernate.proxy,
javassist.util.proxy,
javax.persistence,
- org.apache.karaf.shell.commands;version="[3.0.0,4.1)",
- org.apache.karaf.shell.console;version="[3.0.0,4.1)",
*
</ImportPackage>
import java.util.Set;
import java.util.TreeMap;
import java.util.concurrent.ScheduledFuture;
-import jline.internal.ShutdownHooks.Task;
import junit.framework.Assert;
+import org.jline.utils.ShutdownHooks.Task;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
build failure. Please do not modify this unless you have a good reason. -->
<name>ODL :: tsdr :: ${project.artifactId}</name>
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.felix</groupId>
- <artifactId>maven-bundle-plugin</artifactId>
- <version>${bundle.plugin.version}</version>
- <extensions>true</extensions>
- <configuration>
- <instructions>
- <Bundle-Name>org.opendaylight.tsdr.spi</Bundle-Name>
- <!-- This bundle works with Karaf 3 and 4.0 -->
- <Import-Package>
- org.apache.karaf.shell.*;version="[3.0.0,4.1)",
- *
- </Import-Package>
- </instructions>
- </configuration>
- </plugin>
- </plugins>
- </build>
<dependencies>
<dependency>
<groupId>org.apache.karaf.shell</groupId>
<version>${karaf.version}</version>
<scope>provided</scope>
</dependency>
+ <dependency>
+ <groupId>org.jline</groupId>
+ <artifactId>jline</artifactId>
+ <version>3.5.0</version>
+ </dependency>
<dependency>
<groupId>org.jledit</groupId>
<artifactId>core</artifactId>
<version>0.2.1</version>
+ <scope>test</scope>
</dependency>
<dependency>
<groupId>org.opendaylight.mdsal</groupId>
import javax.crypto.spec.SecretKeySpec;
import javax.xml.bind.DatatypeConverter;
import javax.xml.transform.stream.StreamSource;
-import jline.internal.Log;
+import org.jline.utils.Log;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
<parent>
<groupId>org.opendaylight.odlparent</groupId>
<artifactId>odlparent-lite</artifactId>
- <version>2.0.5</version>
+ <version>3.0.2</version>
<relativePath></relativePath>
</parent>