Package java.rmi.dgc

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


            ThreadContext.exit(oldCallContext);
        }
    }

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

      AbstractBeanMetaData bmd = new AbstractBeanMetaData("VMIdentifier", VMIdentifierImpl.class.getName());
      controller.install(bmd);
     
      VMIdentifier identifierHere = new VMIdentifierImpl();
     
      VMID firstHere = identifierHere.getCurrentVMID();
      VMID secondHere = identifierHere.getCurrentVMID();
      assertEquals(firstHere, secondHere);
     
      VMIdentifier identifierThere = (VMIdentifier) ctx.lookup("VMIdentifier");
     
      VMID firstThere = identifierThere.getCurrentVMID();
      VMID secondThere = identifierThere.getCurrentVMID();
      assertEquals(firstThere, secondThere);
     
      assertFalse(firstHere.equals(firstThere));
   }
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

/*     */     catch (PrivilegedActionException e)
/*     */     {
/*  82 */       ipAddress = "127.0.0.1";
/*     */     }
/*     */
/*  86 */     String vmid = new VMID().toString().replace(':', 'x').replace('-', 'X') + rand.nextInt(100);
/*     */
/*  88 */     return ipAddress + "/" + System.currentTimeMillis() + "/" + vmid + "/" + id.increment();
/*     */   }
View Full Code Here

/* 314 */     return id;
/*     */   }
/*     */
/*     */   public static final String createUniqueID()
/*     */   {
/* 319 */     String id = new VMID().toString();
/*     */
/* 321 */     return id.replace(':', 'x') + random.nextInt(1000);
/*     */   }
View Full Code Here

      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

            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.