java plugin: Add support for `match' callbacks.
[collectd.git] / bindings / java / org / collectd / api / Collectd.java
index 97b990e..15e177c 100644 (file)
@@ -34,6 +34,13 @@ public class Collectd
   public static final int LOG_INFO    = 6;
   public static final int LOG_DEBUG   = 7;
 
+  public static final int FC_MATCH_NO_MATCH  = 0;
+  public static final int FC_MATCH_MATCHES   = 1;
+
+  public static final int FC_TARGET_CONTINUE = 0;
+  public static final int FC_TARGET_STOP     = 1;
+  public static final int FC_TARGET_RETURN   = 2;
+
   /**
    * Java representation of collectd/src/plugin.h:plugin_register_config
    */
@@ -83,6 +90,12 @@ public class Collectd
       CollectdNotificationInterface object);
 
   /**
+   * Java representation of collectd/src/filter_chain.h:fc_register_match
+   */
+  native public static int registerMatch (String name,
+      CollectdMatchFactoryInterface object);
+
+  /**
    * Java representation of collectd/src/plugin.h:plugin_dispatch_values
    */
   native public static int dispatchValues (ValueList vl);