void start() throws IOException { sendVersionHeader(); IoFuture<String> futureConnectionId = ConnectionIdReceiver.getConnectionId(channel); IoFuture.Status result = futureConnectionId.await(timeoutSeconds, TimeUnit.SECONDS); switch (result) { case DONE: connectionId = futureConnectionId.get(); mbeanServerConnection = new TheConnection(); localNotificationManager = new LocalNotificationManager(); channel.receiveMessage(new MessageReceiver()); break; case FAILED: throw futureConnectionId.getException(); default: throw new IOException("Unable to obtain connectionId, status=" + result.toString()); } }
return response.value; mbeanException(response.e); attributeNotFoundException(response.e); instanceNotFoundException(response.e); reflectionException(response.e); jmRuntimeException(response.e); throw toIoException(response.e); default: throw new IOException("Unable to obtain isRegistered, status=" + result.toString());
return response.value; reflectionException(response.e); instanceAlreadyExistsException(response.e); mbeanRegistrationException(response.e); mbeanException(response.e); notCompliantMBeanException(response.e); jmRuntimeException(response.e); throw toIoException(response.e); default: throw new IOException("Unable to invoke createMBean, status=" + result.toString());
return response.value; instanceNotFoundException(response.e); mbeanException(response.e); reflectionException(response.e); jmRuntimeException(response.e); throw toIoException(response.e); default: throw new IOException("Unable to invoke invoke(), status=" + result.toString());
return response.value; reflectionException(response.e); instanceAlreadyExistsException(response.e); mbeanRegistrationException(response.e); mbeanException(response.e); notCompliantMBeanException(response.e); jmRuntimeException(response.e); throw toIoException(response.e); default: throw new IOException("Unable to invoke createMBean, status=" + result.toString());
return response.value; reflectionException(response.e); instanceAlreadyExistsException(response.e); mbeanRegistrationException(response.e); mbeanException(response.e); notCompliantMBeanException(response.e); jmRuntimeException(response.e); throw toIoException(response.e); default: throw new IOException("Unable to invoke createMBean, status=" + result.toString());
return response.value; reflectionException(response.e); instanceAlreadyExistsException(response.e); mbeanRegistrationException(response.e); mbeanException(response.e); notCompliantMBeanException(response.e); jmRuntimeException(response.e); throw toIoException(response.e); default: throw new IOException("Unable to invoke createMBean, status=" + result.toString());
return response.value; reflectionException(response.e); instanceAlreadyExistsException(response.e); mbeanRegistrationException(response.e); mbeanException(response.e); notCompliantMBeanException(response.e); jmRuntimeException(response.e); throw toIoException(response.e); default: throw new IOException("Unable to invoke createMBean, status=" + result.toString());
instanceNotFoundException(response.e); jmRuntimeException(response.e); throw toIoException(response.e); default: localNotificationManager.cancel(notificationId);
return response.value; instanceNotFoundException(response.e); mbeanException(response.e); reflectionException(response.e); jmRuntimeException(response.e); throw toIoException(response.e); default: throw new IOException("Unable to invoke invoke(), status=" + result.toString());
instanceNotFoundException(response.e); jmRuntimeException(response.e); throw toIoException(response.e); default: localNotificationManager.cancel(notificationId);
jmRuntimeException(response.e); instanceNotFoundException(response.e); throw toIoException(response.e); default: throw new IOException("Unable to invoke removeNotificationListener, status=" + result.toString());
return response.value; reflectionException(response.e); instanceAlreadyExistsException(response.e); mbeanRegistrationException(response.e); mbeanException(response.e); notCompliantMBeanException(response.e); instanceNotFoundException(response.e); jmRuntimeException(response.e); throw toIoException(response.e); default: throw new IOException("Unable to obtain isRegistered, status=" + result.toString());
jmRuntimeException(response.e); instanceNotFoundException(response.e); throw toIoException(response.e); default: throw new IOException("Unable to invoke addNotificationListener, status=" + result.toString());
return response.value; reflectionException(response.e); instanceAlreadyExistsException(response.e); mbeanRegistrationException(response.e); mbeanException(response.e); notCompliantMBeanException(response.e); jmRuntimeException(response.e); throw toIoException(response.e); default: throw new IOException("Unable to obtain createMBean, status=" + result.toString());
jmRuntimeException(response.e); instanceNotFoundException(response.e); throw toIoException(response.e); default: throw new IOException("Unable to invoke removeNotificationListener, status=" + result.toString());
jmRuntimeException(response.e); instanceNotFoundException(response.e); throw toIoException(response.e); default: throw new IOException("Unable to invoke addNotificationListener, status=" + result.toString());
return response.value; reflectionException(response.e); instanceAlreadyExistsException(response.e); mbeanRegistrationException(response.e); mbeanException(response.e); notCompliantMBeanException(response.e); instanceNotFoundException(response.e); jmRuntimeException(response.e); throw toIoException(response.e); default: throw new IOException("Unable to obtain isRegistered, status=" + result.toString());
return response.value; instanceNotFoundException(response.e); reflectionException(response.e); jmRuntimeException(response.e); throw toIoException(response.e); default: throw new IOException("Unable to invoke getAttributes, status=" + result.toString());
return response.value; instanceNotFoundException(response.e); reflectionException(response.e); jmRuntimeException(response.e); throw toIoException(response.e); default: throw new IOException("Unable to invoke setAttributes, status=" + result.toString());