Examples of PoolThread


Examples of ru.vassaev.core.thread.PoolThread

    Pool<?> poolprc = ai.getContainer().getRM().getPool(poolProcessName);
    if (Null.equ(poolprc))
      throw new SysException("There is no pool by name \"" + poolProcessName
          + "\"");
    try {
      PoolThread prcs = (PoolThread) poolprc;
      return prcs;
    } catch (ClassCastException e) {
      throw new SysException("The pool by name \"" + poolProcessName
          + "\" dosn't contain process' object");
    }
View Full Code Here

Examples of ru.vassaev.core.thread.PoolThread

  public final Set<?> calculate(TimeState ts, Context cntx) throws SysException {
    Set<Prm> prms = calc.get(ts);
    if (prms == null)
      return null;
    Context pcntx = cntx.parent;
    PoolThread prcs = calc_parallel.get(ts);
    Set<Object> ps = new HashSet<Object>();
    if (prcs != null) {
      for(Prm e : prms) {
        Context.WaitValue v = (e.isParent) ? pcntx.getPrmAsync(prcs, e.fullname)
                : cntx.getPrmAsync(prcs, e.fullname);
View Full Code Here

Examples of ru.vassaev.core.thread.PoolThread

          calc_prms = new HashSet<Prm>();
          calc.put(ts, calc_prms);
        }
      }
      String sprcpool = Strings.getXMLValue(e, "parallel#prcpool");
      PoolThread prcpool;
      if (sprcpool != null) {
        prcpool = (PoolThread) ApplicationManager.getPoolByName(sprcpool, ru.vassaev.core.thread.Process.class);
        calc_parallel.put(ts, prcpool);
      }
      NodeList nlp = Xml.getElementsByTagName(e, "prm");
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.