au.com.prunge.jgenfile
Interface CloseFileAccessorOperation

All Superinterfaces:
FileAccessorOperation, Operation
All Known Implementing Classes:
LocalCloseFileAccessorOperation

public interface CloseFileAccessorOperation
extends FileAccessorOperation

An operation that closes a file accessor.

A file accessor cannot be closed if a channel has been acquired from the accessor and that channel is still open. An OpenChannelException will be thrown when this operation is run if this occurs.

This operation does not introduce any new methods, but just tags the operation's type.

Version:
1.0
Author:
Peter Runge

Method Summary
 void run()
          Runs this operation.
 
Methods inherited from interface au.com.prunge.jgenfile.FileAccessorOperation
getFileAccessor
 
Methods inherited from interface au.com.prunge.jgenfile.Operation
abort, addOperationHints, getLastRunException, getOperationHint, getOperationHints, hasRun, setOperationHint, setOperationHints
 

Method Detail

run

public void run()
         throws JGenFileException,
                OpenChannelException,
                OperationNotSupportedException
Runs this operation.

Specified by:
run in interface Operation
Throws:
OpenChannelException - if the channel acquired with the file accessor is still open.
UnsupportedOperationException - if this operaiton is not supported.
JGenFileException - if another error occurs.
OperationNotSupportedException - if this operation is not supported by the file system.
See Also:
Operation.abort()