From b6adf09c4d2cc3f1d0285950c151b1fd7688ec67 Mon Sep 17 00:00:00 2001 From: Richard Jones Date: Thu, 4 Jun 2009 14:59:16 +0100 Subject: Generated code for the 'sleep' command. --- java/com/redhat/et/libguestfs/GuestFS.java | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'java/com') diff --git a/java/com/redhat/et/libguestfs/GuestFS.java b/java/com/redhat/et/libguestfs/GuestFS.java index 1d00547c..3f03d754 100644 --- a/java/com/redhat/et/libguestfs/GuestFS.java +++ b/java/com/redhat/et/libguestfs/GuestFS.java @@ -3337,4 +3337,21 @@ public HashMap test0rhashtableerr () private native void _e2fsck_f (long g, String device) throws LibGuestFSException; + /** + * sleep for some seconds + *

+ * Sleep for "secs" seconds. + *

+ * @throws LibGuestFSException + */ + public void sleep (int secs) + throws LibGuestFSException + { + if (g == 0) + throw new LibGuestFSException ("sleep: handle is closed"); + _sleep (g, secs); + } + private native void _sleep (long g, int secs) + throws LibGuestFSException; + } -- cgit