Package org.gridkit.jvmtool

Examples of org.gridkit.jvmtool.MBeanHelper


          if (operation == null) {
            SJK.failAndPrintUsage("MBean operation name is missing");
          }
          MBeanServerConnection conn = connInfo.getMServer();
                    Set<ObjectName> names = resolveSingleBean(conn);
          MBeanHelper helper = new MBeanHelper(conn);
                    for (ObjectName name : names) {
                        System.out.println(name);
                        System.out.println(helper.invoke(name, operation, arguments.toArray(new String[arguments.size()])));
                    }
        } catch (Exception e) {
          e.printStackTrace();
          SJK.fail();
        }
View Full Code Here


          if (attrib == null) {
            SJK.failAndPrintUsage("MBean operation name is missing");
          }
          MBeanServerConnection conn = connInfo.getMServer();
                    Set<ObjectName> names = resolveSingleBean(conn);
          MBeanHelper helper = new MBeanHelper(conn);
                    for (ObjectName name : names) {
                        System.out.println(name);
              System.out.println(helper.get(name, attrib));
                    }
        } catch (Exception e) {
          SJK.fail(e.toString());
        }
      }
View Full Code Here

          if (value == null) {
            SJK.failAndPrintUsage("Value is required");
          }
          MBeanServerConnection conn = connInfo.getMServer();
                    Set<ObjectName> names = resolveSingleBean(conn);
          MBeanHelper helper = new MBeanHelper(conn);
                    for (ObjectName name : names) {
                        System.out.println(name);
                        helper.set(name, attrib, value);
                    }
        } catch (Exception e) {
          SJK.fail(e.toString());
        }
      }
View Full Code Here

      @Override
      public void run() {
        try {
          MBeanServerConnection conn = connInfo.getMServer();
          Set<ObjectName> names = resolveSingleBean(conn);
          MBeanHelper helper = new MBeanHelper(conn);
                    for (ObjectName name : names) {
                        System.out.println(helper.describe(name));
                    }
        } catch (Exception e) {
          SJK.fail(e.toString());
        }
      }
View Full Code Here

TOP

Related Classes of org.gridkit.jvmtool.MBeanHelper

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.