コード例 #1
0
 /**
  * Returns the {@link MBeanServerConnection} for the connection to an application. The returned
  * {@code MBeanServerConnection} object becomes invalid when the connection state is changed to
  * the {@link ConnectionState#DISCONNECTED DISCONNECTED} state.
  *
  * @return the {@code MBeanServerConnection} for the connection to an application. It returns
  *     {@code null} if the JMX connection couldn't be established.
  */
 public MBeanServerConnection getMBeanServerConnection() {
   if (client != null) {
     return client.getMBeanServerConnection();
   }
   return null;
 }