public JMXServerInfo readJMX ( InputStream in ) throws ConversionException , IOException { JSONObject json = parseObject ( in ) ; JMXServerInfo ret = new JMXServerInfo ( ) ; ret . version = readIntInternal ( json . get ( N_VERSION ) ) ; ret . mbeansURL = readStringInternal ( json . get ( N_MBEANS ) ) ; ret . createMBeanURL = readStringInternal ( json . get ( N_CREATEMBEAN ) ) ; ret . mbeanCountURL = readStringInternal ( json . get ( N_MBEANCOUNT ) ) ; ret . defaultDomainURL = readStringInternal ( json . get ( N_DEFAULTDOMAIN ) ) ; ret . domainsURL = readStringInternal ( json . get ( N_DOMAINS ) ) ; ret . notificationsURL = readStringInternal ( json . get ( N_NOTIFICATIONS ) ) ; ret . instanceOfURL = readStringInternal ( json . get ( N_INSTANCEOF ) ) ; ret . fileTransferURL = readStringInternal ( json . get ( N_FILE_TRANSFER ) ) ; ret . apiURL = readStringInternal ( json . get ( N_API ) ) ; ret . graphURL = readStringInternal ( json . get ( N_GRAPH ) ) ; return ret ; }
Decode a JSON document to retrieve a JMX instance .