|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.lib.servlet.FileSystemReleaseFilter
@InterfaceAudience.Private public abstract class FileSystemReleaseFilter
The FileSystemReleaseFilter releases back to the
FileSystemAccess service a FileSystem instance.
| Constructor Summary | |
|---|---|
FileSystemReleaseFilter()
|
|
| Method Summary | |
|---|---|
void |
destroy()
Destroys the filter. |
void |
doFilter(javax.servlet.ServletRequest servletRequest,
javax.servlet.ServletResponse servletResponse,
javax.servlet.FilterChain filterChain)
It delegates the incoming request to the FilterChain, and
at its completion (in a finally block) releases the filesystem instance
back to the FileSystemAccess service. |
protected abstract FileSystemAccess |
getFileSystemAccess()
Abstract method to be implemetned by concrete implementations of the filter that return the FileSystemAccess service to which the filesystem
will be returned to. |
void |
init(javax.servlet.FilterConfig filterConfig)
Initializes the filter. |
static void |
setFileSystem(org.apache.hadoop.fs.FileSystem fs)
Static method that sets the FileSystem to release back to
the FileSystemAccess service on servlet request completion. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FileSystemReleaseFilter()
| Method Detail |
|---|
public void init(javax.servlet.FilterConfig filterConfig)
throws javax.servlet.ServletException
init in interface javax.servlet.FilterfilterConfig - filter configuration.
javax.servlet.ServletException - thrown if the filter could not be initialized.
public void doFilter(javax.servlet.ServletRequest servletRequest,
javax.servlet.ServletResponse servletResponse,
javax.servlet.FilterChain filterChain)
throws IOException,
javax.servlet.ServletException
FilterChain, and
at its completion (in a finally block) releases the filesystem instance
back to the FileSystemAccess service.
doFilter in interface javax.servlet.FilterservletRequest - servlet request.servletResponse - servlet response.filterChain - filter chain.
IOException - thrown if an IO error occurrs.
javax.servlet.ServletException - thrown if a servet error occurrs.public void destroy()
destroy in interface javax.servlet.Filterpublic static void setFileSystem(org.apache.hadoop.fs.FileSystem fs)
FileSystem to release back to
the FileSystemAccess service on servlet request completion.
fs - fileystem instance.protected abstract FileSystemAccess getFileSystemAccess()
FileSystemAccess service to which the filesystem
will be returned to.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||