summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 685611f)
raw | patch | inline | side by side (parent: 685611f)
author | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Sun, 22 Feb 2009 18:00:23 +0000 (19:00 +0100) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Sun, 22 Feb 2009 18:03:15 +0000 (19:03 +0100) |
Especially add the new ``native'' methods.
src/collectd-java.pod | patch | blob | history |
diff --git a/src/collectd-java.pod b/src/collectd-java.pod
index 02feff6eb1aebdb78c854e7c38866243fc0341b4..013bf893391ec4631132c3dbb845ddbe90ae81c2 100644 (file)
--- a/src/collectd-java.pod
+++ b/src/collectd-java.pod
as I<publicE<nbsp>static> functions of the B<org.collectd.api.CollectdAPI>
class. This makes calling these functions pretty straight forward.
-The currently exported functions are:
+The following are the currently exported functions. For information on the
+interfaces used, please see L<"REGISTERING CALLBACKS"> above.
+
+=head2 registerConfig
+
+Signature: I<int> B<registerConfig> (I<String> name,
+I<CollectdConfigInterface> object);
+
+Registers the B<config> function of I<object> with the daemon.
+
+Returns zero upon success and non-zero when an error occurred.
+
+=head2 registerInit
+
+Signature: I<int> B<registerInit> (I<String> name,
+I<CollectdInitInterface> object);
+
+Registers the B<init> function of I<object> with the daemon.
+
+Returns zero upon success and non-zero when an error occurred.
=head2 registerRead
I<CollectdReadInterface> object)
Registers the B<read> function of I<object> with the daemon.
-For a description of the B<CollectdReadInterface> interface, see
-L<"REGISTERING CALLBACKS"> above.
Returns zero upon success and non-zero when an error occurred.
I<CollectdWriteInterface> object)
Registers the B<write> function of I<object> with the daemon.
-For a description of the B<CollectdWriteInterface> interface, see
-L<"REGISTERING CALLBACKS"> above.
+
+Returns zero upon success and non-zero when an error occurred.
+
+=head2 registerShutdown
+
+Signature: I<int> B<registerShutdown> (I<String> name,
+I<CollectdShutdownInterface> object);
+
+Registers the B<shutdown> function of I<object> with the daemon.
Returns zero upon success and non-zero when an error occurred.
Returns the approrpate I<type> or B<null> if the type is not defined.
+=head2 logError
+
+Signature: I<void> B<logError> (I<String>)
+
+Sends a log message with severity B<ERROR> to the daemon.
+
+=head2 logWarning
+
+Signature: I<void> B<logWarning> (I<String>)
+
+Sends a log message with severity B<WARNING> to the daemon.
+
+=head2 logNotice
+
+Signature: I<void> B<logNotice> (I<String>)
+
+Sends a log message with severity B<NOTICE> to the daemon.
+
+=head2 logInfo
+
+Signature: I<void> B<logInfo> (I<String>)
+
+Sends a log message with severity B<INFO> to the daemon.
+
+=head2 logDebug
+
+Signature: I<void> B<logDebug> (I<String>)
+
+Sends a log message with severity B<DEBUG> to the daemon.
+
=head1 SEE ALSO
L<collectd(1)>,