Class LRMIInvocationContext

java.lang.Object
com.gigaspaces.lrmi.LRMIInvocationContext

public class LRMIInvocationContext extends Object
Represents thread local lrmi invocation context that is used for debug logging levels
Since:
7.0.1
Author:
eitany
  • Constructor Details

    • LRMIInvocationContext

      public LRMIInvocationContext()
  • Method Details

    • setTrace

      public void setTrace(LRMIInvocationTrace trace)
    • getTrace

      public LRMIInvocationTrace getTrace()
    • setSourceLogicalVersion

      public void setSourceLogicalVersion(PlatformLogicalVersion sourceLogicalVersion)
    • getSourceLogicalVersion

      public PlatformLogicalVersion getSourceLogicalVersion()
    • getTargetLogicalVersion

      public PlatformLogicalVersion getTargetLogicalVersion()
    • getProxyWriteType

      public LRMIInvocationContext.ProxyWriteType getProxyWriteType()
    • getInvocationStage

      public LRMIInvocationContext.InvocationStage getInvocationStage()
    • isEmpty

      public boolean isEmpty()
    • setClientEndPointAddress

      public void setClientEndPointAddress(InetSocketAddress clientEndPointAddress)
    • getClientEndPointAddress

      public InetSocketAddress getClientEndPointAddress()
    • getEndpointLogicalVersion

      public static PlatformLogicalVersion 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

      public static String getContextMethodShortDisplayString()
    • getContextMethodLongDisplayString

      public static String getContextMethodLongDisplayString()
    • getCurrentContext

      public static LRMIInvocationContext 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 - trace
      proxyWriteType - write type
      stage - invocation stage
      sourceLogicalVersion - source logical version
      targetLogicalVersion - target logical version
      createSnapshot - if true, the current context is kept and a new context is created
      useStubCache - true if stub cache should be used for this invocation which can later be restored to the current context using the restoreContext() 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 previous snapshot() 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

      public static InetSocketAddress getEndpointAddress()