Package com.almende.util.uuid

Examples of com.almende.util.uuid.UUID


    String senderUrl = req.getHeader("X-Eve-SenderUrl");
    if (senderUrl == null || senderUrl.equals("")) {
      senderUrl = "web://" + req.getRemoteUser() + "@"
          + req.getRemoteAddr();
    }
    final String tag = new UUID().toString();
   
    final SyncCallback<String> callback = new SyncCallback<String>();
   
    final AsyncCallbackQueue<String> callbacks = host.getCallbackQueue(
        "HttpTransport", String.class);
View Full Code Here


   *            the interval
   * @param onEvent
   *            the on event
   */
  public Push(final int interval, final boolean onEvent) {
    pushId = new UUID().toString();
    this.interval = interval;
    this.onEvent = onEvent;
  }
View Full Code Here

 
  /**
   * Instantiates a new push.
   */
  public Push() {
    pushId = new UUID().toString();
  }
View Full Code Here

            + " in method '" + method.getName() + "' is null.");
      }
    }
    JsonNode id = null;
    try {
      id = JOM.getInstance().readTree(new UUID().toString());
    } catch (final Exception e) {
    }
    return new JSONRequest(id, method.getName(), params);
  }
View Full Code Here

   * @param sequential
   *            the sequential
   */
  public TaskEntry(final DateTime due, final JSONRequest request,
      final long interval, final boolean sequential) {
    taskId = new UUID().toString();
    this.request = request;
    this.due = due;
    this.interval = interval;
    this.sequential = sequential;
  }
View Full Code Here

   *
   * @param id the new id
   */
  public void setId(final JsonNode id) {
    if (id == null || id.isNull()) {
      req.put(ID, new UUID().toString());
    } else {
      req.put(ID, id);
    }
  }
View Full Code Here

            + " in method '" + method.getName() + "' is null.");
      }
    }
    JsonNode id = null;
    try {
      id = JOM.getInstance().valueToTree(new UUID().toString());
    } catch (final Exception e) {
      LOG.log(Level.SEVERE,"Failed to generate UUID for request",e);
    }
    return new JSONRequest(id, method.getName(), params);
  }
View Full Code Here

   *
   * @param id the new id
   */
  public void setId(final JsonNode id) {
    if (id == null || id.isNull()) {
      req.put(ID, new UUID().toString());
    } else {
      req.put(ID, id);
    }
  }
View Full Code Here

    String senderUrl = req.getHeader("X-Eve-SenderUrl");
    if (senderUrl == null || senderUrl.equals("")) {
      senderUrl = "web://" + req.getRemoteUser() + "@"
          + req.getRemoteAddr();
    }
    final String tag = new UUID().toString();
   
    final SyncCallback<String> callback = new SyncCallback<String>();
   
    final AsyncCallbackQueue<String> callbacks = host.getCallbackQueue(
        "HttpTransport", String.class);
View Full Code Here

TOP

Related Classes of com.almende.util.uuid.UUID

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.