com.ibm.dse.cs.servlet
Class CSReceiveProtocolThread

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--com.ibm.dse.cs.servlet.CSReceiveProtocolThread

public class CSReceiveProtocolThread
extends java.lang.Thread

The CSReceiveProtocolThread class implements the receive method. It is responsible for retrieving data from the SendEventsBuffer.


Field Summary
protected  boolean clientTimeouted
          This field indicates if the method wich has called the run of this thread has reached its own timeout.
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
CSReceiveProtocolThread()
          This constructor creates a CSReceiveProtocolThread object.
CSReceiveProtocolThread(Context myContext, java.lang.Integer id, CSClient myCSClient)
          This constructor creates a CSReceiveProtocolThread object.
CSReceiveProtocolThread(java.lang.Integer id, CSClient myCSClient)
          This constructor creates a CSReceiveProtocolThread object.
CSReceiveProtocolThread(java.lang.Runnable target)
          This constructor creates a CSReceiveProtocolThread object.
CSReceiveProtocolThread(java.lang.Runnable target, java.lang.String name)
          This constructor creates a CSReceiveProtocolThread object.
CSReceiveProtocolThread(Semaphore aSem, ClientOperation aClientOperation, java.lang.Integer id, CSClient myCSClient)
          This constructor creates a CSReceiveProtocolThread object.
CSReceiveProtocolThread(Semaphore aSem, Context myContext, java.lang.Integer id, CSClient myCSClient)
          This constructor creates a CSReceiveProtocolThread object.
CSReceiveProtocolThread(java.lang.String name)
          This constructor creates a CSReceiveProtocolThread object.
CSReceiveProtocolThread(java.lang.ThreadGroup group, java.lang.Runnable target)
          This constructor creates a CSReceiveProtocolThread object.
CSReceiveProtocolThread(java.lang.ThreadGroup group, java.lang.Runnable target, java.lang.String name)
          This constructor creates a CSReceiveProtocolThread object.
CSReceiveProtocolThread(java.lang.ThreadGroup group, java.lang.String name)
          This constructor creates a CSReceiveProtocolThread object.
 
Method Summary
 boolean getClientTimeouted()
          Returns the clientTimeouted field, a description of this field can be found in the field's definition
 java.lang.String getExceptionName()
          Gets the _exceptionName property (java.lang.String) value.
 java.lang.Integer getId()
          Gets the _id property (java.lang.Integer) value.
 java.lang.String getSideIndicator()
          Gets the _sideIndicator property (java.lang.String) value.
protected  boolean isContextUpdated()
           
 void run()
          Receives data from the SendEventsBuffer.
 void setClientTimeouted(boolean newClientTimeouted)
          Sets the clientTimeouted field, a description of this field can be found in the field's definition
 void setId(java.lang.Integer id)
          Sets the _id property (java.lang.Integer) value.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

clientTimeouted

protected boolean clientTimeouted
This field indicates if the method wich has called the run of this thread has reached its own timeout. If yes, doesn´t need to continue the process, there's nobody waiting for the results.
Constructor Detail

CSReceiveProtocolThread

public CSReceiveProtocolThread()
This constructor creates a CSReceiveProtocolThread object.

CSReceiveProtocolThread

public CSReceiveProtocolThread(Context myContext,
                               java.lang.Integer id,
                               CSClient myCSClient)
This constructor creates a CSReceiveProtocolThread object.
Parameters:
aContext - Context
id - java.lang.Integer
myCSClient - com.ibm.dse.clientserver.CSClient

CSReceiveProtocolThread

public CSReceiveProtocolThread(Semaphore aSem,
                               ClientOperation aClientOperation,
                               java.lang.Integer id,
                               CSClient myCSClient)
This constructor creates a CSReceiveProtocolThread object.
Parameters:
aClientOperation - com.ibm.dse.base.ClientOperation
id - java.lang.Integer
myCSClient - com.ibm.dse.clientserver.CSClient

CSReceiveProtocolThread

public CSReceiveProtocolThread(Semaphore aSem,
                               Context myContext,
                               java.lang.Integer id,
                               CSClient myCSClient)
This constructor creates a CSReceiveProtocolThread object.
Parameters:
aContext - Context
id - java.lang.Integer
myCSClient - com.ibm.dse.clientserver.CSClient

CSReceiveProtocolThread

public CSReceiveProtocolThread(java.lang.Integer id,
                               CSClient myCSClient)
This constructor creates a CSReceiveProtocolThread object.
Parameters:
id - java.lang.Integer

CSReceiveProtocolThread

public CSReceiveProtocolThread(java.lang.Runnable target)
This constructor creates a CSReceiveProtocolThread object.
Parameters:
target - java.lang.Runnable

CSReceiveProtocolThread

public CSReceiveProtocolThread(java.lang.Runnable target,
                               java.lang.String name)
This constructor creates a CSReceiveProtocolThread object.
Parameters:
target - java.lang.Runnable
name - java.lang.String

CSReceiveProtocolThread

public CSReceiveProtocolThread(java.lang.String name)
This constructor creates a CSReceiveProtocolThread object.
Parameters:
name - java.lang.String

CSReceiveProtocolThread

public CSReceiveProtocolThread(java.lang.ThreadGroup group,
                               java.lang.Runnable target)
This constructor creates a CSReceiveProtocolThread object.
Parameters:
group - java.lang.ThreadGroup
target - java.lang.Runnable

CSReceiveProtocolThread

public CSReceiveProtocolThread(java.lang.ThreadGroup group,
                               java.lang.Runnable target,
                               java.lang.String name)
This constructor creates a CSReceiveProtocolThread object.
Parameters:
group - java.lang.ThreadGroup
target - java.lang.Runnable
name - java.lang.String

CSReceiveProtocolThread

public CSReceiveProtocolThread(java.lang.ThreadGroup group,
                               java.lang.String name)
This constructor creates a CSReceiveProtocolThread object.
Parameters:
group - java.lang.ThreadGroup
name - java.lang.String
Method Detail

getClientTimeouted

public boolean getClientTimeouted()
Returns the clientTimeouted field, a description of this field can be found in the field's definition
Returns:
boolean

getExceptionName

public java.lang.String getExceptionName()
Gets the _exceptionName property (java.lang.String) value.
Returns:
java.lang.String

getId

public java.lang.Integer getId()
Gets the _id property (java.lang.Integer) value.
Returns:
java.lang.Integer

getSideIndicator

public java.lang.String getSideIndicator()
Gets the _sideIndicator property (java.lang.String) value.
Returns:
java.lang.String

isContextUpdated

protected boolean isContextUpdated()
Returns:
boolean

run

public void run()
Receives data from the SendEventsBuffer.
Overrides:
run in class java.lang.Thread

setClientTimeouted

public void setClientTimeouted(boolean newClientTimeouted)
Sets the clientTimeouted field, a description of this field can be found in the field's definition
Parameters:
newClientTimeouted - boolean

setId

public void setId(java.lang.Integer id)
Sets the _id property (java.lang.Integer) value.
Parameters:
id - java.lang.Integer