org.libvirt
Class NetworkFilter

java.lang.Object
  extended by org.libvirt.NetworkFilter

public class NetworkFilter
extends java.lang.Object


Field Summary
protected  Libvirt libvirt
          The libvirt connection from the hypervisor
 
Constructor Summary
NetworkFilter(Connect virConnect, NetworkFilterPointer NFP)
           
 
Method Summary
 void finalize()
           
 int free()
          Release the network filter handle.
 java.lang.String getName()
          Gets the public name for this network filter
 int[] getUUID()
          Get the UUID for this network filter.
 java.lang.String getUUIDString()
          Gets the UUID for this network filter as string.
 java.lang.String getXMLDesc()
          Fetches an XML document describing attributes of the network filter.
protected  void processError()
          Error handling logic to throw errors.
 void undefine()
          undefine the network filter
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

libvirt

protected Libvirt libvirt
The libvirt connection from the hypervisor

Constructor Detail

NetworkFilter

public NetworkFilter(Connect virConnect,
                     NetworkFilterPointer NFP)
Method Detail

finalize

public void finalize()
              throws LibvirtException
Overrides:
finalize in class java.lang.Object
Throws:
LibvirtException

free

public int free()
         throws LibvirtException
Release the network filter handle. The underlying snapshot continues to exist.

Returns:
0 on success, or -1 on error.
Throws:
LibvirtException

getName

public java.lang.String getName()
                         throws LibvirtException
Gets the public name for this network filter

Returns:
the name
Throws:
LibvirtException

getUUID

public int[] getUUID()
              throws LibvirtException
Get the UUID for this network filter.

Returns:
the UUID as an unpacked int array
Throws:
LibvirtException
See Also:
rfc4122

getUUIDString

public java.lang.String getUUIDString()
                               throws LibvirtException
Gets the UUID for this network filter as string.

Returns:
the UUID in canonical String format
Throws:
LibvirtException
See Also:
rfc4122

getXMLDesc

public java.lang.String getXMLDesc()
                            throws LibvirtException
Fetches an XML document describing attributes of the network filter.

Returns:
the XML document
Throws:
LibvirtException
See Also:
Libvirt Documentation

processError

protected void processError()
                     throws LibvirtException
Error handling logic to throw errors. Must be called after every libvirt call.

Throws:
LibvirtException

undefine

public void undefine()
              throws LibvirtException
undefine the network filter

Throws:
LibvirtException