Examples of pid()


Examples of com.ericsson.otp.erlang.OtpSelf.pid()

      connection = self.connect(other);
      Method jmethod = ((JavaOperation) msg.getOperation())
          .getJavaMethod();
      OtpErlangList params = TypeHelpersProxy.toErlangAsList(msg
          .getBody(), jmethod.getParameterAnnotations());
      OtpErlangTuple message = MessageHelper.rpcMessage(self.pid(), self
          .createRef(), binding.getModule(), msg.getOperation()
          .getName(), params);
      connection.send(MessageHelper.RPC_MBOX, message);
      OtpErlangObject rpcResponse = null;
      if (binding.hasTimeout()) {
View Full Code Here

Examples of com.knowgate.jdc.JDCConnection.pid()

                 "j.gu_job=a.gu_job AND a.id_status IN ("+
                 String.valueOf(Atom.STATUS_PENDING)+","+
                 String.valueOf(Atom.STATUS_RUNNING)+","+
                 String.valueOf(Atom.STATUS_SUSPENDED)+"))";

          if (DebugFile.trace) DebugFile.writeln("Statement.executeQuery("+sSQL+") on connection with process id. "+oJcn.pid());

          oRSet = oStmt.executeQuery(sSQL);
          LinkedList<String> oFinished = new LinkedList<String>();
          while (oRSet.next()) {
            oFinished.add(oRSet.getString(1));
View Full Code Here

Examples of com.knowgate.jdc.JDCConnection.pid()

          if (DebugFile.trace) DebugFile.writeln("Already finished jobs "+String.valueOf(oFinished.size()));

          if (oFinished.size()>0) {
            sSQL = "UPDATE k_jobs SET id_status="+String.valueOf(Job.STATUS_FINISHED)+",dt_finished="+DBBind.Functions.GETDATE+" WHERE gu_job=?";
            if (DebugFile.trace) DebugFile.writeln("Connection.prepareStatement("+sSQL+") on connection with process id. "+oJcn.pid());
            PreparedStatement oUpdt = oJcn.prepareStatement(sSQL);
            oIter = oFinished.listIterator();
            while (oIter.hasNext()) {
              oUpdt.setObject(1, oIter.next(), java.sql.Types.CHAR);
              oUpdt.executeUpdate();
View Full Code Here

Examples of com.knowgate.jdc.JDCConnection.pid()

          } // fi

          // ***************************************************
          // Count jobs running or pending of begining execution

          if (DebugFile.trace) DebugFile.writeln("Statement.executeQuery(SELECT COUNT(*) FROM k_jobs WHERE id_status=" + String.valueOf(Job.STATUS_PENDING) + " AND ("+DB.dt_execution+" IS NULL OR "+DB.dt_execution+"<="+DBBind.Functions.GETDATE+")) on connection with process id. "+oJcn.pid());

      iJobCount = DBCommand.queryCount(oJcn, "*", DB.k_jobs, DB.id_status + "=" + String.valueOf(Job.STATUS_RUNNING) + " OR (" + DB.id_status + "=" + String.valueOf(Job.STATUS_PENDING)+" AND ("+DB.dt_execution+" IS NULL OR "+DB.dt_execution+"<="+DBBind.Functions.GETDATE+"))");

      oJcn.close("SchedulerDaemon");

View Full Code Here

Examples of com.knowgate.jdc.JDCConnection.pid()

      if (DebugFile.trace) DebugFile.writeln("ERROR: connection pool not set");
      oConn = null;
    }

    if (DebugFile.trace) {
      if (oConn!=null) DebugFile.writeln("Connection process id. is " + oConn.pid());
      DebugFile.decIdent();
      DebugFile.writeln("End DBBind.getConnection(" + sCaller + ") : " + (null==oConn ? "null" : "[Connection]") );
    }

    return oConn;
View Full Code Here

Examples of com.knowgate.jdc.JDCConnection.pid()

    try {
        oConn = oDbb.getConnection("AtomConsumer");
        oConn.setAutoCommit(true);

        if (DebugFile.trace) {
          DebugFile.writeln("Connection process id is "+oConn.pid());
          DebugFile.writeln("Connection.prepareStatement (UPDATE " + DB.k_job_atoms + " SET " + DB.id_status + "=" + String.valueOf(Atom.STATUS_RUNNING) + ", " + DB.dt_execution + "=? WHERE " + DB.gu_job + "=? AND " + DB.pg_atom + "=?)");
        }

        oStmt = oConn.prepareStatement("UPDATE " + DB.k_job_atoms + " SET " + DB.id_status + "=" + String.valueOf(Atom.STATUS_RUNNING) + ", " + DB.dt_execution + "=? WHERE " + DB.gu_job + "=? AND " + DB.pg_atom + "=?");
View Full Code Here

Examples of sos.spooler.Subprocess.pid()

          subProc.start(commands[i]);
          spooler_log.info("executing \"" + commands[i] + "\"");
        }
        if (orderPayload != null && orderPayload.var("timeout") != null && orderPayload.var("timeout").toString().length() > 0
            && !orderPayload.var("timeout").toString().equals("0")) {
          spooler_log.info("executable file is launched with process id " + subProc.pid() + " for timeout in "
              + orderPayload.var("timeout").toString() + "s");
          boolean terminated = subProc.wait_for_termination(Double.parseDouble(orderPayload.var("timeout").toString()));
          if (!terminated) {
            spooler_log.info("timeout reached, process will be terminated.");
            subProc.kill();
View Full Code Here

Examples of sos.spooler.Subprocess.pid()

            timedOut = true;
          }

        }
        else {
          spooler_log.info("executable file is launched with process id " + subProc.pid());
          subProc.wait_for_termination();

        }
        if (!timedOut)
          spooler_log.info("file executed");
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.