Examples of UUIDGenerator


Examples of org.apache.lenya.cms.repository.UUIDGenerator

        }
    }

    protected String generateUUID() throws DocumentBuildException {
        String uuid;
        UUIDGenerator generator = null;
        try {

            generator = (UUIDGenerator) this.manager.lookup(UUIDGenerator.ROLE);
            uuid = generator.nextUUID();

        } catch (Exception e) {
            throw new DocumentBuildException("call to creator for new document failed", e);
        } finally {
            if (generator != null) {
View Full Code Here

Examples of org.apache.lenya.cms.repository.UUIDGenerator

        }
    }

    protected String generateUUID() throws DocumentBuildException {
        String uuid;
        UUIDGenerator generator = null;
        try {

            generator = (UUIDGenerator) this.manager.lookup(UUIDGenerator.ROLE);
            uuid = generator.nextUUID();

        } catch (Exception e) {
            throw new DocumentBuildException("call to creator for new document failed", e);
        } finally {
            if (generator != null) {
View Full Code Here

Examples of org.archive.uid.UUIDGenerator

      ANVLRecord headerFields = new ANVLRecord();
      headerFields.addLabelValue("x", "y");
      headerFields.addLabelValue("a", "b");
      recordInfo.setExtraHeaders(headerFields);
     
      URI rid = (new UUIDGenerator()).getQualifiedRecordID(TYPE, WARCRecordType.metadata.toString());
      recordInfo.setRecordId(rid);
     
      final String content = "Any old content.";
      for (int i = 0; i < 10; i++) {
        String body = i + ". " + content;
View Full Code Here

Examples of org.caffinitas.mapper.uuidgen.UUIDGenerator

  @Test
  public void timeUUIDPrepare() throws IOException {
    PersistenceSession persistenceSession = persistenceManager.createSession();
    Set<Long> adrs = SystemMacAddresses.inquireMacAddresses();
    StoreUUIDGeneratorConfigurer config = new StoreUUIDGeneratorConfigurer(adrs, persistenceSession);
    generator = new UUIDGenerator(4, config);
  }
View Full Code Here

Examples of org.doomdark.uuid.UUIDGenerator

* TODO To change the template for this generated type comment go to
* Window - Preferences - Java - Code Style - Code Templates
*/
public class UUIDTest {
  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.gradle.internal.id.UUIDGenerator

    public DaemonTcpServerConnector(ExecutorFactory executorFactory, InetAddressFactory inetAddressFactory) {
        this.incomingConnector = new TcpIncomingConnector(
                executorFactory,
                inetAddressFactory,
                new UUIDGenerator()
        );
    }
View Full Code Here

Examples of org.hornetq.utils.UUIDGenerator

   public void testManyUUIDs() throws Exception
   {
      final int MANY_TIMES = getTimes();
      Set<String> uuidsSet = new HashSet<String>();

      UUIDGenerator gen = UUIDGenerator.getInstance();
      for (int i = 0; i < MANY_TIMES; i++)
      {
         uuidsSet.add(gen.generateStringUUID());
      }

      // we put them in a set to check duplicates
      Assert.assertEquals(MANY_TIMES, uuidsSet.size());
   }
View Full Code Here

Examples of org.safehaus.uuid.UUIDGenerator

      logger.error("error during execution; null result from execution Proxy");
      return null;
    }

    // identity string for object execution
    UUIDGenerator uuidGen  = UUIDGenerator.getInstance();
    UUID uuid_local = uuidGen.generateTimeBasedUUID();
    String executionId = uuid_local.toString();
    executionId = executionId.replaceAll("-", "");


    FileOutputStream fos=null;
View Full Code Here

Examples of restx.common.UUIDGenerator

                    @Override
                    protected ComponentCustomizerEngine doNewComponent(SatisfiedBOM satisfiedBOM) {
                        return new SingleComponentClassCustomizerEngine<UUIDGenerator>(0, UUIDGenerator.class) {
                            @Override
                            public NamedComponent<UUIDGenerator> customize(final NamedComponent<UUIDGenerator> namedComponent) {
                                return new NamedComponent<>(namedComponent.getName(), new UUIDGenerator() {
                                    @Override
                                    public String doGenerate() {
                                        String uuid = namedComponent.getComponent().doGenerate();
                                        tape.recordGeneratedId(uuid);
                                        return uuid;
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.