Package org.libvirt

Class Stream


  • public class Stream
    extends java.lang.Object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int abort()
      Request that the in progress data transfer be cancelled abnormally before the end of the stream has been reached
      int addCallback​(int events, Libvirt.VirStreamEventCallback cb)
      Register a callback to be notified when a stream becomes writable, or readable.
      void finalize()  
      int finish()
      Indicate that there is no further data is to be transmitted on the stream.
      int free()
      Decrement the reference count on a stream, releasing the stream object if the reference count has hit zero.
      protected void processError()
      Error handling logic to throw errors.
      int receive​(byte[] data)
      Receieves data from teh stream into the buffer provided.
      int receiveAll​(Libvirt.VirStreamSinkFunc handler)
      Batch receive method
      int removeCallback()
      Remove an event callback from the stream
      int send​(java.lang.String data)
      Write a series of bytes to the stream.
      int sendAll​(Libvirt.VirStreamSourceFunc handler)
      Batch send method
      int updateCallback​(int events)
      Changes the set of events to monitor for a stream.
      • Methods inherited from class java.lang.Object

        clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • VIR_STREAM_NONBLOCK

        public static int VIR_STREAM_NONBLOCK
      • libvirt

        protected Libvirt libvirt
        The libvirt connection from the hypervisor