X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=bindings%2Fjava%2Forg%2Fcollectd%2Fapi%2FCollectd.java;h=450f87ae8ff96be28fb6d719a3ea1d0d90755fb7;hb=59547eb66a3743ca0b458222d7a4318f3e659a60;hp=c3377d1efeb6589c30a8c36301ce877d0b1b23f8;hpb=633c3966f770e4d46651a2fe219a18d8a9907a9f;p=collectd.git diff --git a/bindings/java/org/collectd/api/Collectd.java b/bindings/java/org/collectd/api/Collectd.java index c3377d1e..450f87ae 100644 --- a/bindings/java/org/collectd/api/Collectd.java +++ b/bindings/java/org/collectd/api/Collectd.java @@ -257,6 +257,13 @@ public class Collectd native private static void log (int severity, String message); /** + * Yield contents of collectd/src/collectd.h:hostname_g + * + * @return The hostname as set in the collectd configuration. + */ + native public static java.lang.String getHostname (); + + /** * Prints an error message. */ public static void logError (String message)