<bundle>mvn:org.opendaylight.openflowjava/openflow-protocol-impl/${project.version}</bundle>
<bundle>mvn:org.opendaylight.openflowjava/util/${project.version}</bundle>
</feature>
+ <feature name='odl-openflowjava-stats' description="OpenDaylight :: Openflow Java :: Stats">
+ <feature version='${project.version}'>odl-openflowjava-protocol</feature>
+ <configfile finalname="etc/opendaylight/karaf/45-openflowjava-stats.xml">mvn:org.opendaylight.openflowjava/openflowjava-config/${project.version}/xml/configstats</configfile>
+ </feature>
</features>
return 0;
}
};
- } else {
- LOGGER.error("STATISTICS ARE NULL");
}
- LOGGER.error("config " + statsConfig);
if (statsConfig != null) {
statsCounter.startCounting(statsConfig.getStatisticsCollect(), statsConfig.getLogReportDelay());
} else {
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>\r
+<!-- Copyright (c) 2014 Cisco Systems, Inc. and others. All rights reserved. \r
+ This program and the accompanying materials are made available under the \r
+ terms of the Eclipse Public License v1.0 which accompanies this distribution, \r
+ and is available at http://www.eclipse.org/legal/epl-v10.html -->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">\r
+\r
+ <modelVersion>4.0.0</modelVersion>\r
+\r
+ <parent>\r
+ <groupId>org.opendaylight.openflowjava</groupId>\r
+ <artifactId>openflow-protocol-parent</artifactId>\r
+ <version>0.6.0-SNAPSHOT</version>\r
+ </parent>\r
+ <artifactId>openflowjava-config</artifactId>\r
+ <description>Configuration files for openflowjava statistics</description>\r
+ <packaging>jar</packaging>\r
+ <name>Openflow Protocol Library - CONFIG</name>\r
+ <scm>\r
+ <url>https://wiki.opendaylight.org/view/Openflow_Protocol_Library:Main</url>\r
+ <tag>HEAD</tag>\r
+ </scm>\r
+ <properties>\r
+ <configfile>45-openflowjava-stats.xml</configfile>\r
+ </properties>\r
+ <build>\r
+ <plugins>\r
+ <plugin>\r
+ <groupId>org.codehaus.mojo</groupId>\r
+ <artifactId>build-helper-maven-plugin</artifactId>\r
+ <executions>\r
+ <execution>\r
+ <id>attach-artifacts</id>\r
+ <goals>\r
+ <goal>attach-artifact</goal>\r
+ </goals>\r
+ <phase>package</phase>\r
+ <configuration>\r
+ <artifacts>\r
+ <artifact>\r
+ <file>${project.build.directory}/classes/${configfile}</file>\r
+ <type>xml</type>\r
+ <classifier>configstats</classifier>\r
+ </artifact>\r
+ </artifacts>\r
+ </configuration>\r
+ </execution>\r
+ </executions>\r
+ </plugin>\r
+ </plugins>\r
+ </build>\r
+</project>\r
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>\r
+<!-- vi: set et smarttab sw=4 tabstop=4: -->\r
+<!--\r
+Copyright (c) 2013 Pantheon Technologies s.r.o. and others. All rights reserved.\r
+\r
+This program and the accompanying materials are made available under the\r
+terms of the Eclipse Public License v1.0 which accompanies this distribution,\r
+and is available at http://www.eclipse.org/legal/epl-v10.html\r
+-->\r
+<snapshot>\r
+ <required-capabilities>\r
+ <!-- openflowjava -->\r
+ <capability>urn:opendaylight:params:xml:ns:yang:openflow:switch:connection:provider:impl?module=openflow-switch-connection-provider-impl&revision=2014-03-28</capability>\r
+ <capability>urn:opendaylight:params:xml:ns:yang:openflow:switch:connection:provider?module=openflow-switch-connection-provider&revision=2014-03-28</capability>\r
+ </required-capabilities>\r
+\r
+ <configuration>\r
+\r
+ <data xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">\r
+ <modules xmlns="urn:opendaylight:params:xml:ns:yang:controller:config">\r
+ <module>\r
+ <type xmlns:stats="urn:opendaylight:params:xml:ns:yang:openflow:switch:connection:provider:impl">stats:statistics-collection-service-impl</type>\r
+ <name>statistics-collection-service-impl</name>\r
+ <statistics>\r
+ <statistics-collect>true</statistics-collect>\r
+ <log-report-delay>10000</log-report-delay>\r
+ </statistics>\r
+ <openflow-switch-connection-provider>\r
+ <type xmlns:ofSwitch="urn:opendaylight:params:xml:ns:yang:openflow:switch:connection:provider">ofSwitch:openflow-switch-connection-provider</type>\r
+ <name>openflow-switch-connection-provider-default</name>\r
+ </openflow-switch-connection-provider>\r
+ <openflow-switch-connection-provider>\r
+ <type xmlns:ofSwitch="urn:opendaylight:params:xml:ns:yang:openflow:switch:connection:provider">ofSwitch:openflow-switch-connection-provider</type>\r
+ <name>openflow-switch-connection-provider-legacy</name>\r
+ </openflow-switch-connection-provider>\r
+ </module>\r
+ </modules>\r
+ </data>\r
+\r
+ </configuration>\r
+</snapshot>
\ No newline at end of file
<version>0.6.0-SNAPSHOT</version>
<packaging>pom</packaging>
<modules>
+ <module>openflowjava-config</module>
<module>openflow-protocol-api</module>
<module>openflow-protocol-spi</module>
<module>util</module>
<module>openflow-protocol-it</module>
<module>features</module>
<module>simple-client</module>
- </modules>
+ </modules>
<scm>
<connection>scm:git:ssh://git.opendaylight.org:29418/openflowjava.git</connection>
<developerConnection>scm:git:ssh://git.opendaylight.org:29418/openflowjava.git</developerConnection>
</goals>
</pluginExecutionFilter>
<action>
- <ignore></ignore>
+ <ignore/>
</action>
</pluginExecution>
<pluginExecution>
</goals>
</pluginExecutionFilter>
<action>
- <ignore></ignore>
+ <ignore/>
</action>
</pluginExecution>
<pluginExecution>
</goals>
</pluginExecutionFilter>
<action>
- <ignore></ignore>
+ <ignore/>
</action>
</pluginExecution>
<pluginExecution>
</goals>
</pluginExecutionFilter>
<action>
- <ignore></ignore>
+ <ignore/>
</action>
</pluginExecution>
<pluginExecution>
</goals>
</pluginExecutionFilter>
<action>
- <execute></execute>
+ <execute/>
</action>
</pluginExecution>
<pluginExecution>
</goals>
</pluginExecutionFilter>
<action>
- <ignore></ignore>
+ <ignore/>
</action>
</pluginExecution>
<pluginExecution>
</goals>
</pluginExecutionFilter>
<action>
- <ignore></ignore>
+ <ignore/>
</action>
</pluginExecution>
</pluginExecutions>
</build>
</profile>
</profiles>
-</project>
+</project>
\ No newline at end of file