ucr.core
Class Utilities

java.lang.Object
  extended byucr.core.Utilities

public class Utilities
extends java.lang.Object

General purpose utilities


Field Summary
private static long bootTime
           
private static short[] clientID
           
private static long counter
           
 
Constructor Summary
Utilities()
           
 
Method Summary
static short[] generateGUID()
          Generate something remotely resembling a windows guid
static GUID getClientGUID()
          Returns the client guid in the form of the wrapper GUID
static short[] getClientIdentifier()
          Generate something resembling a guid for this host
(package private) static short[] getHostAddress()
          Gets the host address, works around byte[] getAddress() looking negative
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

clientID

private static short[] clientID

bootTime

private static long bootTime

counter

private static long counter
Constructor Detail

Utilities

public Utilities()
Method Detail

generateGUID

public static short[] generateGUID()
Generate something remotely resembling a windows guid


getClientIdentifier

public static short[] getClientIdentifier()
Generate something resembling a guid for this host


getClientGUID

public static GUID getClientGUID()
Returns the client guid in the form of the wrapper GUID


getHostAddress

static short[] getHostAddress()
Gets the host address, works around byte[] getAddress() looking negative

Returns:
address

main

public static void main(java.lang.String[] args)