core/src/main/java/nl/nn/adapterframework/util/Misc.java
/**
	 *
	 * @return a unique UUID string with length 31 (ipaddress with length 4*3, currentTime with length 13, hashcode with length 6)
	 */
@return a unique UUID string with length 31 (ipaddress with length 4*3, currentTime with length 13, hashcode with length 6)
@return a unique UUID string with length 31 ( ipaddress with length 4 * 3 currentTime with length 13 hashcode with length 6 )
public static String createNumericUUID() {
		byte[] ipAddress = getIPAddress();
		DecimalFormat df = new DecimalFormat("000");
		String ia1 = df.format(unsignedByteToInt(ipAddress[0]));
		String ia2 = df.format(unsignedByteToInt(ipAddress[1]));
		String ia3 = df.format(unsignedByteToInt(ipAddress[2]));
		String ia4 = df.format(unsignedByteToInt(ipAddress[3]));
		String ia = ia1 + ia2 + ia3 + ia4;
		long hashL = Math.round(Math.random() * 1000000);
		df = new DecimalFormat("000000");
		String hash = df.format(hashL);
		StringBuilder s = new StringBuilder();
		s.append(ia).append(getCurrentTimeMillis()).append(hash);
		return s.toString();
	}
public static String createNumericUUID ( ) { byte [ ] ipAddress = getIPAddress ( ) ; DecimalFormat df = new DecimalFormat ( "000" ) ; String ia1 = df . format ( unsignedByteToInt ( ipAddress [ 0 ] ) ) ; String ia2 = df . format ( unsignedByteToInt ( ipAddress [ 1 ] ) ) ; String ia3 = df . format ( unsignedByteToInt ( ipAddress [ 2 ] ) ) ; String ia4 = df . format ( unsignedByteToInt ( ipAddress [ 3 ] ) ) ; String ia = ia1 + ia2 + ia3 + ia4 ; long hashL = Math . round ( Math . random ( ) * 1000000 ) ; df = new DecimalFormat ( "000000" ) ; String hash = df . format ( hashL ) ; StringBuilder s = new StringBuilder ( ) ; s . append ( ia ) . append ( getCurrentTimeMillis ( ) ) . append ( hash ) ; return s . toString ( ) ; }
@return a unique UUID string with length 31 (ipaddress with length 4*3, currentTime with length 13, hashcode with length 6)
@return a unique UUID string with length 31 ( ipaddress with length 4 * 3 currentTime with length 13 hashcode with length 6 )
//Unique string is <ipaddress with length 4*3><currentTime with length 13><hashcode with length 6>