< prev index next >

test/sun/management/jmxremote/LocalRMIServerSocketFactoryTest.java

Print this page
rev 16783 : 8176176: fix @modules in jdk_svc tests
Reviewed-by: duke


  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 /**
  25  *  @test LocalRMIServerSocketFactoryTest.java
  26  *  @bug 6774170
  27  *  @summary Connect to a server socket returned by the LocalRMIServerSocketFactory.
  28  *
  29  *  @author Daniel Fuchs
  30  *
  31  *  @modules jdk.management.agent/sun.management.jmxremote
  32  *  @run compile -XDignore.symbol.file=true -g LocalRMIServerSocketFactoryTest.java
  33  *  @run main LocalRMIServerSocketFactoryTest
  34  */
  35 
  36 import sun.management.jmxremote.LocalRMIServerSocketFactory;
  37 import java.io.IOException;
  38 import java.net.InetAddress;
  39 import java.net.NetworkInterface;
  40 import java.net.ServerSocket;
  41 import java.net.Socket;
  42 import java.util.concurrent.SynchronousQueue;
  43 
  44 public class LocalRMIServerSocketFactoryTest {
  45 
  46     private static final SynchronousQueue<Exception> queue =
  47             new SynchronousQueue<Exception>();
  48     private static volatile boolean isRunning = true;
  49 
  50     static final class Result extends Exception {
  51 




  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 /**
  25  * @test LocalRMIServerSocketFactoryTest.java
  26  * @bug 6774170
  27  * @summary Connect to a server socket returned by the LocalRMIServerSocketFactory.
  28  *
  29  * @author Daniel Fuchs
  30  *

  31  * @run compile -XDignore.symbol.file=true -g LocalRMIServerSocketFactoryTest.java
  32  * @run main LocalRMIServerSocketFactoryTest
  33  */
  34 
  35 import sun.management.jmxremote.LocalRMIServerSocketFactory;
  36 import java.io.IOException;
  37 import java.net.InetAddress;
  38 import java.net.NetworkInterface;
  39 import java.net.ServerSocket;
  40 import java.net.Socket;
  41 import java.util.concurrent.SynchronousQueue;
  42 
  43 public class LocalRMIServerSocketFactoryTest {
  44 
  45     private static final SynchronousQueue<Exception> queue =
  46             new SynchronousQueue<Exception>();
  47     private static volatile boolean isRunning = true;
  48 
  49     static final class Result extends Exception {
  50 


< prev index next >