Examples of pHtoolsConnection


Examples of com.mockturtlesolutions.jpHtools.database.pHtoolsConnection

{

    
  public static void main(String args[])
  { 
    pHtoolsConnection Connection = null;
    pHtoolsConfig Config = null;
   
   
    Config = new pHtoolsConfig();
    Config.initialize();
    Connection = new pHtoolsConnection(Config);
   
    if (args.length < 3)
    {
      System.out.println("Usage: jpHtoolsManager command what repos");
      throw new RuntimeException("At least three inputs required.");
    }
   
    String[] repos = Config.getRepositories();
   
    String command = args[0];
    //System.out.println("command:"+command);
   
    String what = args[1];
    //System.out.println("what:"+what);
   
    String repo = args[2];
    //System.out.println("repo:"+repo);
   
   
    if (command.equalsIgnoreCase("clean"))
    {
   
      int exp_cleaned;
      int buff_cleaned;
     
      try
      {

        if (Config.isEnabled(repo))
        {
          jpHtoolsManagement man = (jpHtoolsManagement)Connection.getManager(repo);
          if (what.equalsIgnoreCase("experiments"))
          {
            System.out.println("Cleaning experiments...");
            exp_cleaned = man.cleanExperiments();
            System.out.println("Experiments cleaned:"+exp_cleaned);
View Full Code Here

Examples of com.mockturtlesolutions.jpHtools.database.pHtoolsConnection

      logfile = ans;
    }
 
    final pHtoolsConfig pHConfig = new pHtoolsConfig();
    pHConfig.initialize();
    final pHtoolsConnection Connection = new pHtoolsConnection(pHConfig);
   
   
    NameQueryTree nameTree = new NameQueryTree();
   
    String[]  R = this.Config.getSplitConfigValue(optimizerconfig,"repository");
   
    String repos = R[0];
   
    //Get a list of all buffers -- no that could be quite long and rediculous.  How to get ones we haven't gotten before ?? FIFO??
    //Want to crawl....
    BufferNameQuery query = Connection.getBufferNameQuery(repos);
   
    query.initialQuery(null,true);//Selects all enabled buffers!!
   
    String bufferNameKey = this.Config.getConfigValue(optimizerconfig,"query");
    //System.out.println("The query is "+bufferNameKey);
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.