Examples of VMID


Examples of java.rmi.dgc.VMID

   {
      // We want a colocated monitor and SFSB to test passivation/destruction
      // NestedXPCMonitorBean is not clustered, so once we have it's VMID
      // we can keep creating SFSBs until we get one we want
      NestedXPCMonitor monitor = (NestedXPCMonitor) getInitialContext().lookup("NestedXPCMonitorBean/remote");
      VMID statelessVM = monitor.getVMID();
      addRemovable(monitor);

      ShoppingCart cart = null;     
      boolean vmMatch = false;
      for (int i = 0; i < 10 && !vmMatch; i++)
      {
         cart = (ShoppingCart) getInitialContext().lookup("testShoppingCart/remote");
        
         vmMatch = statelessVM.equals(cart.getVMID());
         addRemovable(cart);
         if (!vmMatch)
            removeBean(cart);
      }
     
View Full Code Here

Examples of java.rmi.dgc.VMID

      env.setProperty(Context.PROVIDER_URL, jndiURLs[0]);
      env.setProperty("jnp.disableDiscovery", "true");
      InitialContext ctx = new InitialContext(env);
      VMTester tester = (VMTester) ctx.lookup(TESTER_JNDI_NAME);
     
      VMID local = tester.getVMID();
      assertNotNull("Got the local VMID", local);
     
      Properties env1 = new Properties();
      env1.setProperty(Context.PROVIDER_URL, jndiURLs[1]);
      env1.setProperty("jnp.disableDiscovery", "true");
      ctx = new InitialContext(env1);
      VMTester remote = (VMTester) ctx.lookup(jndiName);
     
      // This call instantiates the SFSB if needed
      VMID remoteID = remote.getVMID();
      assertNotNull("Got the remote VMID", remoteID);
     
      // Pass the proxy back to the server and invoke getVMID() on it
      VMID passThroughID = tester.getVMIDFromRemote(remote);
      assertNotNull("Got the remote VMID", passThroughID);
     
      if (expectLocal)
         assertEquals("Call stayed local", local, passThroughID);
      else
View Full Code Here

Examples of java.rmi.dgc.VMID

      objOut.writeObject (lease);
    }
    //If not, create a valid lease and write it
    else {
      log.log (Level.FINEST, "Writing new lease object");
      objOut.writeObject (new Lease (new VMID (), lease.getValue ()));
    }

    objOut.flush ();
   
    log.exiting ("com.sun.grid.jgrid.proxy.ComputeProxy", "processDirtyCall");
View Full Code Here

Examples of java.rmi.dgc.VMID

            ThreadContext.exit(oldCallContext);
        }
    }

    protected Object newPrimaryKey() {
        return new VMID();
    }
View Full Code Here

Examples of java.rmi.dgc.VMID

            ThreadContext.exit(oldCallContext);
        }
    }

    protected Object newPrimaryKey() {
        return new VMID();
    }
View Full Code Here

Examples of java.rmi.dgc.VMID

            ThreadContext.exit(oldCallContext);
        }
    }

    protected Object newPrimaryKey() {
        return new VMID();
    }
View Full Code Here

Examples of java.rmi.dgc.VMID

      InetAddress address = fixRemoteAddress(nodeAddress);
      if (address == null)
      {
         log.debug ("unable to create a GUID for this cluster, check network configuration is correctly setup (getLocalHost has returned an exception)");
         log.debug ("using a full GUID strategy");
         return new VMID().toString();
      }
     
      String hostIP = getFastHostName(address);

      // 1st: is JNDI up and running?
View Full Code Here

Examples of java.rmi.dgc.VMID

      return id;
   }

   public static final String createUniqueID()
   {
      String id = new VMID().toString();
      // colons don't work in JMX
      return id.replace(':', 'x') + random.nextInt(1000);
   }
View Full Code Here

Examples of java.rmi.dgc.VMID

      return id;
   }

   public static final String createUniqueID()
   {
      String id = new VMID().toString();
      // colons don't work in JMX
      return id.replace(':', 'x') + random.nextInt(1000);
   }
View Full Code Here

Examples of java.rmi.dgc.VMID

    PlatformUI.getWorkbench().getProgressService().busyCursorWhile(
        new IRunnableWithProgress() {
          public void run(IProgressMonitor monitor)
              throws InvocationTargetException, InterruptedException {
            String guid = new VMID().toString().replace(':', '_');

            monitor.beginTask("Secure Copy", 100);
            scp(directory, "/tmp/hadoop_scp_" + guid,
                new SubProgressMonitor(monitor, 60));
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.