Examples of generateRandomBasedUUID()


Examples of org.doomdark.uuid.UUIDGenerator.generateRandomBasedUUID()

  public static void main(String[] args) {
    UUIDGenerator gen = UUIDGenerator.getInstance();
    UUID time = gen.generateTimeBasedUUID();
    System.out.println(time);

    time = gen.generateRandomBasedUUID();
    System.out.println(time);

    for (int i = 0; i < 10; i++) {     
      Timestamp tmp = new Timestamp(new Date().getTime());
      System.out.println(tmp.getTime() + " - " + System.currentTimeMillis());
View Full Code Here

Examples of org.safehaus.uuid.UUIDGenerator.generateRandomBasedUUID()

          }
        }
        mapPars.put(SpagoBIConstants.SBI_CONTEXT, GeneralUtilities.getSpagoBiContext());
        mapPars.put(SpagoBIConstants.SBI_HOST, GeneralUtilities.getSpagoBiHost());
        UUIDGenerator uuidGen  = UUIDGenerator.getInstance();
        UUID uuidObj = uuidGen.generateRandomBasedUUID();
        String executionId = uuidObj.toString();
        executionId  = executionId.replaceAll("-", "");
        mapPars.put("SBI_EXECUTION_ID", executionId);
        mapPars.put("EXECUTION_CONTEXT", "DOCUMENT_COMPOSITION");
        // Auditing
View Full Code Here

Examples of org.safehaus.uuid.UUIDGenerator.generateRandomBasedUUID()

        urlReturn = "&PAGE=ExecuteBIObjectPage&" + SpagoBIConstants.IGNORE_SUBOBJECTS_VIEWPOINTS_SNAPSHOTS + "=true&"
        + ObjectsTreeConstants.OBJECT_LABEL + "=" + objLabel + "&"
        + ObjectsTreeConstants.MODALITY + "=" + SpagoBIConstants.DOCUMENT_COMPOSITION;
        // identity string for context
        UUIDGenerator uuidGen  = UUIDGenerator.getInstance();
        UUID uuid = uuidGen.generateRandomBasedUUID();
        urlReturn += "&" + LightNavigationManager.LIGHT_NAVIGATOR_ID + "=" + uuid.toString();
      }
      // I add passing of SBI_LANGUAGE and SBI_COUNTRY
      // on session container they are called AF_COUNTRY and AF_LANGUAGE
      SessionContainer sContainer=sessionContainer.getPermanentContainer();
View Full Code Here

Examples of org.safehaus.uuid.UUIDGenerator.generateRandomBasedUUID()

        }
      }

      // identity string for context
      UUIDGenerator uuidGen  = UUIDGenerator.getInstance();
      UUID uuid = uuidGen.generateRandomBasedUUID();
      buffer.append("&" + LightNavigationManager.LIGHT_NAVIGATOR_ID + "=" + uuid.toString());

      List parameters = object.getBiObjectParameters();
      if (parameters != null && parameters.size() > 0) {
        Iterator it = parameters.iterator();
View Full Code Here

Examples of org.safehaus.uuid.UUIDGenerator.generateRandomBasedUUID()

        for (int i = 0; i < count; ++i) {
            UUID uuid;

            switch (method) {
            case RANDOM: // UUID using ~128 bits of randomness
                uuid = gen.generateRandomBasedUUID();
                break;
            case TIME: // UUID using time+location
                uuid = gen.generateTimeBasedUUID(mMacAddress);
                break;
            case NAME: // UUID computed from the given name
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.