|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--au.com.prunge.jgenfile.impl.AbstractOperation
|
+--au.com.prunge.jgenfile.impl.AbstractFileSystemOperation
|
+--au.com.prunge.jgenfile.impl.NullGetFileSystemMetadataOperation
A get file system metadata operation that does nothing. No metadata is ever returned.
| Constructor Summary | |
NullGetFileSystemMetadataOperation(au.com.prunge.jgenfile.FileSystem fileSystem,
Set metadataKeySet)
Constructs a NullGetFileSystemMetadataOperation. |
|
| Method Summary | |
Map |
getMetadata()
Always returns an empty map. |
Set |
getMetadataKeySet()
Returns the set of metadata keys this operation is looking up for the file system. |
void |
runImpl()
The actual run() implementation goes in this method. |
| Methods inherited from class au.com.prunge.jgenfile.impl.AbstractFileSystemOperation |
getFileSystem |
| Methods inherited from class au.com.prunge.jgenfile.impl.AbstractOperation |
abort, addOperationHints, checkRun, getLastRunException, getOperationHint, getOperationHints, hasRun, run, setLastRunException, setOperationHint, setOperationHints |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 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 |
| Constructor Detail |
public NullGetFileSystemMetadataOperation(au.com.prunge.jgenfile.FileSystem fileSystem,
Set metadataKeySet)
throws NullPointerException
NullGetFileSystemMetadataOperation.
fileSystem - the file system this operation is for.metadataKeySet - a set of metadata keys to access.
NullPointerException - if metadataKeySet
is null.| Method Detail |
public Set getMetadataKeySet()
GetFileSystemMetadataOperation
getMetadataKeySet in interface GetFileSystemMetadataOperationGetFileSystemMetadataOperation.getMetadataKeySet()
public Map getMetadata()
throws OperationNotFinishedException,
JGenFileException
getMetadata in interface GetFileSystemMetadataOperationOperationNotFinishedException - if this method
was called and the run() method has not
finished or has not been called.
JGenFileException - if another error occurs.GetFileSystemMetadataOperation.getMetadata()
public void runImpl()
throws JGenFileException
AbstractOperationIf this method completes successfully (i.e. without throwing an exception), the last run exception is set to null indicating no exception occurred and subsequent calls to hasRun() will return true.
If this method throws an exception, the last run exception is filled in and hasRun() subsequent calls to hasRun() will return false.
runImpl in class AbstractOperationJGenFileException - if an error occurs.au.com.prunge.jgenfile.AbstractOperation#runImpl()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||