< prev index next >

test/sun/management/jmxremote/bootstrap/JMXInterfaceBindingTest.java

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


  31 
  32 import jdk.testlibrary.ProcessThread;
  33 import jdk.testlibrary.ProcessTools;
  34 
  35 /**
  36  * NOTE:
  37  *    This test requires at least a setup similar to the following in
  38  *    /etc/hosts file (or the windows equivalent). I.e. it expects it to
  39  *    be multi-homed and not both being the loop-back interface.
  40  *    For example:
  41  *    ----->8-------- /etc/hosts ----------->8---
  42  *    127.0.0.1   localhost
  43  *    192.168.0.1 localhost
  44  *    ----->8-------- /etc/hosts ----------->8---
  45  *
  46  * @test
  47  * @bug     6425769
  48  * @summary Test JMX agent host address binding. Same ports but different
  49  *          interfaces to bind to (using plain sockets and SSL sockets).
  50  *
  51  * @modules jdk.management.agent/jdk.internal.agent
  52  *          jdk.management.agent/sun.management.jmxremote
  53  * @library /lib/testlibrary

  54  * @build jdk.testlibrary.* JMXAgentInterfaceBinding
  55  * @run main/timeout=5 JMXInterfaceBindingTest
  56  */
  57 public class JMXInterfaceBindingTest {
  58 
  59     public static final int COMMUNICATION_ERROR_EXIT_VAL = 1;
  60     public static final int STOP_PROCESS_EXIT_VAL = 143;
  61     public static final int JMX_PORT = 9111;
  62     public static final int RMI_PORT = 9112;
  63     public static final String READY_MSG = "MainThread: Ready for connections";
  64     public static final String TEST_CLASS = JMXAgentInterfaceBinding.class.getSimpleName();
  65     public static final String KEYSTORE_LOC = System.getProperty("test.src", ".") +
  66                                               File.separator +
  67                                               "ssl" +
  68                                               File.separator +
  69                                               "keystore";
  70     public static final String TRUSTSTORE_LOC = System.getProperty("test.src", ".") +
  71                                                 File.separator +
  72                                                 "ssl" +
  73                                                 File.separator +




  31 
  32 import jdk.testlibrary.ProcessThread;
  33 import jdk.testlibrary.ProcessTools;
  34 
  35 /**
  36  * NOTE:
  37  *    This test requires at least a setup similar to the following in
  38  *    /etc/hosts file (or the windows equivalent). I.e. it expects it to
  39  *    be multi-homed and not both being the loop-back interface.
  40  *    For example:
  41  *    ----->8-------- /etc/hosts ----------->8---
  42  *    127.0.0.1   localhost
  43  *    192.168.0.1 localhost
  44  *    ----->8-------- /etc/hosts ----------->8---
  45  *
  46  * @test
  47  * @bug     6425769
  48  * @summary Test JMX agent host address binding. Same ports but different
  49  *          interfaces to bind to (using plain sockets and SSL sockets).
  50  *


  51  * @library /lib/testlibrary
  52  *
  53  * @build jdk.testlibrary.* JMXAgentInterfaceBinding
  54  * @run main/timeout=5 JMXInterfaceBindingTest
  55  */
  56 public class JMXInterfaceBindingTest {
  57 
  58     public static final int COMMUNICATION_ERROR_EXIT_VAL = 1;
  59     public static final int STOP_PROCESS_EXIT_VAL = 143;
  60     public static final int JMX_PORT = 9111;
  61     public static final int RMI_PORT = 9112;
  62     public static final String READY_MSG = "MainThread: Ready for connections";
  63     public static final String TEST_CLASS = JMXAgentInterfaceBinding.class.getSimpleName();
  64     public static final String KEYSTORE_LOC = System.getProperty("test.src", ".") +
  65                                               File.separator +
  66                                               "ssl" +
  67                                               File.separator +
  68                                               "keystore";
  69     public static final String TRUSTSTORE_LOC = System.getProperty("test.src", ".") +
  70                                                 File.separator +
  71                                                 "ssl" +
  72                                                 File.separator +


< prev index next >