< prev index next >

application/tests/org.openjdk.jmc.rjmx.services.jfr.test/src/test/java/org/openjdk/jmc/rjmx/services/jfr/test/JfrPackageExampleTest.java

Print this page

        

*** 61,73 **** @SuppressWarnings("nls") public class JfrPackageExampleTest extends RjmxTestCase { @Test public void testPackageExample1FunctionalityVerbatim() throws Exception { ! IConnectionDescriptor descriptor = new ConnectionDescriptorBuilder().hostName("localhost").port(0).build(); //$NON-NLS-1$ IServerHandle serverHandle = IServerHandle.create(descriptor); ! IConnectionHandle handle = serverHandle.connect("Get JFR recording info"); //$NON-NLS-1$ try { IFlightRecorderService jfr = handle.getServiceOrThrow(IFlightRecorderService.class); for (IRecordingDescriptor desc : jfr.getAvailableRecordings()) { System.out.println(desc.getName()); } --- 61,73 ---- @SuppressWarnings("nls") public class JfrPackageExampleTest extends RjmxTestCase { @Test public void testPackageExample1FunctionalityVerbatim() throws Exception { ! IConnectionDescriptor descriptor = new ConnectionDescriptorBuilder().hostName("localhost").port(0).build(); IServerHandle serverHandle = IServerHandle.create(descriptor); ! IConnectionHandle handle = serverHandle.connect("Get JFR recording info"); try { IFlightRecorderService jfr = handle.getServiceOrThrow(IFlightRecorderService.class); for (IRecordingDescriptor desc : jfr.getAvailableRecordings()) { System.out.println(desc.getName()); }
*** 76,86 **** } } @Test public void testPackageExample2FunctionalityVerbatim() throws Exception { ! IConnectionDescriptor descriptor = new ConnectionDescriptorBuilder().hostName("localhost").port(0).build(); //$NON-NLS-1$ IServerHandle serverHandle = IServerHandle.create(descriptor); IConnectionHandle handle = serverHandle.connect("Start time bound flight recording"); try { IFlightRecorderService jfr = handle.getServiceOrThrow(IFlightRecorderService.class); --- 76,86 ---- } } @Test public void testPackageExample2FunctionalityVerbatim() throws Exception { ! IConnectionDescriptor descriptor = new ConnectionDescriptorBuilder().hostName("localhost").port(0).build(); IServerHandle serverHandle = IServerHandle.create(descriptor); IConnectionHandle handle = serverHandle.connect("Start time bound flight recording"); try { IFlightRecorderService jfr = handle.getServiceOrThrow(IFlightRecorderService.class);
< prev index next >