Examples of GUID


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

Examples of org.jboss.util.id.GUID

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

Examples of org.jboss.util.id.GUID

      int formatID;
      byte[] globalTxId;

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

Examples of org.jboss.util.id.GUID

            // Setting the port prevents the Remoting Client from using PortUtil.findPort(), which
            // creates ServerSockets. The actual value of the port shouldn't matter. To "guarantee"
            // that each InvokerLocator is unique, a GUID is appended to the InvokerLocator.
            if (propertyPort == null)
            {
               String guid = new GUID().toString();
               int hash = guid.hashCode();
              
               // Make sure the hash code is > 0.
               // See http://jira.jboss.org/jira/browse/JBMESSAGING-863.
               while(hash <= 0)
View Full Code Here

Examples of org.jboss.util.id.GUID

         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

Examples of org.jboss.util.id.GUID

      public void addListener(InvokerCallbackHandler callbackHandler)
      {
         log.info("sending callback with request for acknowledgement");
         HashMap returnPayload = new HashMap();
         returnPayload.put(ServerInvokerCallbackHandler.CALLBACK_LISTENER, this);
         returnPayload.put(ServerInvokerCallbackHandler.CALLBACK_ID, new GUID());
         returnPayload.put(ServerInvokerCallbackHandler.REMOTING_ACKNOWLEDGES_PUSH_CALLBACKS, "true");
         Callback callback = new Callback("callback");
         callback.setReturnPayload(returnPayload);
        
         try
View Full Code Here

Examples of org.jboss.util.id.GUID

   @Override
   public void deploy(VFSDeploymentUnit unit) throws DeploymentException
   {
      try
      {
         URL dynamicClassRoot = new URL("vfsmemory", new GUID().toString(), "");
         MemoryFileFactory.createRoot(dynamicClassRoot);
         URL classesURL = new URL(dynamicClassRoot, "classes");
         VirtualFile classes = MemoryFileFactory.createDirectory(classesURL);
         unit.addAttachment(DYNAMIC_CLASS_URL_KEY, dynamicClassRoot);
         unit.addAttachment(DYNAMIC_CLASS_KEY, classes);
View Full Code Here

Examples of org.jboss.util.id.GUID

               if(trace) { log.trace(this + " sending initial lease ping to server to determine if server has leasing enabled."); }

               // configuration should NOT be passed as want ping to be specific to client invoker
               // and NOT to the client.

               String leasePingerId = new GUID().toString();
               Map requestMap = new HashMap();
               requestMap.put(LeasePinger.LEASE_PINGER_ID, leasePingerId);
               requestMap.put(LeasePinger.TIME_STAMP, Long.toString(System.currentTimeMillis()));
               if (trace) log.trace(this + " initiating lease for leasePingerId " + leasePingerId);
               InvocationRequest ir = new InvocationRequest(invokerSessionID, null, "$PING$", requestMap, new HashMap(), null);
View Full Code Here

Examples of org.jboss.util.id.GUID

     
      // Test lease behavior.
      MicroRemoteClientInvoker clientInvoker = (MicroRemoteClientInvoker) client.getInvoker();
      clientInvoker.terminateLease(client.getSessionId(), 0);
      TestLeasePinger leasePinger = new TestLeasePinger(clientInvoker, clientInvoker.getSessionId(), LEASE_PERIOD);
      leasePinger.setLeasePingerId(new GUID().toString());
      leasePinger.addClient(client.getSessionId(), client.getConfiguration(), LEASE_PERIOD);
      leasePinger.startPing();
      Thread.sleep(LEASE_PERIOD * 4);
      assertFalse(listener.called);
     
View Full Code Here

Examples of org.jboss.util.id.GUID

     
      // Test lease behavior.
      MicroRemoteClientInvoker clientInvoker = (MicroRemoteClientInvoker) client.getInvoker();
      clientInvoker.terminateLease(client.getSessionId(), 0);
      TestLeasePinger leasePinger = new TestLeasePinger(clientInvoker, clientInvoker.getSessionId(), LEASE_PERIOD);
      leasePinger.setLeasePingerId(new GUID().toString());
      leasePinger.addClient(client.getSessionId(), client.getConfiguration(), LEASE_PERIOD);
      leasePinger.startPing();
      Thread.sleep(LEASE_PERIOD * 4);
      assertFalse(listener.called);
     
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.