org.jppf.comm.discovery
Class IPFilter

java.lang.Object
  extended by org.jppf.comm.discovery.IPFilter

public class IPFilter
extends Object

Instances of this class handle IP address inclusion and exclusion filters constructed from the JPPF configuration.

Author:
Laurent Cohen
See Also:
IPv4AddressPattern

Constructor Summary
IPFilter(TypedProperties config)
          Initialize this filter with the specified configuration.
 
Method Summary
 void configure()
          Configure this IP filter from the JPPF configuration.
 boolean isAddressAccepted(InetAddress ip)
          Determine whether an ip address passes the include and exclude filters.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IPFilter

public IPFilter(TypedProperties config)
Initialize this filter with the specified configuration.

Parameters:
config - the configuration from which to get the include and exclude filters.
Method Detail

configure

public void configure()
Configure this IP filter from the JPPF configuration.


isAddressAccepted

public boolean isAddressAccepted(InetAddress ip)
Determine whether an ip address passes the include and exclude filters.

Parameters:
ip - the ip to check.
Returns:
true if the address passes the filters, false otherwise.


Copyright © 2005-2010 JPPF Team.