Package com.mockturtlesolutions.jpHtools.database

Examples of com.mockturtlesolutions.jpHtools.database.pHtoolsConnectivity


{

    
  public static void main(String args[])
  { 
    pHtoolsConnectivity Connection = null;
    pHtoolsConfig Config = null;
   
   
    Config = new pHtoolsConfig();
    Config.initialize();
    Connection = new pHtoolsConnectivity(Config);
   
    if (args.length < 3)
    {
      System.out.println("Usage: jpHtoolsCustodian 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))
        {
          jpHtoolsMaintenance man = (jpHtoolsMaintenance)Connection.getCustodian(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


{

    
  public static void main(String args[])
  { 
    pHtoolsConnectivity Connection = null;
    pHtoolsConfig Config = null;
   
   
    Config = new pHtoolsConfig();
    Config.initialize();
    Connection = new pHtoolsConnectivity(Config);
   
    if (args.length < 3)
    {
      System.out.println("Usage: jpHtoolsCustodian 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))
        {
          jpHtoolsMaintenance man = (jpHtoolsMaintenance)Connection.getCustodian(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

 
    final pHtoolsConfig pHConfig = new pHtoolsConfig();
    pHConfig.initialize();
   
   
    final pHtoolsConnectivity Connection = new pHtoolsConnectivity(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

Related Classes of com.mockturtlesolutions.jpHtools.database.pHtoolsConnectivity

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.