com.sap.tc.logging
Class UID

java.lang.Object
  |
  +--com.sap.tc.logging.UID

public class UID
extends java.lang.Object

The UID class


Constructor Summary
UID()
          Constructs a new UID based on the following algorithm.
 
Method Summary
 long getNodeAddress()
          Returns the node address. 6 bytes MAC or ip as fallback.
 int getProcessID()
          Returns the process id.
 int getThreadCounter()
          Returns the thread id.
 short getThreadID()
          Returns the thread id.
 long getTimeStamp()
          Returns the time stamp with us resolution
static void main(java.lang.String[] args)
           
static UID parseUID(java.lang.String uid)
           
 java.lang.String toString()
          Returns the hex string representation of this UID.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UID

public UID()
Constructs a new UID based on the following algorithm. - 6 bytes nodeaddress - 2 bytes thread id - 4 bytes thread counter - 4 bytes os pid - 16 bytes time stamp (with microseconds resolution)
Method Detail

toString

public java.lang.String toString()
Returns the hex string representation of this UID. There are no dashes in this representation.
Overrides:
toString in class java.lang.Object
Returns:
String the hex string representation of UID

parseUID

public static final UID parseUID(java.lang.String uid)
                          throws java.lang.NumberFormatException

getNodeAddress

public long getNodeAddress()
Returns the node address. 6 bytes MAC or ip as fallback.

getProcessID

public int getProcessID()
Returns the process id.

getThreadID

public short getThreadID()
Returns the thread id.

getThreadCounter

public int getThreadCounter()
Returns the thread id.

getTimeStamp

public long getTimeStamp()
Returns the time stamp with us resolution

main

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