Package com.acelet.s.task

Examples of com.acelet.s.task.TaskProcess


      updateTask(task, System.currentTimeMillis());
    }
  }

  public static int updateRole(Connection conn, String name, String role) throws Exception {
    return new TaskProcess(conn).updateRole(name, role);
  }
View Full Code Here


  public static int updateSchedulerPreference(Properties properties) throws Exception {
    Connection connection = null;
    try {
      connection = DirectTaskDatabaseConnection.getNewConnection();
      return new TaskProcess(connection).updateSchedulerPreference(properties);
    } finally {
      if (connection != null)
        connection.close();
    }
  }
View Full Code Here

  public static int updateSettings(Properties settings) throws Exception {
    Connection connection = null;
    try {
      connection = DirectTaskDatabaseConnection.getNewConnection();
      return new TaskProcess(connection).updateSettings(settings);
    } finally {
      if (connection != null)
        connection.close();
    }
  }
View Full Code Here

  public static int updateWorkingTaskMarkedAsLost(WorkingTask workingTask) throws Exception {
    Connection connection = null;
    try {
      connection = DirectTaskDatabaseConnection.getNewConnection();
      return new
        TaskProcess(connection).updateWorkingTaskMarkedAsLost(workingTask);
    } finally {
      if (connection != null)
        connection.close();
    }
View Full Code Here

  }

  public static int changeTaskStatus(String taskName, int newStatus) throws Exception {
    Connection connection = DirectTaskDatabaseConnection.getConnection();
    synchronized (connection) {
      return new TaskProcess(connection).changeTaskStatus(taskName, newStatus);
    }
  }
View Full Code Here

  }

  public static int deleteCandidateTask(long id) throws Exception {
    Connection connection = DirectTaskDatabaseConnection.getConnection();
    synchronized (connection) {
      return new TaskProcess(connection).deleteCandidateTask(id);
    }
  }
View Full Code Here

  }

  public static int getNumberOfTasks() throws Exception {
    Connection connection = DirectTaskDatabaseConnection.getConnection();
    synchronized (connection) {
      return new TaskProcess(connection).getNumberOfTasks();
    }
  }
View Full Code Here

  }

  public static int deleteOldWorkingTasks(long workingTaskRetireTime) throws Exception {
    Connection connection = DirectTaskDatabaseConnection.getConnection();
    synchronized (connection) {
      return new TaskProcess(connection).deleteOldWorkingTasks(workingTaskRetireTime);
    }
  }
View Full Code Here

  }

  public static String getRefreshTime(String doerTalkerName) throws Exception {
    Connection connection = DirectTaskDatabaseConnection.getConnection();
    synchronized (connection) {
      return new TaskProcess(connection).getRefreshTime(doerTalkerName);
    }
  }
View Full Code Here

  }

  public static void init() throws Exception {
    Connection connection = DirectTaskDatabaseConnection.getConnection();
    synchronized (connection) {
      logAgent = new TaskProcess(connection).setLogAgent();
    }
    init2();
  }
View Full Code Here

TOP

Related Classes of com.acelet.s.task.TaskProcess

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.