--- projects/cms/source/server/uk/org/iscream/cms/server/filter/FilterServant.java 2001/05/29 17:02:35 1.18 +++ projects/cms/source/server/uk/org/iscream/cms/server/filter/FilterServant.java 2002/03/22 10:43:06 1.19 @@ -12,7 +12,7 @@ import java.net.InetAddress; * Passes inbound data from other Filters to a FilterThread * * @author $Author: tdb $ - * @version $Id: FilterServant.java,v 1.18 2001/05/29 17:02:35 tdb Exp $ + * @version $Id: FilterServant.java,v 1.19 2002/03/22 10:43:06 tdb Exp $ */ class FilterServant extends FilterPOA { @@ -21,7 +21,7 @@ class FilterServant extends FilterPOA { /** * The current CVS revision of this class */ - public final String REVISION = "$Revision: 1.18 $"; + public final String REVISION = "$Revision: 1.19 $"; //---STATIC METHODS--- @@ -30,13 +30,9 @@ class FilterServant extends FilterPOA { /** * Creates a new FilterServant. * - * @param TCPListenPort the TCP port this filter is listening on - * @param UDPListenPort the UDP port this filter is listening on * @param queue the Queue this filter is using */ - public FilterServant(int TCPListenPort, int UDPListenPort, Queue queue) { - _TCPListenPort = TCPListenPort; - _UDPListenPort = UDPListenPort; + public FilterServant(Queue queue) { _queue = queue; _logger.write(toString(), Logger.SYSINIT, "started"); } @@ -72,34 +68,6 @@ class FilterServant extends FilterPOA { //---ACCESSOR/MUTATOR METHODS--- - /** - * Provides information to the FilterManager - */ - public String getUDPPort() { - return new Integer(_UDPListenPort).toString(); - } - - /** - * Provides information to the FilterManager - */ - public String getTCPPort() { - return new Integer(_TCPListenPort).toString(); - } - - /** - * Provides information to the FilterManager - */ - public String getHostName() { - try { - // hacky fix for windows boxes, where getHostName() returns the NetBIOS name ! - return InetAddress.getByName(InetAddress.getLocalHost().getHostAddress()).getHostName(); - } catch (java.net.UnknownHostException e) { - _logger.write(toString(), Logger.ERROR, e.getMessage()); - } - return null; - } - - //---ATTRIBUTES--- /** @@ -123,16 +91,6 @@ class FilterServant extends FilterPOA { * Our Queue object */ private Queue _queue; - - /** - * The UDP port we're listening on - */ - private int _UDPListenPort; - - /** - * The TCP port we're listening on - */ - private int _TCPListenPort; //---STATIC ATTRIBUTES---