com.sap.tc.logging

Class UID

java.lang.Object
  extended by com.sap.tc.logging.UID

public class UID
extends Object

The UID class


Field Summary
static long EMPTY_CORRELATOR_ID
           
 
Constructor Summary
UID()
          Constructs a new UID based on the following algorithm
UID(long correlatorId)
           
 
Method Summary
 long getCorrelatorID()
          Returns the time stamp with us resolution
static long getCorrelatorID(String uid)
           
 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(String[] args)
           
static UID parseUID(String uid)
           
 String toString()
          Returns the hex string representation of this UID.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

EMPTY_CORRELATOR_ID

public static final long EMPTY_CORRELATOR_ID
See Also:
Constant Field Values
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)


UID

public UID(long correlatorId)
Method Detail

toString

public String toString()
Returns the hex string representation of this UID. There are no dashes in this representation.

Overrides:
toString in class Object
Returns:
String the hex string representation of UID

parseUID

public static final UID parseUID(String uid)
                          throws NumberFormatException
Throws:
NumberFormatException

getCorrelatorID

public static final long getCorrelatorID(String uid)

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


getCorrelatorID

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


main

public static void main(String[] args)
Access Rights

This class can be accessed from:


SC DC
[sap.com] FRAMEWORK [sap.com] tc/ddic/ddicruntime
[sap.com] ENGINEAPI [sap.com] tc/logging
[sap.com] ENGFACADE [sap.com] tc/bl/logging/api
[sap.com] CORE-TOOLS [sap.com] com.sap.engine.client.lib
[sap.com] BRMS-FACADE [sap.com] tc/brms/facade


Copyright 2010 SAP AG Complete Copyright Notice