Examples of IPlugin


Examples of org.apache.hadoop.chukwa.inputtools.plugin.IPlugin

    return execResult;
  }

  public static void main(String[] args) {
    IPlugin plugin = new NodeActivityPlugin();
    JSONObject result = plugin.execute();
    System.out.print("Result: " + result);

  }
View Full Code Here

Examples of org.apache.hadoop.chukwa.inputtools.plugin.IPlugin

  public String getCmde() {
    return cmde;
  }

  public static void main(String[] args) throws JSONException {
    IPlugin plugin = new PbsNodePlugin();
    JSONObject result = plugin.execute();
    System.out.print("Result: " + result);

    if (result.getInt("status") < 0) {
      System.out.println("Error");
      log.warn("[ChukwaError]:" + PbsNodePlugin.class + ", "
View Full Code Here

Examples of plugin.IPlugin

          //reverse(data);

          Class c = defineClass(name, data, 0, data.length);
          try
          {
            IPlugin plugin = (IPlugin) c.newInstance();
            System.out.println("Class found : " + plugin.getName());
            filters_.add(plugin);
          } catch (Exception e)
          {
            System.out.println("Fail on defining class");
            e.printStackTrace();
View Full Code Here

Examples of xnap.plugin.IPlugin

    }

    public void valueChanged(ListSelectionEvent e)
    {
  PluginInfo i = (PluginInfo)jlPlugins.getSelectedValue();
  IPlugin p = PluginManager.getInstance().getPluginByName(i.getName());

  jlName.setText(i.getName());
  jlVersion.setText(i.getVersion());
  jlInstalledVersion.setText((p != null) ? p.getVersion() : "");
  jlDescription.setText(i.getDescription());

  if (p != null) {
      int c = VersionParser.compare(i.getVersion(), p.getVersion());
      acInstall.setEnabled(c != 0);
  }
  else {
      acInstall.setEnabled(true);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.