Examples of Environment


Examples of smilehouse.opensyncro.system.Environment

      } else
        // Otherwise get the queue length to return in the response
        queueLength = pet.getPipeExecutionQueue().getQueueLength();
     
    } catch (Exception e) {
      Environment en=Environment.getInstance();
      en.log("Exception while processing requests in pipe execution queue for pipe: " + pipeName);
      en.log(e.getMessage(),e);
            return "ERROR: Exception while processing pipe execution request for pipe: " + pipeName;
    }
   
        if(isSynced)
          return "OK";
View Full Code Here

Examples of tree.utils.Environment

        { {
            one(mockClass).getStandartTypeByName("Int");
            will(returnValue(intType));
        } });
        HaxeTree tree = parseFunction("function main() { var x; x=123 + 1; }");
        linker.visit(tree, new Environment());
        Binary node = TestHelper.getBinaryExpression(tree);
       
        assertTrue(node.getHaxeType() == TypeUtils.getInt());
    }
View Full Code Here

Examples of weblogic.jndi.Environment

    }
    if(url==null){
      exit();
    }
    // get a naming context from the cluster using convenience classes
    Environment env = new Environment();
    env.setProviderUrl(url);
    Context context = env.getInitialContext();
    // lookup the RMI service
    hello = (HelloCluster)context.lookup(HelloClusterImpl.BINDNAME);
 
View Full Code Here

Examples of weka.core.Environment

    boolean ok = true;
    String entry = "Start loading";
    if (m_ioThread == null) {
      if (m_Loader instanceof FileSourcedConverter) {
        String temp = ((FileSourcedConverter) m_Loader).retrieveFile().getPath();
        Environment env = (m_env == null) ? Environment.getSystemWide() : m_env;
        try {
          temp = env.substitute(temp);
        } catch (Exception ex) {}
        File tempF = new File(temp);
        if (!tempF.isFile()) {
          ok = false;
        }
View Full Code Here

Examples of winterwell.utils.Environment

  static {
    Environment.putDefault(KEY_VERSION, new Version());
  }

  public static String getVersion() {
    Environment env = Environment.get();
    Version v = env.get(KEY_VERSION);
    if (v.props.length == 0)
      return "";
    // special case for only one bit of versioning info
    if (v.props.length == 1)
      return "v" + Printer.toString(env.get(v.props[0]));
    StringBuilder sb = new StringBuilder();
    sb.append("v");
    for (Key k : v.props) {
      Object value = env.get(k);
      assert value != null : k;
      String kv = value.toString();
      sb.append(k + "=" + kv.replace('_', '-') + "_");
    }
    StrUtils.pop(sb, 1);
View Full Code Here

Examples of wyvern.tools.types.Environment

  }

  @Override
  public Value evaluateApplication(Application app, Environment argEnv) {
    Value argValue = app.getArgument().evaluate(argEnv);
    Environment bodyEnv = env;
    List<NameBinding> bindings = function.getArgBindings();
    if (bindings.size() == 1)
      bodyEnv = bodyEnv.extend(new ValueBinding(bindings.get(0).getName(), argValue));
    else if (bindings.size() > 1 && argValue instanceof TupleValue)
      for (int i = 0; i < bindings.size(); i++)
        bodyEnv = bodyEnv.extend(new ValueBinding(bindings.get(i).getName(), ((TupleValue)argValue).getValue(i)));
    else if (bindings.size() != 0)
      throw new RuntimeException("Something bad happened!");
   
    return function.getBody().evaluate(bodyEnv);
  }
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.