Package org.libvirt
Class NetworkFilter
- java.lang.Object
-
- org.libvirt.NetworkFilter
-
public class NetworkFilter extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description NetworkFilter(Connect virConnect, NetworkFilterPointer NFP)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfinalize()intfree()Release the network filter handle.java.lang.StringgetName()Gets the public name for this network filterint[]getUUID()Get the UUID for this network filter.java.lang.StringgetUUIDString()Gets the UUID for this network filter as string.java.lang.StringgetXMLDesc()Fetches an XML document describing attributes of the network filter.protected voidprocessError()Error handling logic to throw errors.voidundefine()undefine the network filter
-
-
-
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:
finalizein classjava.lang.Object- Throws:
LibvirtException
-
free
public int free() throws LibvirtExceptionRelease 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 LibvirtExceptionGets the public name for this network filter- Returns:
- the name
- Throws:
LibvirtException
-
getUUID
public int[] getUUID() throws LibvirtExceptionGet 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 LibvirtExceptionGets 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 LibvirtExceptionFetches an XML document describing attributes of the network filter.- Returns:
- the XML document
- Throws:
LibvirtException- See Also:
- Libvirt Documentation
-
processError
protected void processError() throws LibvirtExceptionError handling logic to throw errors. Must be called after every libvirt call.- Throws:
LibvirtException
-
undefine
public void undefine() throws LibvirtExceptionundefine the network filter- Throws:
LibvirtException
-
-