public class UDCIDGenerator
extends java.lang.Object
Constructor and Description |
---|
UDCIDGenerator() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
newID(java.lang.String host,
int port)
This method will return a unique id that has been generated
using the ip address and port of the server associated with
whatever this id is being generated for, and it uses the
timestamp (down to millisecond) at the moment the id is being
generated.
|
public static java.lang.String newID(java.lang.String host, int port) throws java.net.UnknownHostException
host
- Either the IP-address or host-name of the machine
on which the object getting the id is running.port
- The port associated with the server (or object
within the server) for which this id is being generated.java.net.UnknownHostException