public void alterLocalizationPoint ( BaseDestination destination , LWMConfig lp ) throws Exception { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , "alterLocalizationPoint" , lp ) ; } boolean valid = true ; DestinationDefinition dd = null ; DestinationAliasDefinition dAliasDef = null ; String key = getMasterMapKey ( lp ) ; // Update localization point in master map entry and lpMap MasterEntry m = updateLpMaps ( lp ) ; if ( m == null ) { String reason = CLASS_NAME + ".alterLocalizationPoint(): Entry for name " + key + " not found in cache" ; SibTr . error ( tc , "INTERNAL_ERROR_SIAS0003" , reason ) ; valid = false ; } else { try { // We obtain the DD from the new cache in case it has changed. This is // lieu of a possible // design change to allow the independent signalling of a change to the // DD. BaseDestinationDefinition bdd = _me . getSIBDestination ( _me . getBusName ( ) , key ) ; if ( destination . isAlias ( ) ) { AliasDestination aliasDest = ( AliasDestination ) destination ; dAliasDef = modifyAliasDestDefinition ( aliasDest , ( DestinationAliasDefinition ) bdd ) ; } else { dd = ( DestinationDefinition ) modifyDestDefinition ( destination , bdd ) ; } } catch ( Exception e ) { com . ibm . ws . ffdc . FFDCFilter . processException ( e , CLASS_NAME + ".alterLocalizationPoint" , "1" , this ) ; SibTr . exception ( tc , e ) ; String reason = m . getDestinationLocalization ( ) . getName ( ) ; valid = false ; } } if ( valid == true && ! isInZOSServentRegion ( ) && _mpAdmin != null ) { if ( destination . isAlias ( ) ) { _mpAdmin . alterDestinationAlias ( dAliasDef ) ; } else { LocalizationDefinition ld = m . getDestinationLocalization ( ) ; ld . setAlterationTime ( dd . getAlterationTime ( ) ) ; ld . setSendAllowed ( dd . isSendAllowed ( ) ) ; _mpAdmin . alterDestinationLocalization ( dd , ld ) ; } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) SibTr . debug ( tc , "alterLocalizationPoint: LP altered on existing destination deferring alter until end, UUID=" + key + " Name=" + dd . getName ( ) ) ; } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . exit ( tc , "alterLocalizationPoint" ) ; } }
Modify the given localization point and tell MP . The parameter is a new SIBLocalizationPoint which will replace the existing object inside of this . This method is used by dynamic config .