Examples of ITaskAPI


Examples of center.task.api.ITaskAPI

    this.alias = alias;
  }

  public static ITaskAPI getInstance(String dbAlias) throws SysException {
    synchronized (helpers) {
      ITaskAPI obj = helpers.get(dbAlias);
      if (obj != null) {
        return obj;
      } else {
        TaskAPI o = new TaskAPI(dbAlias);
        helpers.put(dbAlias, o);
View Full Code Here

Examples of center.task.api.ITaskAPI

  private static Map<String, ITaskAPI> helpers = new TreeMap<String, ITaskAPI>();

  public static ITaskAPI getInstance(String alias) throws SysException {
    synchronized (helpers) {
      ITaskAPI obj = helpers.get(alias);
      if (obj != null) {
        return obj;
      } else {
        TaskAPI o = new TaskAPI(alias);
        helpers.put(alias, o);
View Full Code Here

Examples of center.task.api.ITaskAPI

  public static ServerTaskAPI register(String alias, String cls_native,
      String alias_native) throws RemoteException {
    synchronized (api) {
      TAPI tapi = api.get(alias);
      if (tapi == null) {
        ITaskAPI ta;
        try {
          ta = ATaskAPI.getInstance(cls_native, center.task.api.mem.TaskAPI.class,
              alias_native);
        } catch (SysException e) {
          throw new RemoteException(e.getMessage(), e);
View Full Code Here

Examples of center.task.api.ITaskAPI

      if (ls == null || ls.size() == 0) {
        System.err.println("Header by name 'ITaskAPI.Alias' isn't set");
        return;
      }
      String alias = ls.get(0);
      ITaskAPI ta = server.getTaskAPI(alias);
      if (ta == null) {
        System.err.println("Undefined ITaskAPI interface by name '" + alias
            + "'");
        return;
      }
View Full Code Here

Examples of center.task.api.ITaskAPI

public final class TaskAPI extends ATaskAPI {

  private static Map<String, ITaskAPI> helpers = new TreeMap<String, ITaskAPI>();
  public static ITaskAPI getInstance(String alias) throws SysException {
    synchronized (helpers) {
      ITaskAPI obj = helpers.get(alias);
      if (obj != null) {
        return obj;
      } else {
        TaskAPI o = new TaskAPI(alias);
        helpers.put(alias, o);
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.