au.com.prunge.jgenfile
Interface CanGetRootsOperation

All Superinterfaces:
FileSystemOperation, Operation
All Known Implementing Classes:
ConstantCanGetRootsOperation, LocalCanGetRootsOperation

public interface CanGetRootsOperation
extends FileSystemOperation

An operation that tests whether the roots of a file system can be acquired.

Version:
1.0
Author:
Peter Runge

Method Summary
 boolean canGetRoots()
          Returns whether the roots of the file system can be acquired.
 
Methods inherited from interface au.com.prunge.jgenfile.FileSystemOperation
getFileSystem
 
Methods inherited from interface au.com.prunge.jgenfile.Operation
abort, addOperationHints, getLastRunException, getOperationHint, getOperationHints, hasRun, run, setOperationHint, setOperationHints
 

Method Detail

canGetRoots

public boolean canGetRoots()
                    throws OperationNotFinishedException,
                           JGenFileException
Returns whether the roots of the file system can be acquired.

Returns:
true if the roots can be acquired, false if not.
Throws:
OperationNotFinishedException - if this method was called and the run() method has not finished or has not been called.
JGenFileException - if another error occurs.