public class ApiThreadLocalStorageBlock extends Object implements com.bmc.arsys.arthreadlocal.ARThreadLocalStorable
Constructor and Description |
---|
ApiThreadLocalStorageBlock() |
Modifier and Type | Method and Description |
---|---|
void |
activateBulkEntryTxn(boolean activate) |
void |
addBulkEntryTxnArgs(Object obj) |
void |
cleanUp()
Clean up individual variables initialized for current thread
|
static void |
createTLB()
Create, initialize and register a thread local storage block
|
Map<Object,Object> |
getApiThreadInfo()
return generic thread info that api needs
|
List<Object> |
getBulkEntryTxnArgs() |
IARChunkable |
getChunkProcessor() |
int |
getCurrentObj() |
String |
getCurrentOp() |
int |
getInitConnectTimeout() |
Object |
getInternalChunkingObj() |
com.bmc.arsys.utils.LocaleInfo |
getLocaleInfo() |
Class<? extends ApiProxyI> |
getRpcClazz() |
String |
getRpcClazzName() |
int |
getRpcType() |
static ApiThreadLocalStorageBlock |
getTLB()
Get thread local storage block for current thread.
|
void |
init(Object t)
initialize individual variable here if needed for current thread
|
void |
initChunkingVariables()
Below are getter and setter for individual variable inside the thread local storage block
|
boolean |
isBulkEntryTxnActive() |
boolean |
isCMDBCall() |
boolean |
isIgnoreCMTHandle() |
static boolean |
isTLBExist()
check if there is a thread local storage block for current thread.
|
static void |
registerTLB(ApiThreadLocalStorageBlock tlb)
Register the thread local storage block for current thread to the associated ArThreadLocalHandler
|
void |
resetChunkingProcessor() |
void |
resetChunkingVariables() |
void |
setApiThreadInfo(Map<Object,Object> apiThreadInfo)
Set generic thread info that api needs .
|
void |
setChunkProcessor(IARChunkable chunkProcessor) |
void |
setCurrentObj(int currentObj) |
void |
setCurrentOp(String op) |
void |
setIgnoreCMTHandle(boolean ignoreCMTHandle) |
void |
setInitConnectTimeout(int timeout) |
void |
setInternalChunkingObj(Object internalObj) |
void |
setLocaleInfo(com.bmc.arsys.utils.LocaleInfo localeInfo) |
void |
setRpcType(ApiUserContextBase context,
String cmd,
String proxyJRpcClazzName) |
void |
setRpcTypeWithProxyClass(ApiUserContextBase context,
String cmd,
Class<? extends ApiProxyI> proxyJRpcClazz,
ApiProxyType proxyType) |
public static boolean isTLBExist()
public static void createTLB()
public static ApiThreadLocalStorageBlock getTLB()
public static void registerTLB(ApiThreadLocalStorageBlock tlb)
tlb
- public void init(Object t)
init
in interface com.bmc.arsys.arthreadlocal.ARThreadLocalStorable
public void cleanUp()
cleanUp
in interface com.bmc.arsys.arthreadlocal.ARThreadLocalStorable
public void initChunkingVariables()
public void resetChunkingVariables()
public void resetChunkingProcessor()
public Object getInternalChunkingObj()
public void setInternalChunkingObj(Object internalObj)
public IARChunkable getChunkProcessor()
public void setChunkProcessor(IARChunkable chunkProcessor)
public String getCurrentOp()
public void setCurrentOp(String op)
public int getCurrentObj()
public void setCurrentObj(int currentObj)
public int getRpcType()
public String getRpcClazzName()
public void setRpcType(ApiUserContextBase context, String cmd, String proxyJRpcClazzName)
public void setRpcTypeWithProxyClass(ApiUserContextBase context, String cmd, Class<? extends ApiProxyI> proxyJRpcClazz, ApiProxyType proxyType)
public boolean isCMDBCall()
public boolean isBulkEntryTxnActive()
public void activateBulkEntryTxn(boolean activate)
public void addBulkEntryTxnArgs(Object obj)
public int getInitConnectTimeout()
public void setInitConnectTimeout(int timeout)
public void setIgnoreCMTHandle(boolean ignoreCMTHandle)
ignoreCMTHandle
- the ignoreCMTHandle to setpublic boolean isIgnoreCMTHandle()
public com.bmc.arsys.utils.LocaleInfo getLocaleInfo()
public void setLocaleInfo(com.bmc.arsys.utils.LocaleInfo localeInfo)
public void setApiThreadInfo(Map<Object,Object> apiThreadInfo)
apiThreadInfo
- ? Copyright 2013 BMC Software, Inc.