KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jgap > distr > WorkerListener


1 /*
2  * This file is part of JGAP.
3  *
4  * JGAP offers a dual license model containing the LGPL as well as the MPL.
5  *
6  * For licencing information please see the file license.txt included with JGAP
7  * or have a look at the top of class org.jgap.Chromosome which representatively
8  * includes the JGAP license policy applicable for any file delivered with JGAP.
9  */

10 package org.jgap.distr;
11
12 import java.io.*;
13
14 /**
15  * Represents a listener for requests from workers to the master.
16  *
17  * @author Klaus Meffert
18  * @since 2.4
19  */

20 public abstract class WorkerListener {
21   /** String containing the CVS revision. Read out via reflection!*/
22   private final static String JavaDoc CVS_REVISION = "$Revision: 1.4 $";
23
24   /**
25    * Listens to a request.
26    * @throws IOException
27    *
28    * @author Klaus Meffert
29    * @since 2.4
30    */

31   public abstract void listen()
32       throws IOException;
33
34   /**
35    * Stops the listener.
36    *
37    * @author Klaus Meffert
38    * @since 2.4
39    */

40   public abstract void stop();
41 }
42
Popular Tags