Package org.kohsuke.file_leak_detector
Class ActivityListener
java.lang.Object
org.kohsuke.file_leak_detector.ActivityListener
Allows user programs to receive callbacks for file open/close activities.
Instantiate this class and put it into LIST to start receiving callbacks.
Listeners must be concurrent and re-entrant safe.
- Author:
- Michal Linhard (michal@linhard.sk), Kohsuke Kawaguchi
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
LIST
These listeners get called.
-
-
Constructor Details
-
ActivityListener
public ActivityListener()
-
-
Method Details
-
open
Called when a new file is opened.- Parameters:
obj-FileInputStream,FileOutputStream,RandomAccessFile, orZipFile.file- File being opened.
-
open
-
openSocket
Called when a new socket is opened.- Parameters:
obj-Socket,ServerSocketorSocketChannel
-
close
Called when a file is closed. This method tolerates a double-close where a close method is called on an already closed object.- Parameters:
obj-FileInputStream,FileOutputStream,RandomAccessFile,Socket,ServerSocket, orZipFile.
-
fd_open
-