|
IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.btt.sm.ProcessorCounter
public class ProcessorCounter
This class is used to handle the multi- ajax request problem. It will maintain how many ajax operation request active in the processor. It is internal used for BTT product.
Field Summary | |
---|---|
static int |
AJAX
|
static int |
HTML
|
static int |
NONE
|
Constructor Summary | |
---|---|
ProcessorCounter()
|
Method Summary | |
---|---|
void |
addReqData(AjaxRequestData data)
|
boolean |
getChannelLock(int channel)
true means the channel get the channel locker owner, false means that the channel lock is owned by another channel. |
Semaphore |
getChannelLocker()
semaphore to control the ajax or html channel request pending Warning : BTT Internal use. |
int |
getChannelLockOwner()
get the owner who occupy current channel lock. value is ProcessCounter.HTML, ProcessCounter.AJAX, or ProcessCounter.NONE |
int |
getCount()
|
java.lang.String |
getId()
processor id |
AjaxRequestData |
getReqData(java.lang.String operationId)
get AjaxRequestData or null if not find |
void |
releaseChannelLock(int channel)
release pending request if the lock owner channel is the parameter channel NOTES that the channel value must be ProcessorCounter.NONE,ProcessorCounter.HTML,ProcessorCounter.AJAX |
void |
removeAllReqData()
remove all AjaxRequestData from table |
void |
removeReqData(java.lang.String operationId)
remove the ajaxRequestData from the table |
void |
setId(java.lang.String processorId)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static int NONE
public static int HTML
public static int AJAX
Constructor Detail |
---|
public ProcessorCounter()
Method Detail |
---|
public final java.lang.String getId()
public final void setId(java.lang.String processorId)
public final int getCount()
public final Semaphore getChannelLocker()
public final int getChannelLockOwner()
public final boolean getChannelLock(int channel)
channel
- ProcessorCounter.NONE,ProcessorCounter.HTML,ProcessorCounter.AJAXtime
- in milli-secondspublic void releaseChannelLock(int channel)
channel
- ProcessorCounter.NONE,ProcessorCounter.HTML,ProcessorCounter.AJAXpublic AjaxRequestData getReqData(java.lang.String operationId)
operationId
-
public final void addReqData(AjaxRequestData data)
data
- public final void removeReqData(java.lang.String operationId)
operationId
- public final void removeAllReqData()
public java.lang.String toString()
toString
in class java.lang.Object
|
IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |