+
+ case statistics-collection-service-impl {
+ when "/config:modules/config:module/config:type = 'statistics-collection-service-impl'";
+
+ container statistics {
+ leaf statistics-collect {
+ description "Toggle statistics collecting";
+ type boolean;
+ }
+ leaf log-report-delay {
+ description "Delay between statistics logs";
+ type uint16;
+ }
+ }
+ list openflow-switch-connection-provider {
+ uses config:service-ref {
+ refine type {
+ mandatory true;
+ config:required-identity openflow-switch-connection-provider:openflow-switch-connection-provider;
+ }
+ }
+ }
+ }
+ }
+
+ augment "/config:modules/config:module/config:state" {
+ case statistics-collection-service-impl {
+ when "/config:modules/config:module/config:type = 'statistics-collection-service-impl'";
+
+ description
+ "MXBean designed for Message Statistic providing to JConsole.";
+
+ leaf msgStatistics {
+ type string;
+ }
+
+ rpcx:rpc-context-instance "print-ofjava-statistics-rpc";
+ rpcx:rpc-context-instance "reset-ofjava-statistics-rpc";
+ }
+ }
+
+ identity print-ofjava-statistics-rpc;
+ identity reset-ofjava-statistics-rpc;
+
+ rpc print-ofjava-statistics {
+ description
+ "Shortcut JMX call to printOfjavaStatistics.";
+ input {
+ uses rpcx:rpc-context-ref {
+ refine context-instance {
+ rpcx:rpc-context-instance print-ofjava-statistics-rpc;
+ }
+ }
+ }
+ output {
+ leaf result {
+ type string;
+ }
+ }
+ }
+
+ rpc reset-ofjava-statistics {
+ description
+ "Shortcut JMX call to resetOfjavaStatistics.";
+ input {
+ uses rpcx:rpc-context-ref {
+ refine context-instance {
+ rpcx:rpc-context-instance reset-ofjava-statistics-rpc;
+ }
+ }
+ }
+ output {
+ leaf result {
+ type string;
+ }
+ }