JMXAccessorInvokeTask.java 文件源码

java
阅读 27 收藏 0 点赞 0 评论 0

项目:lazycat 作者:
/**
 * Execute the specified command, based on the configured properties. The
 * input stream will be closed upon completion of this task, whether it was
 * executed successfully or not.
 * 
 * @exception BuildException
 *                if an error occurs
 */
@Override
public String jmxExecute(MBeanServerConnection jmxServerConnection) throws Exception {

    if (getName() == null) {
        throw new BuildException("Must specify a 'name'");
    }
    if ((operation == null)) {
        throw new BuildException("Must specify a 'operation' for call");
    }
    return jmxInvoke(jmxServerConnection, getName());
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号