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 * A JVM with JDP on should send multicast JDP packets regularly.
26 *
27 * See main for more information on running this test manually.
28 * See Launcher classes for automated runs.
29 *
30 */
31
32 import java.net.SocketTimeoutException;
33 import java.util.Map;
34 import static jdk.testlibrary.Asserts.assertNotEquals;
35
36 public class JdpOnTestCase extends JdpTestCase {
37
38 private int receivedJDPpackets = 0;
39
40 public JdpOnTestCase(ClientConnection connection) {
41 super(connection);
42 }
43
44 /**
45 * Subclasses: JdpOnTestCase and JdpOffTestCase have different messages.
46 */
47 @Override
48 protected String initialLogMessage() {
49 return "Waiting for 3 packets with jdp.name=" + connection.instanceName;
50 }
51
52 /**
53 * This method is executed after a correct Jdp packet (coming from this VM) has been received.
54 *
|
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 * A JVM with JDP on should send multicast JDP packets regularly.
26 *
27 * See main for more information on running this test manually.
28 * See Launcher classes for automated runs.
29 *
30 */
31
32 import java.net.SocketTimeoutException;
33 import java.util.Map;
34 import static jdk.test.lib.Asserts.assertNotEquals;
35
36 public class JdpOnTestCase extends JdpTestCase {
37
38 private int receivedJDPpackets = 0;
39
40 public JdpOnTestCase(ClientConnection connection) {
41 super(connection);
42 }
43
44 /**
45 * Subclasses: JdpOnTestCase and JdpOffTestCase have different messages.
46 */
47 @Override
48 protected String initialLogMessage() {
49 return "Waiting for 3 packets with jdp.name=" + connection.instanceName;
50 }
51
52 /**
53 * This method is executed after a correct Jdp packet (coming from this VM) has been received.
54 *
|