Package java.rmi.dgc

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();
      }
      else
      {
         hostIP = getFastHostName(address);
      }
View Full Code Here


     * given IP address.
     *
     * @return A String representation of the unique identifier.
     */
    String generateUniqueIdentifier() {
        VMID guid = new VMID();
        return guid.toString();
    }
View Full Code Here

            ThreadContext.exit(oldCallContext);
        }
    }

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

     * Get the next message identifier.
     * @return The next message identifier.
     */
    public static String getMessageId()
    {
        return "urn:" + new VMID().toString() ;
    }
View Full Code Here

      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

            ThreadContext.exit(oldCallContext);
        }
    }

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

             */
            unpinImpl();
            DGCImpl dgc = DGCImpl.getDGCImpl();
            Enumeration enum_ = refSet.elements();
            while (enum_.hasMoreElements()) {
                VMID vmid = (VMID) enum_.nextElement();
                dgc.unregisterTarget(vmid, this);
            }
            return true;
        } else {
            return false;
View Full Code Here

     * before the "lease" time expires or all references to remote
     * objects in this VM that the client holds are considered
     * "unreferenced".
     */
    public Lease dirty(ObjID[] ids, long sequenceNum, Lease lease) {
        VMID vmid = lease.getVMID();
        /*
         * The server specifies the lease value; the client has
         * no say in the matter.
         */
        long duration = leaseValue;

        if (dgcLog.isLoggable(Log.VERBOSE)) {
            dgcLog.log(Log.VERBOSE, "vmid = " + vmid);
        }

        // create a VMID if one wasn't supplied
        if (vmid == null) {
            vmid = new VMID();

            if (dgcLog.isLoggable(Log.BRIEF)) {
                String clientHost;
                try {
                    clientHost = RemoteServer.getClientHost();
View Full Code Here

        TestLibrary.suggestSecurityManager(null);

        try {
            System.err.println("Create a VMID");
            VMID vmid = new VMID();
            System.err.println("vmid = " + vmid);
        } catch (Exception e) {
            e.printStackTrace();
            throw new RuntimeException("TEST FAILED: " + e.toString());
        }
View Full Code Here

      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

TOP

Related Classes of java.rmi.dgc.VMID

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.