| java.lang.Object net.fenyo.gnetwatch.activities.CaptureManager
CaptureManager | public class CaptureManager (Code) | | This class captures Ethernet frames using tethereal.
A tethereal instance is spawned through a Capture instance, for each layer-2 interface.
author: Alexandre Fenyo version: $Id: CaptureManager.java,v 1.8 2007/03/08 18:21:31 fenyo Exp $ |
Inner Class :public interface HandlePacket | |
Method Summary | |
public void | handlePacket(Document packet) Inform every listeners about the next frame.
Parameters: packet - next frame. | public synchronized void | registerListener(String filter, HandlePacket callback) Register a frame listener. | public void | setGUI(GUI gui) Defines the GUI instance.
Parameters: GUI - gui. | public synchronized void | unRegisterAllListeners() Removes every listeners.
none. | public synchronized void | unRegisterListener(String filter, HandlePacket callback) Removes a frame listener.
Parameters: filter - filter this listener was interested in. Parameters: callback - entry point for asynchronous call. |
CaptureManager | public CaptureManager(Config config)(Code) | | Constructor.
main thread.
Parameters: config - configuration. |
handlePacket | public void handlePacket(Document packet)(Code) | | Inform every listeners about the next frame.
Parameters: packet - next frame. void. |
registerListener | public synchronized void registerListener(String filter, HandlePacket callback) throws InterruptedException(Code) | | Register a frame listener.
Parameters: filter - filter this listener is interested in. Parameters: callback - entry point for asynchronous call. throws: InterruptedException - exception. |
setGUI | public void setGUI(GUI gui)(Code) | | Defines the GUI instance.
Parameters: GUI - gui. void. |
unRegisterListener | public synchronized void unRegisterListener(String filter, HandlePacket callback) throws InterruptedException(Code) | | Removes a frame listener.
Parameters: filter - filter this listener was interested in. Parameters: callback - entry point for asynchronous call. void. throws: InterruptedException - exception. |
|
|