Package center.task.api

Examples of center.task.api.TaskCI


        prc = prcpool.occupyWait();
        // Процедура для выполнения после выполнения потока
        prc.setCallBackOnEndProcess(this);
      }
      long id_task;
      TaskCI tci = null;
      try {
        tci = ta.getBlocked(id_processor, block_wait);
        wait = sWait;
      } catch (SysException ex) {
        Throwable ex1 = ex.getCause();
View Full Code Here


  private StatementNew stmtSetBlockedForProcessor = new StatementNew();
  private StatementNew stmtSelectResult = new StatementNew();
 
  public TaskCI getBlocked(long subject_id, long wait)
      throws SysException {
    TaskCI tci;
    if (tp.getBaseVendorName().equals("FIREBIRD")) {
      Object o = new Object();
      synchronized(o) {
        try {
          o.wait(1000);
        } catch (InterruptedException e) {
          // TODO Auto-generated catch block
          e.printStackTrace();
        }
        tci = new TaskCI();
        tci.id_task = 0;
      }
    } else {
      tci = getBlockedORACLE(subject_id, wait);
    }
View Full Code Here

    return tci;
  }
 
  private TaskCI getBlockedORACLE(long subject_id, long wait)
      throws SysException {
    TaskCI tci = new TaskCI();
    tci.id_task = 0;
    synchronized(stmtSetBlockedForProcessor) {
      if (stmtSetBlockedForProcessor.isClosed()) {
        stmtSetBlockedForProcessor
            .prepare(
View Full Code Here

    w.close();
  }

  public void getBlocked(Object[] objs, HttpExchange httpExchange, ITaskAPI ta)
      throws SysException, IOException {
    TaskCI r = ta.getBlocked(((Long) (objs[0])).longValue(),
        ((Long) (objs[1])).longValue());

    StringBuffer sb = new StringBuffer();
    sb = Handler.getElementByObject(sb, r);
    byte[] rb = sb.toString().getBytes("utf-8");
View Full Code Here

      throw new SysException ("Unknown Subject");
    else synchronized(sb) {
      sb.ping();
    }
    long tm = System.currentTimeMillis();
    TaskCI tci = new TaskCI();
    tci.id_task = 0;
    Set<String> fcls;
    synchronized(sync) {
      fcls = sb.classes;
    }
View Full Code Here

TOP

Related Classes of center.task.api.TaskCI

Copyright © 2018 www.massapicom. 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.