org.jvnet.solaris.libzfs
Interface ZFSContainer

All Known Implementing Classes:
LibZFS, ZFSFileSystem, ZFSObject, ZFSSnapshot, ZFSVolume

public interface ZFSContainer

Object that contains ZFSObjects.

Author:
Kohsuke Kawaguchi

Method Summary
 List<? extends ZFSObject> children()
          List the children of this ZFS object (but not recursively.)
<T extends ZFSObject>
List<T>
children(Class<T> type)
          List the specific kind of children of this ZFS object (but not recursively.)
 List<ZFSObject> descendants()
          List the children of this ZFS object recursively, excluding the 'this' object itself.
<T extends ZFSObject>
List<T>
descendants(Class<T> type)
           
 

Method Detail

children

List<? extends ZFSObject> children()
List the children of this ZFS object (but not recursively.)

Returns:
Never null. Sorted by the in-order of the traversal.

children

<T extends ZFSObject> List<T> children(Class<T> type)
List the specific kind of children of this ZFS object (but not recursively.)

Returns:
Never null. Sorted by the in-order of the traversal.

descendants

List<ZFSObject> descendants()
List the children of this ZFS object recursively, excluding the 'this' object itself.

Returns:
Never null. Sorted by the in-order of the traversal.

descendants

<T extends ZFSObject> List<T> descendants(Class<T> type)


Copyright © 2012. All Rights Reserved.