org.libvirt

Class NetworkFilter

public class NetworkFilter extends Object

Field Summary
protected Libvirtlibvirt
The libvirt connection from the hypervisor
Constructor Summary
NetworkFilter(Connect virConnect, NetworkFilterPointer NFP)
Method Summary
intfree()
Release the network filter handle.
StringgetName()
Gets the public name for this network filter
int[]getUUID()
Get the UUID for this network filter.
StringgetUUIDString()
Gets the UUID for this network filter as string.
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

free

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

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

Throws: LibvirtException

getName

public String getName()
Gets the public name for this network filter

Returns: the name

Throws: LibvirtException

getUUID

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

Returns: the UUID as an unpacked int array

Throws: LibvirtException

See Also: rfc4122

getUUIDString

public String getUUIDString()
Gets the UUID for this network filter as string.

Returns: the UUID in canonical String format

Throws: LibvirtException

See Also: rfc4122

getXMLDesc

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

Returns: the XML document

See Also: Libvirt Documentation

processError

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

undefine

public void undefine()
undefine the network filter

Throws: LibvirtException