directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From trus...@apache.org
Subject svn commit: r155918 - incubator/directory/network/mina/trunk/src/java/org/apache/mina/util/AvailablePortFinder.java
Date Wed, 02 Mar 2005 14:00:59 GMT
Author: trustin
Date: Wed Mar  2 06:00:57 2005
New Revision: 155918

URL: http://svn.apache.org/viewcvs?view=rev&rev=155918
Log:
Copied AvailablePortFinder from APSEDA



Added:
    incubator/directory/network/mina/trunk/src/java/org/apache/mina/util/AvailablePortFinder.java
  (contents, props changed)
      - copied, changed from r155914, incubator/directory/network/apseda/trunk/src/java/org/apache/apseda/listener/AvailablePortFinder.java

Copied: incubator/directory/network/mina/trunk/src/java/org/apache/mina/util/AvailablePortFinder.java
(from r155914, incubator/directory/network/apseda/trunk/src/java/org/apache/apseda/listener/AvailablePortFinder.java)
URL: http://svn.apache.org/viewcvs/incubator/directory/network/mina/trunk/src/java/org/apache/mina/util/AvailablePortFinder.java?view=diff&rev=155918&p1=incubator/directory/network/apseda/trunk/src/java/org/apache/apseda/listener/AvailablePortFinder.java&r1=155914&p2=incubator/directory/network/mina/trunk/src/java/org/apache/mina/util/AvailablePortFinder.java&r2=155918
==============================================================================
--- incubator/directory/network/apseda/trunk/src/java/org/apache/apseda/listener/AvailablePortFinder.java
(original)
+++ incubator/directory/network/mina/trunk/src/java/org/apache/mina/util/AvailablePortFinder.java
Wed Mar  2 06:00:57 2005
@@ -1,4 +1,6 @@
 /*
+ *   @(#) $Id$
+ * 
  *   Copyright 2004 The Apache Software Foundation
  *
  *   Licensed under the Apache License, Version 2.0 (the "License");
@@ -15,7 +17,7 @@
  *
  */
 
-package org.apache.apseda.listener;
+package org.apache.mina.util;
 
 import java.io.IOException;
 import java.net.DatagramSocket;
@@ -28,8 +30,7 @@
 /**
  * Finds currently available server ports.
  *
- * @author Trustin Lee
- * @author <a href="mailto:directory-dev@incubator.apache.org">Apache Directory Project</a>
+ * @author The Apache Directory Project
  * @version $Rev$
  * @see <a href="http://www.iana.org/assignments/port-numbers">IANA.org</a>
  */
@@ -48,7 +49,7 @@
     /**
      * Creates a new instance.
      */
-    public AvailablePortFinder()
+    private AvailablePortFinder()
     {
     }
 
@@ -59,7 +60,7 @@
      *
      * WARNING: this can take a very long time.
      */
-    public Set getAvailablePorts()
+    public static Set getAvailablePorts()
     {
         return getAvailablePorts(MIN_PORT_NUMBER, MAX_PORT_NUMBER);
     }
@@ -172,7 +173,7 @@
      * {@link #MIN_PORT_NUMBER} and {@link #MAX_PORT_NUMBER} or
      * <code>fromPort</code> if greater than <code>toPort</code>.
      */
-    public Set getAvailablePorts(int fromPort, int toPort)
+    public static Set getAvailablePorts(int fromPort, int toPort)
     {
         if (
             (fromPort < MIN_PORT_NUMBER) || (toPort > MAX_PORT_NUMBER)

Propchange: incubator/directory/network/mina/trunk/src/java/org/apache/mina/util/AvailablePortFinder.java
------------------------------------------------------------------------------
    svn:executable = *

Propchange: incubator/directory/network/mina/trunk/src/java/org/apache/mina/util/AvailablePortFinder.java
------------------------------------------------------------------------------
    svn:keywords = HeadURL Id LastChangedBy LastChangedDate LastChangedRevision



Mime
View raw message