|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--uk.org.ogsadai.common.msgs.DAIUniqueID
Represents a unique ID against which entries can be written to the server log.
This ID can also be given to clients alongside errors. This will allow system administrators to match up client errors with the corresponding messages in the server logs.
Field Summary | |
private static java.lang.String |
COPYRIGHT_NOTICE
|
private static long |
mCounter
|
private java.lang.String |
mId
|
Constructor Summary | |
private |
DAIUniqueID()
Constructs a new server log ID. |
Method Summary | |
private java.lang.String |
getBaseStringFromDateTime()
Used the current time to form a base of the server log ID. |
private long |
getNextCounter()
Gets the next counter and increments the counter. |
static DAIUniqueID |
newInstance()
Used to obtain a new unique server log ID. |
java.lang.String |
toString()
Returns server log ID as a String. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final java.lang.String COPYRIGHT_NOTICE
private static long mCounter
private java.lang.String mId
Constructor Detail |
private DAIUniqueID()
Method Detail |
public java.lang.String toString()
toString
in class java.lang.Object
private java.lang.String getBaseStringFromDateTime()
private long getNextCounter()
public static DAIUniqueID newInstance()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |