Package java.rmi.dgc

Examples of java.rmi.dgc.VMID


    /**
     * @see DGC.dirty(ObjID[], long, Lease)
     */
    public Lease dirty(ObjID[] ids, long seqNum, Lease lease)
            throws RemoteException {
        VMID vmid = lease.getVMID();

        if (vmid == null) {
            vmid = new VMID();

            if (dgcLog.isLoggable(RMILog.VERBOSE)) {
                // rmi.log.10E=Created new VMID: {0}
                dgcLog.log(RMILog.VERBOSE, Messages.getString("rmi.log.10E", vmid)); //$NON-NLS-1$
            }
View Full Code Here


            }
            long curTime = System.currentTimeMillis();

            synchronized (vmidTable) {
                for (Enumeration en = vmidTable.keys(); en.hasMoreElements();) {
                    VMID vmid = (VMID) en.nextElement();
                    Set s = (Set) vmidTable.get(vmid);

                    for (Iterator iter = s.iterator(); iter.hasNext();) {
                        RMIObjectInfo info = ExportManager.getInfo(
                                (ObjID) iter.next());
View Full Code Here

            ThreadContext.exit(oldCallContext);
        }
    }

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

    /**
     * @see DGC.dirty(ObjID[], long, Lease)
     */
    public Lease dirty(ObjID[] ids, long seqNum, Lease lease)
            throws RemoteException {
        VMID vmid = lease.getVMID();

        if (vmid == null) {
            vmid = new VMID();

            if (dgcLog.isLoggable(RMILog.VERBOSE)) {
                // rmi.log.10E=Created new VMID: {0}
                dgcLog.log(RMILog.VERBOSE, Messages.getString("rmi.log.10E", vmid)); //$NON-NLS-1$
            }
View Full Code Here

            }
            long curTime = System.currentTimeMillis();

            synchronized (vmidTable) {
                for (Enumeration en = vmidTable.keys(); en.hasMoreElements();) {
                    VMID vmid = (VMID) en.nextElement();
                    Set s = (Set) vmidTable.get(vmid);

                    for (Iterator iter = s.iterator(); iter.hasNext();) {
                        RMIObjectInfo info = ExportManager.getInfo(
                                (ObjID) iter.next());
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

     * Get the next message identifier.
     * @return The next message identifier.
     */
    public static String getMessageId()
    {
        return 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

            ThreadContext.exit(oldCallContext);
        }
    }

    protected Object newPrimaryKey() {
        return new VMID();
    }
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.