Examples of regResourceName()


Examples of ru.vassaev.core.thread.Process.regResourceName()

          }
          throw new TaskException(State.DONE_ERR, e);
        }
      }
      StringBuffer sb = new StringBuffer();
      prc.regResourceName(sb, "msg.full");
      int ch;
      Object r;
      Object prev = null;
      Object o = null;
      try {
View Full Code Here

Examples of ru.vassaev.core.thread.Process.regResourceName()

                    o = cntx.getPrmByFullName(((Prm) prev).name);
                  } catch(Throwable e) {
                    o = e.getMessage();
                  }
                  String v = o.toString();
                  prc.regResourceName(v, "msg.part");
                  if (!Null.equ(v))
                    sb.append(v);
                  prev = null;
                } else {
                  String v = ((Skipped) r).getValue();
View Full Code Here

Examples of ru.vassaev.core.thread.Process.regResourceName()

                  if (!Null.equ(v))
                    sb.append(v);
                  prev = null;
                } else {
                  String v = ((Skipped) r).getValue();
                  prc.regResourceName(v, "msg.part");
                  if (!Null.equ(v))
                    sb.append(v);
                }
                cntx.getPrmByFullName("update");
              } else if (r instanceof Prm) {
View Full Code Here

Examples of ru.vassaev.core.thread.Process.regResourceName()

                  o = cntx.getPrmByFullName(((Prm) prev).name);
                } catch(Throwable e) {
                  o = e.getMessage();
                }
                String v = o.toString();
                prc.regResourceName(v, "msg.part");
                if (!Null.equ(v))
                  sb.append(v);
                prev = null;
              } else {
                String v = ((Skipped) r).getValue();
View Full Code Here

Examples of ru.vassaev.core.thread.Process.regResourceName()

                if (!Null.equ(v))
                  sb.append(v);
                prev = null;
              } else {
                String v = ((Skipped) r).getValue();
                prc.regResourceName(v, "msg.part");
                if (!Null.equ(v))
                  sb.append(v);
              }
              cntx.getPrmByFullName("update");
            } else if (r instanceof Prm) {
View Full Code Here

Examples of ru.vassaev.core.thread.Process.regResourceName()

        }
        is = new ByteArrayInputStream(b);
      }
      System.out.println("=============Request=============");
      if (length >= 0) {
        prc.regResourceName(obb, "query.body.length");
        String n = "Content-Length";
        String v = Long.toString(length);
        con.addRequestProperty(n, v);
        System.out.println(((n == null) ? "" : n + ":") + v);
      }
View Full Code Here

Examples of ru.vassaev.core.thread.Process.regResourceName()

      int l = con.getContentLength();
      int l_b = l >= 0 ? (l < 1024*1024 ? l : 1024*1024) : 8000;
      OutputByteBuffer obb = new OutputByteBuffer(l_b);
      obb.write(is);
      obb.close();
      prc.regResourceName(obb, "msg.body");
      if (Strings.parseBooleanNvl(cntx.getPrmString("save-out-body"), true)) {
        String fn = cntx.getPrmString("filename");
        if (fn == null)
          cntx.ta.setParamObject(cntx.id_task, grp_out + "/body", obb);
        else {
View Full Code Here

Examples of ru.vassaev.core.thread.Process.regResourceName()

      long id_processor = getProcessorID();
      Context child;
      Context cntx = getContext();
      Process cp = Process.currentProcess();
      try {
        cp.regResourceName(prms, "msg");
        PrmInterface prm = prms.getPrmInterface();
        ArrayList<String> flds = prm.getFieldNames();
        for (String k : flds) {
          String v = prm.getField(k);
          cp.regResourceName(v, "msg." + k);
View Full Code Here

Examples of ru.vassaev.core.thread.Process.regResourceName()

        cp.regResourceName(prms, "msg");
        PrmInterface prm = prms.getPrmInterface();
        ArrayList<String> flds = prm.getFieldNames();
        for (String k : flds) {
          String v = prm.getField(k);
          cp.regResourceName(v, "msg." + k);
        }
        child = getChild().createAndReadyTask(ta, cntx, id_processor, msg_grp_in, prms);
        if (child == null)
          return;
        long wait = Strings.parseIntegerNvl(cntx.getPrmString("wait"), 0);
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.