Package com.gigaspaces.lrmi
Class LRMIInvocationContext
java.lang.Object
com.gigaspaces.lrmi.LRMIInvocationContext
Represents thread local lrmi invocation context that is used for debug logging levels
- Since:
- 7.0.1
- Author:
- eitany
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumRepresents the stage of the lrmi invocationstatic enum -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic voidstatic voidstatic voidstatic Stringstatic Stringstatic LRMIInvocationContextstatic InetSocketAddressstatic PlatformLogicalVersiongetTrace()booleanbooleanbooleanbooleanisEmpty()booleanbooleanstatic voidResets the current contextstatic voidRestores the current context to its previoussnapshot()stage.voidsetClientEndPointAddress(InetSocketAddress clientEndPointAddress) voidsetCustomPriorityEnabled(boolean customPriorityEnabled) voidsetDirectPriorityEnabled(boolean directPriorityEnabled) voidsetSourceLogicalVersion(PlatformLogicalVersion sourceLogicalVersion) voidsetTrace(LRMIInvocationTrace trace) voidsetUseStubCache(boolean useStubCache) static voidupdateContext(LRMIInvocationTrace invocationTrace, LRMIInvocationContext.ProxyWriteType proxyWriteType, LRMIInvocationContext.InvocationStage stage, PlatformLogicalVersion sourceLogicalVersion, PlatformLogicalVersion targetLogicalVersion, boolean createSnapshot, Boolean useStubCache, InetSocketAddress clientEndPointAddress) Updates this thread lrmi invocation context
-
Constructor Details
-
LRMIInvocationContext
public LRMIInvocationContext()
-
-
Method Details
-
setTrace
-
getTrace
-
setSourceLogicalVersion
-
getSourceLogicalVersion
-
getTargetLogicalVersion
-
getProxyWriteType
-
getInvocationStage
-
isEmpty
public boolean isEmpty() -
setClientEndPointAddress
-
getClientEndPointAddress
-
getEndpointLogicalVersion
- Returns:
- invocation stage related end point logical version, if this is the invocation server then the source logical version is returned, if it is the client then the target logical version is returned. if there is no lrmi invocation context then the current jar logical version is returned.
-
getContextMethodShortDisplayString
-
getContextMethodLongDisplayString
-
getCurrentContext
-
updateContext
public static void updateContext(LRMIInvocationTrace invocationTrace, LRMIInvocationContext.ProxyWriteType proxyWriteType, LRMIInvocationContext.InvocationStage stage, PlatformLogicalVersion sourceLogicalVersion, PlatformLogicalVersion targetLogicalVersion, boolean createSnapshot, Boolean useStubCache, InetSocketAddress clientEndPointAddress) Updates this thread lrmi invocation context- Parameters:
invocationTrace- traceproxyWriteType- write typestage- invocation stagesourceLogicalVersion- source logical versiontargetLogicalVersion- target logical versioncreateSnapshot- if true, the current context is kept and a new context is createduseStubCache- true if stub cache should be used for this invocation which can later be restored to the current context using therestoreContext()method. if false the current context is overriden with all the non null values parameters.clientEndPointAddress- - The source ip/port
-
restoreContext
public static void restoreContext()Restores the current context to its previoussnapshot()stage. -
resetContext
public static void resetContext()Resets the current context -
enableLivenessPriorityForNextInvocation
public static void enableLivenessPriorityForNextInvocation() -
enableCustomPriorityForNextInvocation
public static void enableCustomPriorityForNextInvocation() -
enableDirectPriorityForNextInvocation
public static void enableDirectPriorityForNextInvocation() -
enableCallbackModeForNextInvocation
public static void enableCallbackModeForNextInvocation() -
setUseStubCache
public void setUseStubCache(boolean useStubCache) -
isUseStubCache
public boolean isUseStubCache() -
isCallbackMethod
public boolean isCallbackMethod() -
isLivenessPriorityEnabled
public boolean isLivenessPriorityEnabled() -
setCustomPriorityEnabled
public void setCustomPriorityEnabled(boolean customPriorityEnabled) -
isCustomPriorityEnabled
public boolean isCustomPriorityEnabled() -
setDirectPriorityEnabled
public void setDirectPriorityEnabled(boolean directPriorityEnabled) -
isDirectPriorityEnabled
public boolean isDirectPriorityEnabled() -
getEndpointAddress
-