KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > remoting > network > NetworkFilter


1 /***************************************
2  * *
3  * JBoss: The OpenSource J2EE WebOS *
4  * *
5  * Distributable under LGPL license. *
6  * See terms of license at gnu.org. *
7  * *
8  ***************************************/

9 package org.jboss.remoting.network;
10
11 import java.io.Serializable JavaDoc;
12 import org.jboss.remoting.InvokerLocator;
13 import org.jboss.remoting.ident.Identity;
14
15 /**
16  * NetworkFilter can be used when selecting <tt>0..*</tt> servers on the network
17  * from the NetworkRegistry
18  *
19  * @author <a HREF="mailto:jhaynie@vocalocity.net">Jeff Haynie</a>
20  * @version $Revision: 1.2 $
21  */

22 public interface NetworkFilter extends Serializable JavaDoc
23 {
24    /**
25     * called to apply a filter when selecting <tt>0..*</tt> servers on the network
26     *
27     * @param identity
28     * @param locators
29     * @return
30     */

31    public boolean filter(Identity identity, InvokerLocator locators[]);
32 }
33
Popular Tags