com.ibm.commerce.ras
Class DDThreadContext

java.lang.Object
  |
  +--com.ibm.commerce.ras.DDThreadContext
All Implemented Interfaces:
java.lang.Cloneable

public class DDThreadContext
extends java.lang.Object
implements java.lang.Cloneable

This class contains thread specific information for logging and for double lick handling. It is for internal use only.


Field Summary
static java.lang.String _STR_Event_Response
           
static java.lang.String _STR_Event_Terminate
           
static java.lang.String _STR_Event_TerminateAll
           
static java.lang.String _STR_PostEvent
           
static java.lang.String _STR_ThreadState_End
           
static java.lang.String _STR_ThreadState_Running
           
static java.lang.String _STR_ThreadState_Waiting
           
static java.lang.String _STR_WaitEvent
           
 
Constructor Summary
DDThreadContext()
          DoubleClickContext constructor comment.
 
Method Summary
 java.lang.String debugString()
           
  DDThreadContext getCallerCtxt()
          Returns the callerCtxt.
 int getCommandIdentifier()
          Insert the method's description here.
 java.lang.String getCommandName()
          Insert the method's description here.
 boolean getDoubleClickCheckEnabled()
          Gets the doubleClickCheckEnabled
 java.lang.String getEvent()
          Insert the method's description here.
 java.lang.Object getEventData()
          Insert the method's description here.
 java.lang.String getKey()
          Insert the method's description here.
 int getOutstandingRequestCount()
          Gets the outstandingRequestCount
  DDThreadContext getPrevCtxt()
          Insert the method's description here.
 boolean getRegistered()
          Gets the registered
 javax.servlet.http.HttpServletRequest getRequest()
          Insert the method's description here.
 javax.servlet.http.HttpServletResponse getResponse()
          Insert the method's description here.
 java.lang.Thread getThread()
          Insert the method's description here.
 java.lang.Integer getThreadId()
          Insert the method's description here.
 java.lang.String getThreadIdInHex()
           
 java.lang.String getThreadName()
          Insert the method's description here.
 java.lang.String getThreadState()
          Insert the method's description here.
 java.lang.String getThreadTraceId()
          Insert the method's description here.
 java.lang.Long getTraceId()
          Insert the method's description here.
 java.lang.String getUniqueSessionId()
          Insert the method's description here.
 boolean isStoredResponse()
          Insert the method's description here.
 void postEvent(java.lang.String event)
          Insert the method's description here.
 void postEvent(java.lang.String newEvent, java.lang.Object data)
          Insert the method's description here.
 void reset()
          Insert the method's description here.
 void setCallerCtxt( DDThreadContext callerCtxt)
          Sets the callerCtxt.
 void setCommandIdentifier(int newCommandIdentifier)
          Insert the method's description here.
 void setCommandName(java.lang.String newCommandName)
          Insert the method's description here.
 void setDoubleClickCheckEnabled(boolean doubleClickCheckEnabled)
          Sets the doubleClickCheckEnabled
 void setEvent(java.lang.String newEvent)
          Insert the method's description here.
 void setEventData(java.lang.Object newEventData)
          Insert the method's description here.
 void setKey(java.lang.String key)
          Sets the key.
 void setOutstandingRequestCount(int outstandingRequestCount)
          Sets the outstandingRequestCount
 void setPrevCtxt( DDThreadContext newPrevCtxt)
          Insert the method's description here.
 void setRegistered(boolean registered)
          Sets the registered
 void setRequest(javax.servlet.http.HttpServletRequest newRequest)
          Insert the method's description here.
 void setResponse(javax.servlet.http.HttpServletResponse newResponse)
          Insert the method's description here.
 void setStoredResponse(boolean newStoredResponse)
          Insert the method's description here.
 void setThread(java.lang.Thread newThread)
          Insert the method's description here.
 void setThreadId(java.lang.Integer newThreadId)
          Insert the method's description here.
 void setThreadState(java.lang.String newThreadState)
          Insert the method's description here.
 void setTraceId(java.lang.Long newTraceId)
          Insert the method's description here.
 void setUniqueSessionId(java.lang.String newUniqueSessionId)
          Insert the method's description here.
 java.lang.String toString()
          Insert the method's description here.
 java.lang.String waitEvent()
          Insert the method's description here.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_STR_PostEvent

public static final java.lang.String _STR_PostEvent
See Also:
Constant Field Values

_STR_WaitEvent

public static final java.lang.String _STR_WaitEvent
See Also:
Constant Field Values

_STR_Event_Terminate

public static final java.lang.String _STR_Event_Terminate
See Also:
Constant Field Values

_STR_Event_Response

public static final java.lang.String _STR_Event_Response
See Also:
Constant Field Values

_STR_Event_TerminateAll

public static final java.lang.String _STR_Event_TerminateAll
See Also:
Constant Field Values

_STR_ThreadState_Running

public static final java.lang.String _STR_ThreadState_Running
See Also:
Constant Field Values

_STR_ThreadState_Waiting

public static final java.lang.String _STR_ThreadState_Waiting
See Also:
Constant Field Values

_STR_ThreadState_End

public static final java.lang.String _STR_ThreadState_End
See Also:
Constant Field Values
Constructor Detail

DDThreadContext

public DDThreadContext()
DoubleClickContext constructor comment.
Method Detail

getCommandIdentifier

public int getCommandIdentifier()
Insert the method's description here. Creation date: (1/23/2002 10:21:28 AM)
Returns:
int

getCommandName

public java.lang.String getCommandName()
Insert the method's description here. Creation date: (9/26/01 3:01:53 PM)
Returns:
java.lang.String

getEvent

public java.lang.String getEvent()
Insert the method's description here. Creation date: (9/22/01 3:22:15 PM)
Returns:
java.lang.String

getEventData

public java.lang.Object getEventData()
Insert the method's description here. Creation date: (9/22/01 3:27:50 PM)
Returns:
java.lang.Object

getKey

public java.lang.String getKey()
Insert the method's description here. Creation date: (9/22/01 3:22:15 PM)
Returns:
java.lang.String

getPrevCtxt

public DDThreadContext getPrevCtxt()
Insert the method's description here. Creation date: (05/06/02 6:25:28 PM)
Returns:
com.ibm.commerce.ras.DDThreadContext

getRequest

public javax.servlet.http.HttpServletRequest getRequest()
Insert the method's description here. Creation date: (9/26/01 3:01:31 PM)
Returns:
javax.servlet.http.HttpServletRequest

getResponse

public javax.servlet.http.HttpServletResponse getResponse()
Insert the method's description here. Creation date: (9/26/01 3:01:31 PM)
Returns:
javax.servlet.http.HttpServletResponse

getThread

public java.lang.Thread getThread()
Insert the method's description here. Creation date: (9/22/01 4:21:55 PM)
Returns:
java.lang.Thread

getThreadId

public java.lang.Integer getThreadId()
Insert the method's description here. Creation date: (9/22/01 7:00:16 PM)
Returns:
java.lang.Integer

getThreadState

public java.lang.String getThreadState()
Insert the method's description here. Creation date: (9/22/01 2:38:23 PM)
Returns:
java.lang.String

getThreadIdInHex

public java.lang.String getThreadIdInHex()

getThreadTraceId

public java.lang.String getThreadTraceId()
Insert the method's description here. Creation date: (9/22/01 10:08:41 PM)
Returns:
java.lang.Long

getTraceId

public java.lang.Long getTraceId()
Insert the method's description here. Creation date: (9/22/01 10:08:41 PM)
Returns:
java.lang.Long

getThreadName

public java.lang.String getThreadName()
Insert the method's description here. Creation date: (9/22/01 10:08:41 PM)
Returns:
java.lang.Long

getUniqueSessionId

public java.lang.String getUniqueSessionId()
Insert the method's description here. Creation date: (10/5/2001 3:17:05 PM)
Returns:
java.lang.String

isStoredResponse

public boolean isStoredResponse()
Insert the method's description here. Creation date: (11/3/2001 12:49:18 AM)
Returns:
boolean

postEvent

public void postEvent(java.lang.String event)
Insert the method's description here. Creation date: (9/22/01 12:38:23 PM)
Returns:
java.lang.Integer

postEvent

public void postEvent(java.lang.String newEvent,
                      java.lang.Object data)
Insert the method's description here. Creation date: (9/22/01 12:38:23 PM)
Returns:
java.lang.Integer

reset

public void reset()
Insert the method's description here. Creation date: (9/26/01 6:24:50 PM)
Returns:
java.lang.Long

setCommandIdentifier

