There are 1 code examples for javax.management.MBeanServerConnection.
The API names are highlighted below.
You can use
button
to vote the code example(s) you like. The best code example will be ranked first next time. Thanks a lot for your feedback.
Project Name: codecover Package: org.codecover.eclipse.livenotification
Source Code: LiveNotificationClient.java (Click to view .java file)
Method Code:
/**
* Finishes the whole test session
* @throws LiveNotificationExceptionWraps an {@link IOException} occurred while communicating
* with the server or an {@link MBeanException} which in turn
* wraps any {@link Exception} thrown by an invoked method.
*/
public void finish() throws LiveNotificationException {
if (!this.clientState.equals(ConnectionState.CONNECTED_WITH_MBEAN)) {
return;
}
try {
this.serverConnection.invoke(this.mbeanName,"finish",null,null);
}
catch ( InstanceNotFoundException e) {
throw new Error(e);
}
catch ( MBeanException e) {
throw new LiveNotificationMBeanException(ERROR_FINISHING_TEST_SESSION,e);
}
catch ( ReflectionException e) {
throw new Error(e);
}
catch ( IOException e) {
disconnect();
throw new LiveNotificationIOException(ERROR_WITH_THE_CONNECTION,e);
}
}