< prev index next >
application/tests/org.openjdk.jmc.rjmx.test/src/test/java/org/openjdk/jmc/rjmx/test/subscription/MultipleAttributeSubscriptionTest.java
Print this page
@@ -53,16 +53,16 @@
* Tests acquiring several subscriptions. Ensures that subscriptions are properly created and
* that events are properly received.
*/
@Test
public void testMultipleSubscriptions() throws Exception {
- IConnectionHandle handle = IServerHandle.create(LocalRJMXTestToolkit.createDefaultDescriptor()).connect("Test"); //$NON-NLS-1$
+ IConnectionHandle handle = IServerHandle.create(LocalRJMXTestToolkit.createDefaultDescriptor()).connect("Test");
ISubscriptionService service = handle.getServiceOrThrow(ISubscriptionService.class);
- MRI cpuAttributeDescriptor = new MRI(Type.ATTRIBUTE, "java.lang:type=OperatingSystem", "SystemCpuLoad"); //$NON-NLS-1$ //$NON-NLS-2$
+ MRI cpuAttributeDescriptor = new MRI(Type.ATTRIBUTE, "java.lang:type=OperatingSystem", "SystemCpuLoad");
service.addMRIValueListener(cpuAttributeDescriptor, this);
- MRI loadAttributeDescriptor = new MRI(Type.ATTRIBUTE, "java.lang:type=OperatingSystem", "ProcessCpuLoad"); //$NON-NLS-1$ //$NON-NLS-2$
+ MRI loadAttributeDescriptor = new MRI(Type.ATTRIBUTE, "java.lang:type=OperatingSystem", "ProcessCpuLoad");
service.addMRIValueListener(loadAttributeDescriptor, this);
synchronized (this) {
for (int i = 0; i < 8; i++) {
wait(8000);
< prev index next >