OPNFLWPLUG-992 : Device connection rate limiter implemenation
[openflowplugin.git] / openflowplugin-api / src / main / java / org / opendaylight / openflowplugin / api / openflow / configuration / ConfigurationProperty.java
index da80b861f0f6157115b19c721e2ef9cff0ab6c98..bcc48b4de274bfbe90e60e5c54bea9bc2ec7924d 100644 (file)
@@ -9,6 +9,7 @@
 package org.opendaylight.openflowplugin.api.openflow.configuration;
 
 import com.google.common.collect.ImmutableMap;
+import java.util.Locale;
 import java.util.Map;
 
 /**
@@ -22,6 +23,30 @@ public enum ConfigurationProperty {
      * Is statistics polling on property type.
      */
     IS_STATISTICS_POLLING_ON,
+    /**
+     * Is table statistics polling on property type.
+     */
+    IS_TABLE_STATISTICS_POLLING_ON,
+    /**
+     * Is flow statistics polling on property type.
+     */
+    IS_FLOW_STATISTICS_POLLING_ON,
+    /**
+     * Is group statistics polling on property type.
+     */
+    IS_GROUP_STATISTICS_POLLING_ON,
+    /**
+     * Is meter statistics polling on property type.
+     */
+    IS_METER_STATISTICS_POLLING_ON,
+    /**
+     * Is port statistics polling on property type.
+     */
+    IS_PORT_STATISTICS_POLLING_ON,
+    /**
+     * Is queue statistics polling on property type.
+     */
+    IS_QUEUE_STATISTICS_POLLING_ON,
     /**
      * Barrier count limit property type.
      */
@@ -82,12 +107,20 @@ public enum ConfigurationProperty {
     /**
      * Thread pool timeout property type.
      */
-    THREAD_POOL_TIMEOUT;
+    THREAD_POOL_TIMEOUT,
+    /**
+     * Enable or disable equal role functionality.
+     */
+    ENABLE_EQUAL_ROLE,
+    /**
+     * Device connection rate limit property type.
+     */
+    DEVICE_CONNECTION_RATE_LIMIT_PER_MIN;
 
     private static final Map<String, ConfigurationProperty> KEY_VALUE_MAP;
 
     /**
-     * Get property type from property key
+     * Get property type from property key.
      *
      * @param key the property key
      * @return the property type
@@ -108,12 +141,12 @@ public enum ConfigurationProperty {
     }
 
     /**
-     * Converts enum name to property key
+     * Converts enum name to property key.
      *
      * @return the property key
      */
     @Override
     public String toString() {
-        return this.name().toLowerCase().replace('_', '-');
+        return this.name().toLowerCase(Locale.ENGLISH).replace('_', '-');
     }
 }