Examples of VMID


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

    /**
     * Get Virtual Machine root id. (persistent)
     */
    public static String getHostVirtualMachineId() {
        VMID vmid = new VMID();
        String[] tokens = vmid.toString().split(":");
        if (tokens.length > 0) {
            return tokens[0];
        } else {
            return vmid.toString();
        }
    }
View Full Code Here

Examples of java.rmi.dgc.VMID

    /**
     * Get Unique Virtual Machine Id. (volatile)
     */
    public static String getVMID() {
        VMID vmid = new VMID();
        return vmid.toString();
    }
View Full Code Here

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

Examples of java.rmi.dgc.VMID

            }
            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

Examples of java.rmi.dgc.VMID

  
   public void ejbCreate(String name) throws RemoteException, CreateException
   {
      super.ejbCreate(name);

      this.myId = new VMID();
      log.debug("My ID: " + this.myId);
   }
View Full Code Here

Examples of java.rmi.dgc.VMID

   {
      super.ejbActivate();
      if (this.myId == null)
      {
         //it is a failover: we need to assign ourself an id
         this.myId = new VMID();
      }
      log.debug("Activate. My ID: " + this.myId + " name: " + this.name);
   }
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
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.