public static void updateContext(LRMIInvocationTrace invocationTrace,ProxyWriteType proxyWriteType,InvocationStage stage,PlatformLogicalVersion sourceLogicalVersion,PlatformLogicalVersion targetLogicalVersion,boolean createSnapshot,Boolean useStubCache,InetSocketAddress clientEndPointAddress){
  LRMIInvocationContextHolder holder=invocationContexts.get();
  LRMIInvocationContext invocationContext=holder.getContext();
  LRMIInvocationContext actualContext=createSnapshot ? invocationContext.snapshot() : invocationContext;
  if (invocationTrace != null || createSnapshot)   actualContext.setTrace(invocationTrace);
  if (proxyWriteType != null || createSnapshot)   actualContext.setProxyWriteType(proxyWriteType);
  if (stage != null || createSnapshot)   actualContext.setInvocationStage(stage);
  if (sourceLogicalVersion != null || createSnapshot)   actualContext.setSourceLogicalVersion(sourceLogicalVersion);
  if (targetLogicalVersion != null || createSnapshot)   actualContext.setTargetLogicalVersion(targetLogicalVersion);
  if (useStubCache != null)   actualContext.setUseStubCache(useStubCache.booleanValue());
  if (clientEndPointAddress != null || createSnapshot) {
    actualContext.setClientEndPointAddress(clientEndPointAddress);
  }
  if (createSnapshot) {
    if (invocationContext._livenessPriorityEnabledInNextInvocation)     actualContext.setLivenessPriorityEnabled(true);
    if (invocationContext._customPriorityEnabledInNextInvocation)     actualContext.setCustomPriorityEnabled(true);
    if (invocationContext._callbackMethodInNextInvocation)     actualContext.setCallbackMethod(true);
  }
  holder.setContext(actualContext);
}

public static void updateContext ( LRMIInvocationTrace invocationTrace , ProxyWriteType proxyWriteType , InvocationStage stage , PlatformLogicalVersion sourceLogicalVersion , PlatformLogicalVersion targetLogicalVersion , boolean createSnapshot , Boolean useStubCache , InetSocketAddress clientEndPointAddress ) { LRMIInvocationContextHolder holder = invocationContexts . get ( ) ; LRMIInvocationContext invocationContext = holder . getContext ( ) ; LRMIInvocationContext actualContext = createSnapshot ? invocationContext . snapshot ( ) : invocationContext ; if ( invocationTrace != null || createSnapshot ) actualContext . setTrace ( invocationTrace ) ; if ( proxyWriteType != null || createSnapshot ) actualContext . setProxyWriteType ( proxyWriteType ) ; if ( stage != null || createSnapshot ) actualContext . setInvocationStage ( stage ) ; if ( sourceLogicalVersion != null || createSnapshot ) actualContext . setSourceLogicalVersion ( sourceLogicalVersion ) ; if ( targetLogicalVersion != null || createSnapshot ) actualContext . setTargetLogicalVersion ( targetLogicalVersion ) ; if ( useStubCache != null ) actualContext . setUseStubCache ( useStubCache . booleanValue ( ) ) ; if ( clientEndPointAddress != null || createSnapshot ) { actualContext . setClientEndPointAddress ( clientEndPointAddress ) ; } if ( createSnapshot ) { if ( invocationContext . _livenessPriorityEnabledInNextInvocation ) actualContext . setLivenessPriorityEnabled ( true ) ; if ( invocationContext . _customPriorityEnabledInNextInvocation ) actualContext . setCustomPriorityEnabled ( true ) ; if ( invocationContext . _callbackMethodInNextInvocation ) actualContext . setCallbackMethod ( true ) ; } holder . setContext ( actualContext ) ; }
updates this thread lrmi invocation context
