/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/** This class implements a generic AMXMBeanInterface MBean which is connected to a possibly
* remote MBeanServerConnection (note that MBeanServer isA MBeanServerConnection,
* so we can actually create an AMXClientImpl simply by using the MBeanServer
* from the mom: this is useful for testing).
* <P>
* is identical to DynamicMBean, except that it only throws unchecked exceptions.
* This is far more convenient in practice than the JMX-standard checked exceptions.
*
* @author ken
*/
try {
return new ObjectName(str);
} catch (MalformedObjectNameException ex) {
return null ;
}
}
/** Special object name used to represent a NULL objectName result.
*/
"null:type=Null,name=Null" ) ;
if (this == obj) {
return true ;
}
return false ;
}
}
public int hashCode() {
int hash = 5;
return hash;
}
}
try {
return null ;
} else {
}
} catch (JMException exc) {
} catch (IOException exc) {
}
}
ObjectName oname ) {
}
return null ;
}
}
}
try {
}
return result ;
} catch (MBeanException ex) {
} catch (RuntimeOperationsException ex) {
} catch (InstanceNotFoundException ex) {
} catch (IntrospectionException ex) {
} catch (ReflectionException ex) {
} catch (IOException ex) {
}
}
}
ObjectName[].class ) ;
return makeAMXArray( onames ) ;
}
int ctr=0 ;
}
return result ;
}
try {
} catch (MBeanException ex) {
} catch (AttributeNotFoundException ex) {
} catch (ReflectionException ex) {
} catch (InstanceNotFoundException ex) {
} catch (IOException ex) {
}
}
setAttribute( attr ) ;
}
try {
} catch (InstanceNotFoundException ex) {
} catch (AttributeNotFoundException ex) {
} catch (InvalidAttributeValueException ex) {
} catch (MBeanException ex) {
} catch (ReflectionException ex) {
} catch (IOException ex) {
}
}
try {
} catch (InstanceNotFoundException ex) {
} catch (ReflectionException ex) {
} catch (IOException ex) {
}
}
try {
} catch (InstanceNotFoundException ex) {
} catch (ReflectionException ex) {
} catch (IOException ex) {
}
}
throws MBeanException, ReflectionException {
try {
} catch (InstanceNotFoundException ex) {
} catch (IOException ex) {
}
}
try {
} catch (InstanceNotFoundException ex) {
} catch (IntrospectionException ex) {
} catch (ReflectionException ex) {
} catch (IOException ex) {
}
}
return oname ;
}
}