public class LRMIInvocationContext extends Object
Modifier and Type | Class and Description |
---|---|
static class |
LRMIInvocationContext.InvocationStage
Represents the stage of the lrmi invocation
|
static class |
LRMIInvocationContext.ProxyWriteType |
Constructor and Description |
---|
LRMIInvocationContext() |
public void setTrace(LRMIInvocationTrace trace)
public LRMIInvocationTrace getTrace()
public void setSourceLogicalVersion(PlatformLogicalVersion sourceLogicalVersion)
public PlatformLogicalVersion getSourceLogicalVersion()
public PlatformLogicalVersion getTargetLogicalVersion()
public LRMIInvocationContext.ProxyWriteType getProxyWriteType()
public LRMIInvocationContext.InvocationStage getInvocationStage()
public boolean isEmpty()
public void setClientEndPointAddress(InetSocketAddress clientEndPointAddress)
public InetSocketAddress getClientEndPointAddress()
public static PlatformLogicalVersion getEndpointLogicalVersion()
public static String getContextMethodShortDisplayString()
public static String getContextMethodLongDisplayString()
public static LRMIInvocationContext getCurrentContext()
public static void updateContext(LRMIInvocationTrace invocationTrace, LRMIInvocationContext.ProxyWriteType proxyWriteType, LRMIInvocationContext.InvocationStage stage, PlatformLogicalVersion sourceLogicalVersion, PlatformLogicalVersion targetLogicalVersion, boolean createSnapshot, Boolean useStubCache, InetSocketAddress clientEndPointAddress)
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 the restoreContext()
method. if false the
current context is overriden with all the non null values
parameters.clientEndPointAddress
- - The source ip/portpublic static void restoreContext()
snapshot()
stage.public static void resetContext()
public static void enableLivenessPriorityForNextInvocation()
public static void enableCustomPriorityForNextInvocation()
public static void enableDirectPriorityForNextInvocation()
public static void enableCallbackModeForNextInvocation()
public void setUseStubCache(boolean useStubCache)
public boolean isUseStubCache()
public boolean isCallbackMethod()
public boolean isLivenessPriorityEnabled()
public void setCustomPriorityEnabled(boolean customPriorityEnabled)
public boolean isCustomPriorityEnabled()
public void setDirectPriorityEnabled(boolean directPriorityEnabled)
public boolean isDirectPriorityEnabled()
public static InetSocketAddress getEndpointAddress()
Copyright © GigaSpaces.