List of usage examples for java.rmi.dgc VMID toString
public String toString()
From source file:org.artifactory.util.HttpUtils.java
/** * Calculate a unique id for the VM to support Artifactories with the same ip (e.g. accross NATs) *//*from w ww.j a va 2 s . c o m*/ public static String getHostId() { if (StringUtils.isNotBlank(ConstantValues.hostId.getString())) { return ConstantValues.hostId.getString(); } if (VM_HOST_ID == null) { VMID vmid = new VMID(); VM_HOST_ID = vmid.toString(); } return VM_HOST_ID; }
From source file:net.sf.ehcache.constructs.asynchronous.AsynchronousCommandExecutor.java
/** * Generates an ID that is guaranteed to be unique for all VM invocations on a machine with a * given IP address.//w w w . j av a2 s . c o m * * @return A String representation of the unique identifier. */ String generateUniqueIdentifier() { VMID guid = new VMID(); return guid.toString(); }
From source file:org.firstopen.singularity.util.HibernateUtilImpl.java
public String generateUUID() { VMID vmid = new VMID(); return vmid.toString(); }