Examples of YajswConfigurationImpl


Examples of org.rzo.yajsw.config.YajswConfigurationImpl

  public static void main(String[] args)
  {
    Cache c = new Cache();
    System.setProperty("wrapper.config", "http://localhost:8080/wrapper.helloworld.conf");
    YajswConfigurationImpl config = new YajswConfigurationImpl();
    c.load(config);

  }
View Full Code Here

Examples of org.rzo.yajsw.config.YajswConfigurationImpl

    int count = args.length == 3 ? Integer.parseInt(args[3]) : 1;

    // get the script arguments from the configuration
    String scriptKey = null;
    System.setProperty("wrapper.config", configFile);
    YajswConfigurationImpl config = new YajswConfigurationImpl(true);
    for (Iterator it = config.getKeys(); it.hasNext();)
    {
      String key = (String) it.next();
      if (key.contains(".script.") && !key.endsWith(".args") && config.getString(key).equals(script))
      {
        scriptKey = key;
        break;
      }
    }
    if (scriptKey == null)
    {
      System.out.println("script not found in configuration -> abort");
      return;
    }
    String[] scriptArgs = config.getStringArray(scriptKey + ".args");

    // get a dummy process but do not start it
    WrappedProcess process = WrappedProcessFactory.createProcess(config);
    process.init();
View Full Code Here

Examples of org.rzo.yajsw.config.YajswConfigurationImpl

      System.out.println("file not found "+f.getAbsolutePath());
      //return null;
    }
    Configuration localConf = new BaseConfiguration();
    localConf.addProperty("wrapper.config", config);
    YajswConfigurationImpl _config = new YajswConfigurationImpl(localConf, true);
    int port = _config.getInt("wrapper.jmx.rmi.port", Constants.DEFAULT_RMI_PORT);
    String xname = _config.getString("wrapper.console.title");
    if (xname == null)
      xname = _config.getString("wrapper.ntservice.name");
    if (xname == null)
      xname = "yajsw.noname";
    ObjectName oName = new ObjectName("org.rzo.yajsw", "name", xname);
    JMXServiceURL url = new JMXServiceURL("service:jmx:rmi:///jndi/rmi://localhost:"+port+"/server");
     jmxc = JMXConnectorFactory.connect(url, null);
View Full Code Here

Examples of org.rzo.yajsw.config.YajswConfigurationImpl

   */
  private static void doReconnect()
  {
    prepareProperties();
    Configuration localConf = new MapConfiguration(_properties);
    YajswConfiguration conf = new YajswConfigurationImpl(localConf, true);
    WrappedProcess w = WrappedProcessFactory.createProcess(conf);

    System.out.println("************* RECONNECTING WRAPPER TO PID  " + pid + " ***********************");
    System.out.println();

 
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.