Examples of IPlugin


Examples of net.sourceforge.squirrel_sql.client.plugin.IPlugin

        boolean dropOnly = getDropOnly();
        ApplicationArguments.initialize(new String[0]);
        ResourceBundle bundle = ResourceBundle.getBundle(props);
        String prefsDir = bundle.getString("prefsDir");
        System.out.println("Reading preferences from prefs.xml in "+prefsDir);
        IPlugin plugin = new MockPlugin(prefsDir);
        PreferencesManager.initialize(plugin);
        prefs = PreferencesManager.getPreferences();
        System.out.println("Copying primary keys: "+prefs.isCopyPrimaryKeys());
       
        MockSessionInfoProvider provider = new MockSessionInfoProvider(args[0], dropOnly);
View Full Code Here

Examples of nl.topicus.wqplot.components.plugins.IPlugin

      return;
    }

    for (IPluginResolver pluginResolver : resolvers)
    {
      IPlugin iPlugin = pluginResolver.getPlugin(plugin);
      if (iPlugin != null)
      {
        // wiQueryResourceManager.addJavaScriptResource(iPlugin.getJavaScriptResourceReference());
        headerResponse.render(JavaScriptHeaderItem.forReference(iPlugin
          .getJavaScriptResourceReference()));
        return;
      }
    }
    throw new IllegalArgumentException("Unknown plugin '" + plugin + "'");
View Full Code Here

Examples of org.aavso.tools.vstar.plugin.IPlugin

          URL pluginUrl = new URL(pluginBaseURLStr + "/"
              + pluginJarFileName);
          String className = pluginJarFileName.replace(".jar", "");

          IPlugin plugin = createObjectFromJarURL(pluginUrl,
              className);

          remoteDescriptions.put(plugin.getDescription(),
              pluginJarFileName);
          remotePlugins.put(pluginJarFileName, pluginUrl);

          // Store dependent libs, if any exist, by plugin key.
          if (fields.length == 2) {
            if (interrupted)
              break;

            File pluginLibDirPath = new File(
                System.getProperty("user.home")
                    + File.separator + PLUGIN_LIBS_DIR);

            for (String libFileStr : fields[1].split("\\s*,\\s*")) {
              String libJarFileName = libFileStr;
              URL libUrl = new URL(libBaseURLStr + "/"
                  + libJarFileName);
              List<URL> libUrls = libs.get(pluginJarFileName);
              if (libUrls == null) {
                libUrls = new ArrayList<URL>();
                libs.put(pluginJarFileName, libUrls);
              }
              libUrls.add(libUrl);

              // Populate dependent library name and reference
              // counting maps. Note that we treat the remote
              // plugin information as the source of truth for the
              // basis of checking against local library jar
              // files. Our reference counting will only be as
              // good as this remote/local correspondence.
              File localLibJarFilePath = new File(
                  pluginLibDirPath, libJarFileName);

              if (localLibJarFilePath.exists()) {
                if (!libDescriptions.containsKey(plugin
                    .getDescription())) {
                  libDescriptions.put(
                      plugin.getDescription(),
                      new HashSet<String>());
                }
                libDescriptions.get(plugin.getDescription())
                    .add(libJarFileName);

                if (!libRefs.containsKey(libJarFileName)) {
                  libRefs.put(libJarFileName, 1);
                } else {
View Full Code Here

Examples of org.aavso.tools.vstar.plugin.IPlugin

          // file and description.
          String pluginJarFileName = file.getName();
          localPlugins.put(pluginJarFileName, file);
          String className = pluginJarFileName.replace(".jar", "");

          IPlugin plugin = createObjectFromJarURL(file.toURI()
              .toURL(), className);

          localDescriptions.put(plugin.getDescription(),
              pluginJarFileName);
        } catch (MalformedURLException e) {
          MessageBox.showErrorDialog("Plug-in Manager",
              "Invalid local plug-in location.");
        } catch (ClassNotFoundException e) {
View Full Code Here

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

  public String getCmde() {
    return cmde;
  }

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

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

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

    return cmde;
  }

  public static void main(String[] args) throws JSONException
  {
    IPlugin plugin = new Exec(args);
    JSONObject result = plugin.execute();   
    if (result.getInt("status") < 0)
    {
      System.out.println("Error");
      log.warn("[ChukwaError]:"+ Exec.class + ", " + result.getString("stderr"));
      System.exit(-1);
View Full Code Here

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

    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");
View Full Code Here

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
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.