public void setCommandIdentifier(int newCommandIdentifier)
Insert the method's description here. Creation date: (1/23/2002 10:21:28 AM)
Parameters:
newCommandIdentifier - int

setCommandName

public void setCommandName(java.lang.String newCommandName)
Insert the method's description here. Creation date: (9/26/01 3:01:53 PM)
Parameters:
newCommandName - java.lang.String

setEvent

public void setEvent(java.lang.String newEvent)
Insert the method's description here. Creation date: (9/22/01 3:22:15 PM)
Parameters:
newEvent - java.lang.String

setEventData

public void setEventData(java.lang.Object newEventData)
Insert the method's description here. Creation date: (9/22/01 3:27:50 PM)
Parameters:
newEventData - java.lang.Object

setPrevCtxt

public void setPrevCtxt(DDThreadContext newPrevCtxt)
Insert the method's description here. Creation date: (05/06/02 6:25:28 PM)
Parameters:
newPrevCtxt - com.ibm.commerce.ras.DDThreadContext

setRequest

public void setRequest(javax.servlet.http.HttpServletRequest newRequest)
Insert the method's description here. Creation date: (9/26/01 3:01:31 PM)
Parameters:
newRequest - javax.servlet.http.HttpServletRequest

setResponse

public void setResponse(javax.servlet.http.HttpServletResponse newResponse)
Insert the method's description here. Creation date: (9/26/01 3:01:31 PM)
Parameters:
newResponse - javax.servlet.http.HttpServletResponse

setStoredResponse

public void setStoredResponse(boolean newStoredResponse)
Insert the method's description here. Creation date: (11/3/2001 12:49:18 AM)
Parameters:
newStoredResponse - boolean

setThread

public void setThread(java.lang.Thread newThread)
Insert the method's description here. Creation date: (9/22/01 4:21:55 PM)
Parameters:
newThread - java.lang.Thread

setThreadId

public void setThreadId(java.lang.Integer newThreadId)
Insert the method's description here. Creation date: (9/22/01 7:00:16 PM)
Parameters:
newThreadId - java.lang.Integer

setThreadState

public void setThreadState(java.lang.String newThreadState)
Insert the method's description here. Creation date: (9/22/01 2:38:23 PM)
Parameters:
newThreadState - java.lang.String

setTraceId

public void setTraceId(java.lang.Long newTraceId)
Insert the method's description here. Creation date: (9/22/01 10:08:41 PM)
Parameters:
newTraceId - java.lang.Long

setUniqueSessionId

public void setUniqueSessionId(java.lang.String newUniqueSessionId)
Insert the method's description here. Creation date: (10/5/2001 3:17:05 PM)
Parameters:
newUniqueSessionId - java.lang.String

toString

public java.lang.String toString()
Insert the method's description here. Creation date: (9/26/01 6:24:50 PM)
Overrides:
toString in class java.lang.Object

waitEvent

public java.lang.String waitEvent()
Insert the method's description here. Creation date: (9/22/01 12:38:23 PM)
Returns:
java.lang.Integer

getDoubleClickCheckEnabled

public boolean getDoubleClickCheckEnabled()
Gets the doubleClickCheckEnabled
Returns:
Returns a boolean

setDoubleClickCheckEnabled

public void setDoubleClickCheckEnabled(boolean doubleClickCheckEnabled)
Sets the doubleClickCheckEnabled
Parameters:
doubleClickCheckEnabled - The doubleClickCheckEnabled to set

getOutstandingRequestCount

public int getOutstandingRequestCount()
Gets the outstandingRequestCount
Returns:
Returns a int

setOutstandingRequestCount

public void setOutstandingRequestCount(int outstandingRequestCount)
Sets the outstandingRequestCount
Parameters:
outstandingRequestCount - The outstandingRequestCount to set

getRegistered

public boolean getRegistered()
Gets the registered
Returns:
Returns a boolean

setRegistered

public void setRegistered(boolean registered)
Sets the registered
Parameters:
registered - The registered to set

setKey

public void setKey(java.lang.String key)
Sets the key.
Parameters:
key - The key to set

debugString

public java.lang.String debugString()

getCallerCtxt

public DDThreadContext getCallerCtxt()
Returns the callerCtxt.
Returns:
DDThreadContext

setCallerCtxt

public void setCallerCtxt(DDThreadContext callerCtxt)
Sets the callerCtxt.
Parameters:
callerCtxt - The callerCtxt to set