Package org.jboss.util.id

Examples of org.jboss.util.id.GUID


         }

         switch (k)
         {
            case 0:
               headers.put(new GUID().toString(), randString(1000));
            case 1:
               headers.put(new GUID().toString(), randByte());
            case 2:
               headers.put(new GUID().toString(), randShort());
            case 3:
               headers.put(new GUID().toString(), randInt());
            case 4:
               headers.put(new GUID().toString(), randLong());
            case 5:
               headers.put(new GUID().toString(), randBool());
            case 6:
               headers.put(new GUID().toString(), randFloat());
            case 7:
               headers.put(new GUID().toString(), randDouble());
            case 8:
               headers.put(new GUID().toString(), randLong());
            case 9:
               headers.put(new GUID().toString(), randByteArray(500));
            case 10:
               headers.put(new GUID().toString(), new WibblishObject());
         }
      }
      return headers;
   }
View Full Code Here


   {
      private static final long serialVersionUID = -822739710811857027L;
      public String wibble;
      public WibblishObject()
      {
         this.wibble = new GUID().toString();
      }
View Full Code Here

      int formatID;
      byte[] globalTxId;

      protected MockXid()
      {
         branchQual = new GUID().toString().getBytes();
         formatID = randInt().intValue();
         globalTxId = new GUID().toString().getBytes();
      }
View Full Code Here

   }

   protected Transaction createXATx() throws Exception
   {
      MessagingXid xid =
         new MessagingXid(new GUID().toString().getBytes(), 345, new GUID().toString().getBytes());

      return tr.createTransaction(xid);
   }
View Full Code Here

         String objectStoreDir = System.getProperty("objectstore.dir");
         log.trace("ObjectStoreDir===" + objectStoreDir);

         //We must ensure each node has its own object store

         String newObjectStore = name + new GUID().toString();

         if (objectStoreDir != null)
         {
           //Delete the old one
           //deleteDirectory(new File(objectStoreDir));

            newObjectStore = objectStoreDir + "/" + newObjectStore;
         }

         log.info("Setting com.arjuna.ats.arjuna.common.Environment.OBJECTSTORE_DIR to " + newObjectStore);

         System.setProperty(com.arjuna.ats.arjuna.common.Environment.OBJECTSTORE_DIR, newObjectStore);

         //We must also make sure the node identifier is unique for each node
         //Otherwise xids might overlap
         String arjunanodeId = "TestNodeID-" + new GUID().toString();

         log.info("Setting com.arjuna.ats.arjuna.common.Environment.XA_NODE_IDENTIFIER to " + arjunanodeId);

         System.setProperty(com.arjuna.ats.arjuna.common.Environment.XA_NODE_IDENTIFIER, arjunanodeId);
View Full Code Here

    */
   public static org.jboss.aop.proxy.Proxy createRemoteProxy(Object objectId, ClassLoader loader,
         Class[] ifaces, InvokerLocator locator)
      throws Exception
   {
      GUID guid = new GUID();
      org.jboss.aop.proxy.Proxy proxy = ProxyFactory.createInterfaceProxy(guid, loader, ifaces);
      Remoting.makeRemotable(proxy, locator, objectId);
      return proxy;
   }
View Full Code Here

   public static org.jboss.aop.proxy.Proxy createRemoteProxy(Object objectId, ClassLoader loader,
         Class[] ifaces, InvokerLocator locator,
         List<Interceptor> interceptors, String subsystem)
      throws Exception
   {
      GUID guid = new GUID();
      org.jboss.aop.proxy.Proxy proxy = ProxyFactory.createInterfaceProxy(guid, loader, ifaces);
      Remoting.makeRemotable(proxy, locator, objectId, interceptors, subsystem);
      return proxy;
   }
View Full Code Here

         String objectStoreDir = System.getProperty("objectstore.dir");
         log.trace("ObjectStoreDir===" + objectStoreDir);
        
         // We must ensure each node has its own object store
        
         String newObjectStore = name + new GUID().toString();
        
         if (objectStoreDir != null)
         {
            // Delete the old one
            // deleteDirectory(new File(objectStoreDir));
           
            newObjectStore = objectStoreDir + "/" + newObjectStore;
         }
        
         log
               .info("Setting com.arjuna.ats.arjuna.common.Environment.OBJECTSTORE_DIR to "
                     + newObjectStore);
        
         System.setProperty(
               com.arjuna.ats.arjuna.common.Environment.OBJECTSTORE_DIR,
               newObjectStore);
        
         // We must also make sure the node identifier is unique for each node
         // Otherwise xids might overlap
         String arjunanodeId = "TestNodeID-" + new GUID().toString();
        
         log
               .info("Setting com.arjuna.ats.arjuna.common.Environment.XA_NODE_IDENTIFIER to "
                     + arjunanodeId);
        
View Full Code Here

      super(container, bean);
     
      this.containerClusterUid = Ejb3Registry.clusterUid(container);
      this.containerGuid = Ejb3Registry.guid(container);
      this.isClustered = container.isClustered();
      this.id = new GUID();
   }
View Full Code Here

      return suite(MemoryTestCase.class);
   }

   public void testRootCreationBad() throws Exception
   {
      URL dynamicClassRoot = new URL("vfsmemory", new GUID().toString(), "");
      MemoryFileFactory.createRoot(dynamicClassRoot);
      URL classesURL = new URL(dynamicClassRoot, "classes");
      VirtualFile classes = MemoryFileFactory.createDirectory(classesURL);
      URL url = classes.toURL();
      try
View Full Code Here

TOP

Related Classes of org.jboss.util.id.GUID

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.