Package com.eaio.uuid

Examples of com.eaio.uuid.UUID


    private boolean filterOut = false;
    private InetAddress inetAddress;

    public Message(final String message, final String source, final DateTime timestamp) {
        // Adding the fields directly because they would not be accepted as a reserved fields.
        fields.put(FIELD_ID, new UUID().toString());
        fields.put(FIELD_MESSAGE, message);
        fields.put(FIELD_SOURCE, source);
        fields.put(FIELD_TIMESTAMP, timestamp);
    }
View Full Code Here


    private final BulkItemResponse failure;
    private final Message message;

    public DeadLetter(BulkItemResponse failure, Message message) {
        this.timestamp = Tools.iso8601();
        this.id = new UUID().toString();
        this.failure = failure;
        this.message = message;
    }
View Full Code Here

                    "to <" + job.maxConcurrency() + "> but <" + concurrent + "> are running.");
        }

        final String jobClass = job.getClass().getCanonicalName();

        job.setId(new UUID().toString());
        jobs.put(job.getId(), job);

        executor.submit(new Runnable() {
            @Override
            public void run() {
View Full Code Here

    public RawMessage(String payloadType,
                      String sourceInputId,
                      InetSocketAddress remoteAddress,
                      @Nullable String metaData,
                      byte[] payload) {
        this(Long.MIN_VALUE, new UUID(), Tools.iso8601(), payloadType, sourceInputId, remoteAddress, metaData, payload);
    }
View Full Code Here

            final byte[] payload = new byte[payloadLength];
            buffer.get(payload);

            return new RawMessage(
                    sequenceNumber,
                    new UUID(time, clockSeqAndNode),
                    new DateTime(millis, DateTimeZone.UTC),
                    new String(payloadType, UTF_8),
                    new String(sourceInput, UTF_8),
                    new InetSocketAddress(InetAddress.getByAddress(address), port),
                    new String(metaData, UTF_8),
View Full Code Here

        raFile.writeLong(uuid.getTime());
        raFile.writeLong(uuid.getClockSeqAndNode());
    }

    public static UUID readUuidFromFile(RandomAccessFile raFile) throws IOException {
        return new UUID(raFile.readLong(), raFile.readLong());
    }
View Full Code Here

   * @param request HTTP request
   * @return a new token
   * @see org.springframework.security.web.csrf.CsrfTokenRepository#generateToken(javax.servlet.http.HttpServletRequest)
   */
  public CsrfToken generateToken(HttpServletRequest request) {
    return new DefaultCsrfToken(headerName, parameterName, new UUID().toString());
  }
View Full Code Here

                if (user == null) {
                  //user is new
                  user = new User();
                  user.setEmail(StringUtils.isBlank(email) ? "email@domain.com" : email);
                  user.setName(StringUtils.isBlank(name) ? "No Name" : name);
                  user.setPassword(new UUID().toString());
                  user.setIdentifier(Config.GPLUS_PREFIX.concat(googleSubId));
                  if (user.getPicture() == null) {
                    if (pic != null) {
                      if (pic.indexOf("?") > 0) {
                        // user picture migth contain size parameters - remove them
View Full Code Here

                if (user == null) {
                  //user is new
                  user = new User();
                  user.setEmail(StringUtils.isBlank(email) ? "email@domain.com" : email);
                  user.setName(StringUtils.isBlank(name) ? "No Name" : name);
                  user.setPassword(new UUID().toString());
                  user.setIdentifier(Config.LINKEDIN_PREFIX.concat(linkedInID));
                  if (user.getPicture() == null) {
                    if (pic != null) {
                      user.setPicture(pic);
                    } else {
View Full Code Here

      }

      user = new User();
      user.setEmail(email);
      user.setName(fullName);
      user.setPassword(new UUID().toString());
      user.setIdentifier(token.getIdentityUrl());
      if (user.getPicture() == null) {
        if (email != null) {
          String emailHash = DigestUtils.md5DigestAsHex(email.getBytes());
          user.setPicture("http://www.gravatar.com/avatar/" + emailHash + "?size=200&d=mm&r=pg");
View Full Code Here

TOP

Related Classes of com.eaio.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.