From: Jan S. <st...@us...> - 2002-05-16 12:04:49
|
Update of /cvsroot/javaprofiler/module/net/sourceforge/javaprofiler/module/data In directory usw-pr-cvs1:/tmp/cvs-serv28344 Added Files: ConListener.java Log Message: Connection listener. --- NEW FILE: ConListener.java --- /* * Sun Public License Notice * * The contents of this file are subject to the Sun Public License Version * 1.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is available at http://www.sun.com/ * * The Original Code is the Java Profiler module. * The Initial Developers of the Original Code are Jan Stola, Pavel Vacha, * Michal Pise, Petr Luner, Lukas Petru and Marek Przeczek. * Portions created by Jan Stola are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Pavel Vacha are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Michal Pise are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Petr Luner are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Lukas Petru are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Marek Przeczek are Copyright (C) 2000-2001. All Rights Reserved. * * Contributors: Jan Stola, Pavel Vacha, Michal Pise, Petr Luner, * Lukas Petru and Marek Przeczek. */ package net.sourceforge.javaprofiler.module.data; /** * Listener for a connection from a profiler process. * * @author Jan Stola */ public class ConListener { /** Location where this listener listens to the process. */ private String location; /** Thread that listens to the connection. */ private Thread thread; /** * Creates new <code>ConListener</code>. * * @param port port where this listener listens to the process. * @param thread thread that listens to the connection. */ public ConListener(String location, Thread thread) { this.location=location; this.thread=thread; } /** * Returns location where this listener listens to the process. * * @return location where this listener listens to the process. */ public String getLocation() { return location; } /** * Terminates the listening. */ public void terminate() { thread.interrupt(); } } /* * $Log: ConListener.java,v $ * Revision 1.1 2002/05/16 12:04:45 stolis * Connection listener. * */ |