示例#1
0
  private String getCapIOR() throws TspRuntimeException {

    String capIOR;

    OrionManager orionMan = OrionManager.instance();

    capIOR = orionMan.getCapIOR();

    if (capIOR != null) return capIOR;

    try {
      OICToolManager oicToolManager = OICToolManager.instance();

      capIOR = oicToolManager.retrieveCapIor();

      if (capIOR != null) return capIOR;
    } catch (TspRuntimeException e) {
      e.printStackTrace();
    }

    // Failed to get CAP IOR from OIC tool. Maybe OIC tool doesn't
    // exist so try to get it from Orion
    CoreTsp.out(
        "Failed to retrieve test program connection from OICTool.  Attemting direct orion connection.");
    // OrionManager orionMan = OrionManager.instance();

    capIOR = orionMan.getCapIOR();

    if (capIOR != null) return capIOR;

    System.out.println("Failed to find retrieve a CAP IOR from OICTool or Orion.");

    return null;
  }
示例#2
0
 public void variableUpdate(String key) {
   try {
     // String key = (String)props.get(enableFlag);
     if (key.equals(enableFlag)) {
       TSPProperties props = TSPProperties.instance();
       if (((String) props.get(enableFlag)).equalsIgnoreCase("true")) {
         enabled = true;
       } else {
         CoreTsp.out("SPCControlLimit: " + monitor + " disabled by input XML.");
         enabled = false;
       }
     }
   } catch (TspRuntimeException e) {
     CoreTsp.out("ControlLimit Variable Update Failure");
     e.printStackTrace();
   }
 }