idx int64 0 165k | question stringlengths 73 5.81k | target stringlengths 5 918 |
|---|---|---|
159,100 | public static void setDnsCache ( Properties properties ) { for ( Map . Entry < Object , Object > entry : properties . entrySet ( ) ) { final String host = ( String ) entry . getKey ( ) ; String ipList = ( String ) entry . getValue ( ) ; ipList = ipList . trim ( ) ; if ( ipList . isEmpty ( ) ) continue ; final String [ ... | Set dns cache entries by properties |
159,101 | public static void loadDnsCacheConfig ( String propertiesFileName ) { InputStream inputStream = Thread . currentThread ( ) . getContextClassLoader ( ) . getResourceAsStream ( propertiesFileName ) ; if ( inputStream == null ) { inputStream = DnsCacheManipulator . class . getClassLoader ( ) . getResourceAsStream ( proper... | Load dns config from the specified properties file on classpath then set dns cache . |
159,102 | public static DnsCacheEntry getDnsCache ( String host ) { try { return InetAddressCacheUtil . getInetAddressCache ( host ) ; } catch ( Exception e ) { throw new DnsCacheManipulatorException ( "Fail to getDnsCache, cause: " + e . toString ( ) , e ) ; } } | Get dns cache . |
159,103 | public static List < DnsCacheEntry > listDnsCache ( ) { try { return InetAddressCacheUtil . listInetAddressCache ( ) . getCache ( ) ; } catch ( Exception e ) { throw new DnsCacheManipulatorException ( "Fail to listDnsCache, cause: " + e . toString ( ) , e ) ; } } | Get all dns cache entries . |
159,104 | public static DnsCache getWholeDnsCache ( ) { try { return InetAddressCacheUtil . listInetAddressCache ( ) ; } catch ( Exception e ) { throw new DnsCacheManipulatorException ( "Fail to getWholeDnsCache, cause: " + e . toString ( ) , e ) ; } } | Get whole dns cache info . |
159,105 | public static void removeDnsCache ( String host ) { try { InetAddressCacheUtil . removeInetAddressCache ( host ) ; } catch ( Exception e ) { final String message = String . format ( "Fail to removeDnsCache for host %s, cause: %s" , host , e . toString ( ) ) ; throw new DnsCacheManipulatorException ( message , e ) ; } } | Remove dns cache entry cause lookup dns server for host after . |
159,106 | public static void setDnsNegativeCachePolicy ( int negativeCacheSeconds ) { try { InetAddressCacheUtil . setDnsNegativeCachePolicy ( negativeCacheSeconds ) ; } catch ( Exception e ) { throw new DnsCacheManipulatorException ( "Fail to setDnsNegativeCachePolicy, cause: " + e . toString ( ) , e ) ; } } | Set JVM DNS negative cache policy |
159,107 | private void initializeDrawableForDisplay ( Drawable d ) { if ( mBlockInvalidateCallback == null ) { mBlockInvalidateCallback = new BlockInvalidateCallback ( ) ; } d . setCallback ( mBlockInvalidateCallback . wrap ( d . getCallback ( ) ) ) ; try { if ( mDrawableContainerState . mEnterFadeDuration <= 0 && mHasAlpha ) { ... | Initializes a drawable for display in this container . |
159,108 | protected boolean onStateChange ( int [ ] stateSet ) { final boolean changed = super . onStateChange ( stateSet ) ; int idx = mAnimationScaleListState . getCurrentDrawableIndexBasedOnScale ( ) ; return selectDrawable ( idx ) || changed ; } | Set the current drawable according to the animation scale . If scale is 0 then pick the static drawable otherwise pick the animatable drawable . |
159,109 | public static int longToInt ( long inLong ) { if ( inLong < Integer . MIN_VALUE ) { return Integer . MIN_VALUE ; } if ( inLong > Integer . MAX_VALUE ) { return Integer . MAX_VALUE ; } return ( int ) inLong ; } | convert unsigned long to signed int . |
159,110 | public static void getAllInterfaces ( Class < ? > classObject , ArrayList < Type > interfaces ) { Type [ ] superInterfaces = classObject . getGenericInterfaces ( ) ; interfaces . addAll ( ( Arrays . asList ( superInterfaces ) ) ) ; Type tgs = classObject . getGenericSuperclass ( ) ; if ( tgs != null ) { if ( ( tgs ) in... | recursively gets all interfaces |
159,111 | public static String truncateCloseReason ( String reasonPhrase ) { if ( reasonPhrase != null ) { byte [ ] reasonBytes = reasonPhrase . getBytes ( Utils . UTF8_CHARSET ) ; int len = reasonBytes . length ; if ( len > 120 ) { String updatedPhrase = cutStringByByteSize ( reasonPhrase , 120 ) ; reasonPhrase = updatedPhrase ... | close reason needs to be truncated to 123 UTF - 8 encoded bytes |
159,112 | protected Converter getConverter ( FacesContext facesContext , UIComponent component ) { if ( component instanceof UISelectMany ) { return HtmlRendererUtils . findUISelectManyConverterFailsafe ( facesContext , ( UISelectMany ) component ) ; } else if ( component instanceof UISelectOne ) { return HtmlRendererUtils . fin... | Gets the converter for the given component rendered by this renderer . |
159,113 | public void startConditional ( ) throws Exception { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "startConditional" , this ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) SibTr . debug ( tc , "Activating MBean for ME " + getName ( ) ) ; s... | Start the Messaging Engine if it is enabled |
159,114 | private boolean okayToSendServerStarted ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "okayToSendServerStarted" , this ) ; synchronized ( lockObject ) { if ( ! _sentServerStarted ) { if ( ( _state == STATE_STARTED ) && _mainImpl . isServerStarted ( ) ) { _sentServ... | Determine whether the conditions permitting a server started notification to be sent are met . |
159,115 | private boolean okayToSendServerStopping ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "okayToSendServerStopping" , this ) ; synchronized ( lockObject ) { if ( ! _sentServerStopping ) { if ( ( _state == STATE_STARTED || _state == STATE_AUTOSTARTING || _state == ST... | Determine whether the conditions permitting a server stopping notification to be sent are met . The ME state can be STARTED AUTOSTARTING or in STARTING state to receive server stopping notification |
159,116 | @ SuppressWarnings ( "unchecked" ) public < EngineComponent > EngineComponent getEngineComponent ( Class < EngineComponent > clazz ) { String thisMethodName = "getEngineComponent" ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , thisMethodName , clazz ) ; } JsEngineCom... | The purpose of this method is to get an engine component that can be cast using the specified class . The EngineComponent is not a class name but represents the classes real type . |
159,117 | @ SuppressWarnings ( "unchecked" ) public < EngineComponent > EngineComponent [ ] getEngineComponents ( Class < EngineComponent > clazz ) { String thisMethodName = "getEngineComponents" ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , thisMethodName , clazz ) ; } List ... | The purpose of this method is to get an engine component that can be cast using the specified class . The EngineComponent is not a class name but represents the classes real type . It is not possible to create an Array of a generic type without using reflection . |
159,118 | public final JsMEConfig getMeConfig ( ) { String thisMethodName = "getMeConfig" ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , thisMethodName , this ) ; SibTr . exit ( tc , thisMethodName , _me ) ; } return _me ; } | Returns a reference to this messaging engine s configuration . |
159,119 | public JsEngineComponent getMessageProcessor ( String name ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , "getMessageProcessor" , this ) ; SibTr . exit ( tc , "getMessageProcessor" , _messageProcessor ) ; } return _messageProcessor ; } | Gets the instance of the MP associated with this ME |
159,120 | private void resolveExceptionDestination ( BaseDestinationDefinition dd ) { String thisMethodName = "resolveExceptionDestination" ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , thisMethodName , dd . getName ( ) ) ; } if ( dd . isLocal ( ) ) { String ed = ( ( Destinat... | Resolve if necessary a variable Exception Destination name in the specified DD to it s runtime value . |
159,121 | BaseDestinationDefinition getSIBDestinationByUuid ( String bus , String key , boolean newCache ) throws SIBExceptionDestinationNotFound , SIBExceptionBase { String thisMethodName = "getSIBDestinationByUuid" ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , thisMethodNam... | Accessor method to return a destination definition . |
159,122 | public final String getState ( ) { String thisMethodName = "getState" ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , thisMethodName , this ) ; SibTr . exit ( tc , thisMethodName , states [ _state ] ) ; } return states [ _state ] ; } | Get the state of this ME |
159,123 | public final boolean isStarted ( ) { String thisMethodName = "isStarted" ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , thisMethodName , this ) ; } boolean retVal = ( _state == STATE_STARTED ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( )... | Returns an indication of whether this ME is started or not |
159,124 | final boolean addLocalizationPoint ( LWMConfig lp , DestinationDefinition dd ) { String thisMethodName = "addLocalizationPoint" ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , thisMethodName , lp ) ; } boolean success = _localizer . addLocalizationPoint ( lp , dd ) ; ... | Pass the request to add a new localization point onto the localizer object . |
159,125 | final void alterLocalizationPoint ( BaseDestination dest , LWMConfig lp ) { String thisMethodName = "alterLocalizationPoint" ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , thisMethodName , lp ) ; } try { _localizer . alterLocalizationPoint ( dest , lp ) ; } catch ( E... | Pass the request to alter a localization point onto the localizer object . |
159,126 | final void deleteLocalizationPoint ( JsBus bus , LWMConfig dest ) { String thisMethodName = "deleteLocalizationPoint" ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , thisMethodName , dest ) ; } try { _localizer . deleteLocalizationPoint ( bus , dest ) ; } catch ( SIBE... | Pass the request to delete a localization point onto the localizer object . |
159,127 | final void setLPConfigObjects ( List config ) { String thisMethodName = "setLPConfigObjects" ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , thisMethodName , "Number of LPs =" + config . size ( ) ) ; } _lpConfig . clear ( ) ; _lpConfig . addAll ( config ) ; if ( Trace... | Update the cache of localization point config objects . This method is used by dynamic config to refresh the cache . |
159,128 | public boolean isEventNotificationPropertySet ( ) { String thisMethodName = "isEventNotificationPropertySet" ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , thisMethodName , this ) ; } boolean enabled = true ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEn... | Test whether the Event Notification property has been set . This method resolves the setting for the specific ME and the setting for the bus . |
159,129 | public JsMainImpl getMainImpl ( ) { String thisMethodName = "getMainImpl" ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , thisMethodName , this ) ; SibTr . exit ( tc , thisMethodName , _mainImpl ) ; } return _mainImpl ; } | Returns a reference to the repository service . This is used in conjunction with ConfigRoot to access EMF configuration documents . |
159,130 | protected final JsEngineComponent loadClass ( String className , int stopSeq , boolean reportError ) { String thisMethodName = "loadClass" ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , thisMethodName , new Object [ ] { className , Integer . toString ( stopSeq ) , Bo... | Load the named class and add it to the list of engine components . |
159,131 | public void addMember ( JSConsumerKey key ) throws SIResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "addMember" , key ) ; super . addMember ( key ) ; synchronized ( criteriaLock ) { if ( allCriterias != null ) { SelectionCriteria [ ] newCriterias = ne... | overriding superclass method |
159,132 | public static void setCustomPropertyVariables ( ) { UPGRADE_READ_TIMEOUT = Integer . valueOf ( customProps . getProperty ( "upgradereadtimeout" , Integer . toString ( TCPReadRequestContext . NO_TIMEOUT ) ) ) . intValue ( ) ; UPGRADE_WRITE_TIMEOUT = Integer . valueOf ( customProps . getProperty ( "upgradewritetimeout" ,... | The timeout to use when the request has been upgraded and a write is happening |
159,133 | public void registerInvalidations ( String cacheName , Iterator invalidations ) { InvalidationTableList invalidationTableList = getInvalidationTableList ( cacheName ) ; if ( invalidationTableList != null ) { try { invalidationTableList . readWriteLock . writeLock ( ) . lock ( ) ; while ( invalidations . hasNext ( ) ) {... | This adds id and template invalidations . |
159,134 | public CacheEntry filterEntry ( String cacheName , CacheEntry cacheEntry ) { InvalidationTableList invalidationTableList = getInvalidationTableList ( cacheName ) ; try { invalidationTableList . readWriteLock . readLock ( ) . lock ( ) ; return internalFilterEntry ( cacheName , invalidationTableList , cacheEntry ) ; } fi... | This ensures the specified CacheEntrys have not been invalidated . |
159,135 | public ArrayList filterEntryList ( String cacheName , ArrayList incomingList ) { InvalidationTableList invalidationTableList = getInvalidationTableList ( cacheName ) ; try { invalidationTableList . readWriteLock . readLock ( ) . lock ( ) ; Iterator it = incomingList . iterator ( ) ; while ( it . hasNext ( ) ) { Object ... | This ensures all incoming CacheEntrys have not been invalidated . |
159,136 | private final CacheEntry internalFilterEntry ( String cacheName , InvalidationTableList invalidationTableList , CacheEntry cacheEntry ) { InvalidateByIdEvent idEvent = null ; if ( cacheEntry == null ) { if ( tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "internalFilterEntry(): Filtered cacheName=" + cacheName + " CE ==... | This is a helper method that filters a single CacheEntry . It is called by the filterEntry and filterEntryList methods . |
159,137 | public ExternalInvalidation filterExternalCacheFragment ( String cacheName , ExternalInvalidation externalCacheFragment ) { InvalidationTableList invalidationTableList = getInvalidationTableList ( cacheName ) ; try { invalidationTableList . readWriteLock . readLock ( ) . lock ( ) ; return internalFilterExternalCacheFra... | This ensures that the specified ExternalCacheFragment has not been invalidated . |
159,138 | public ArrayList filterExternalCacheFragmentList ( String cacheName , ArrayList incomingList ) { InvalidationTableList invalidationTableList = getInvalidationTableList ( cacheName ) ; try { invalidationTableList . readWriteLock . readLock ( ) . lock ( ) ; Iterator it = incomingList . iterator ( ) ; while ( it . hasNext... | This ensures all incoming ExternalCacheFragments have not been invalidated . |
159,139 | private final ExternalInvalidation internalFilterExternalCacheFragment ( String cacheName , InvalidationTableList invalidationTableList , ExternalInvalidation externalCacheFragment ) { if ( externalCacheFragment == null ) { return null ; } long timeStamp = externalCacheFragment . getTimeStamp ( ) ; if ( collision ( inv... | This is a helper method that filters a single ExternalCacheFragment . It is called by the filterExternalCacheFragment and filterExternalCacheFragmentList methods . |
159,140 | private final boolean collision ( Map < Object , InvalidationEvent > hashtable , Enumeration enumeration , long timeStamp ) { while ( enumeration . hasMoreElements ( ) ) { Object key = enumeration . nextElement ( ) ; InvalidationEvent invalidationEvent = ( InvalidationEvent ) hashtable . get ( key ) ; if ( ( invalidati... | This is a helper method that checks for a collision . |
159,141 | private InvalidationTableList getInvalidationTableList ( String cacheName ) { InvalidationTableList invalidationTableList = cacheinvalidationTables . get ( cacheName ) ; if ( invalidationTableList == null ) { synchronized ( this ) { invalidationTableList = new InvalidationTableList ( ) ; cacheinvalidationTables . put (... | Retrieve the InvalidationTableList by the specified cacheName . |
159,142 | public static File getBootstrapJar ( ) { if ( launchHome == null ) { if ( launchURL == null ) { launchURL = getLocationFromClass ( KernelUtils . class ) ; } launchHome = FileUtils . getFile ( launchURL ) ; } return launchHome ; } | The location of the launch jar is only obtained once . |
159,143 | public static File getBootstrapLibDir ( ) { if ( libDir . get ( ) == null ) { libDir = StaticValue . mutateStaticValue ( libDir , new Utils . FileInitializer ( getBootstrapJar ( ) . getParentFile ( ) ) ) ; } return libDir . get ( ) ; } | The lib dir is the parent of the bootstrap jar |
159,144 | public static Properties getProperties ( final InputStream is ) throws IOException { Properties p = new Properties ( ) ; try { if ( is != null ) { p . load ( is ) ; for ( Entry < Object , Object > entry : p . entrySet ( ) ) { String s = ( ( String ) entry . getValue ( ) ) . trim ( ) ; if ( s . length ( ) > 1 && s . sta... | Read properties from input stream . Will close the input stream before returning . |
159,145 | private static String getClassFromLine ( String line ) { line = line . trim ( ) ; if ( line . length ( ) == 0 || line . startsWith ( "#" ) ) return null ; String [ ] className = line . split ( "[\\s#]" ) ; if ( className . length >= 1 ) return className [ 0 ] ; return null ; } | Read a service class from the given line . Must ignore whitespace and skip comment lines or end of line comments . |
159,146 | public final void checkSpillLimits ( ) { long currentTotal ; long currentSize ; synchronized ( this ) { currentTotal = _countTotal ; currentSize = _countTotalBytes ; } if ( ! _spilling ) { _movingTotal = _movingTotal + currentTotal ; long movingAverage = _movingTotal / MOVING_AVERAGE_LENGTH ; _movingTotal = _movingTota... | Instead of just triggering spilling when we have a certain number of Items on a stream we now have the ability to trigger spilling if the total size of the Items on a stream goes over a pre - defined limit . This should allow us to control the memory usage of a stream in a more intuitive fashion . |
159,147 | public final void updateTotal ( int oldSizeInBytes , int newSizeInBytes ) throws SevereMessageStoreException { boolean doCallback = false ; synchronized ( this ) { boolean wasBelowHighLimit = ( _countTotalBytes < _watermarkBytesHigh ) ; boolean wasAboveLowLimit = ( _countTotalBytes >= _watermarkBytesLow ) ; _countTotal... | once we have the Item available to determine it from . |
159,148 | public static void addUnspecifiedAttributes ( FeatureDescriptor descriptor , Tag tag , String [ ] standardAttributesSorted , FaceletContext ctx ) { for ( TagAttribute attribute : tag . getAttributes ( ) . getAll ( ) ) { final String name = attribute . getLocalName ( ) ; if ( Arrays . binarySearch ( standardAttributesSo... | Adds all attributes from the given Tag which are NOT listed in standardAttributesSorted as a ValueExpression to the given BeanDescriptor . NOTE that standardAttributesSorted has to be alphabetically sorted in order to use binary search . |
159,149 | public static boolean containsUnspecifiedAttributes ( Tag tag , String [ ] standardAttributesSorted ) { for ( TagAttribute attribute : tag . getAttributes ( ) . getAll ( ) ) { final String name = attribute . getLocalName ( ) ; if ( Arrays . binarySearch ( standardAttributesSorted , name ) < 0 ) { return true ; } } retu... | Returns true if the given Tag contains attributes that are not specified in standardAttributesSorted . NOTE that standardAttributesSorted has to be alphabetically sorted in order to use binary search . |
159,150 | public static void addDevelopmentAttributes ( FeatureDescriptor descriptor , FaceletContext ctx , TagAttribute displayName , TagAttribute shortDescription , TagAttribute expert , TagAttribute hidden , TagAttribute preferred ) { if ( displayName != null ) { descriptor . setDisplayName ( displayName . getValue ( ctx ) ) ... | Applies the displayName shortDescription expert hidden and preferred attributes to the BeanDescriptor . |
159,151 | public static void addDevelopmentAttributesLiteral ( FeatureDescriptor descriptor , TagAttribute displayName , TagAttribute shortDescription , TagAttribute expert , TagAttribute hidden , TagAttribute preferred ) { if ( displayName != null ) { descriptor . setDisplayName ( displayName . getValue ( ) ) ; } if ( shortDesc... | Applies the displayName shortDescription expert hidden and preferred attributes to the BeanDescriptor if they are all literal values . Thus no FaceletContext is necessary . |
159,152 | public static boolean areAttributesLiteral ( TagAttribute ... attributes ) { for ( TagAttribute attribute : attributes ) { if ( attribute != null && ! attribute . isLiteral ( ) ) { return false ; } } return true ; } | Returns true if all specified attributes are either null or literal . |
159,153 | protected static FacesServletMapping calculateFacesServletMapping ( String servletPath , String pathInfo ) { if ( pathInfo != null ) { return FacesServletMapping . createPrefixMapping ( servletPath ) ; } else { int slashPos = servletPath . lastIndexOf ( '/' ) ; int extensionPos = servletPath . lastIndexOf ( '.' ) ; if ... | Determines the mapping of the FacesServlet in the web . xml configuration file . However there is no need to actually parse this configuration file as runtime information is sufficient . |
159,154 | private boolean isCDIEnabled ( Collection < WebSphereBeanDeploymentArchive > bdas ) { boolean anyHasBeans = false ; for ( WebSphereBeanDeploymentArchive bda : bdas ) { boolean hasBeans = false ; if ( bda . getType ( ) != ArchiveType . RUNTIME_EXTENSION ) { hasBeans = isCDIEnabled ( bda ) ; } anyHasBeans = anyHasBeans |... | Do any of the specified BDAs or any of BDAs accessible by them have any beans |
159,155 | private boolean isCDIEnabled ( WebSphereBeanDeploymentArchive bda ) { Boolean hasBeans = cdiStatusMap . get ( bda . getId ( ) ) ; if ( hasBeans == null ) { hasBeans = bda . hasBeans ( ) || bda . isExtension ( ) ; cdiStatusMap . put ( bda . getId ( ) , hasBeans ) ; hasBeans = hasBeans || isCDIEnabled ( bda . getWebSpher... | Does the specified BDA or any of BDAs accessible by it have any beans or it is an extension which could add beans |
159,156 | public boolean isCDIEnabled ( String bdaId ) { boolean hasBeans = false ; if ( isCDIEnabled ( ) ) { Boolean hasBeansBoolean = cdiStatusMap . get ( bdaId ) ; if ( hasBeansBoolean == null ) { WebSphereBeanDeploymentArchive bda = deploymentDBAs . get ( bdaId ) ; if ( bda == null ) { hasBeans = false ; } else { hasBeans = ... | Does the specified BDA or any of BDAs accessible by it have any beans or an extension which might add beans . |
159,157 | private BeanDeploymentArchive createBDAOntheFly ( Class < ? > beanClass ) throws CDIException { BeanDeploymentArchive bdaToReturn = findCandidateBDAtoAddThisClass ( beanClass ) ; if ( bdaToReturn != null ) { return bdaToReturn ; } else { return createNewBdaAndMakeWiring ( beanClass ) ; } } | Create a bda and wire it in the deployment graph |
159,158 | private BeanDeploymentArchive createNewBdaAndMakeWiring ( Class < ? > beanClass ) { try { OnDemandArchive onDemandArchive = new OnDemandArchive ( cdiRuntime , application , beanClass ) ; WebSphereBeanDeploymentArchive newBda = BDAFactory . createBDA ( this , onDemandArchive , cdiRuntime ) ; ClassLoader beanClassCL = on... | Create a new bda and put the beanClass to the bda and then wire this bda in the deployment according to the classloading hierarchy |
159,159 | private BeanDeploymentArchive findCandidateBDAtoAddThisClass ( Class < ? > beanClass ) throws CDIException { for ( WebSphereBeanDeploymentArchive wbda : getWebSphereBeanDeploymentArchives ( ) ) { if ( wbda . getClassLoader ( ) == beanClass . getClassLoader ( ) ) { wbda . addToBeanClazzes ( beanClass ) ; return wbda ; }... | Find the bda with the same classloader as the beanClass and then add the beanclasses to it |
159,160 | private void makeWiring ( WebSphereBeanDeploymentArchive wireFromBda , WebSphereBeanDeploymentArchive wireToBda , ClassLoader wireToBdaCL , ClassLoader wireFromBdaCL ) { while ( wireFromBdaCL != null ) { if ( wireFromBdaCL == wireToBdaCL ) { wireFromBda . addBeanDeploymentArchive ( wireToBda ) ; break ; } else { wireFr... | Make a wiring from the wireFromBda to the wireToBda if the wireFromBda s classloader is the descendant of the wireToBda s classloader |
159,161 | public void addBeanDeploymentArchive ( WebSphereBeanDeploymentArchive bda ) throws CDIException { deploymentDBAs . put ( bda . getId ( ) , bda ) ; extensionClassLoaders . add ( bda . getClassLoader ( ) ) ; ArchiveType type = bda . getType ( ) ; if ( type != ArchiveType . SHARED_LIB && type != ArchiveType . RUNTIME_EXTE... | Add a BeanDeploymentArchive to this deployment |
159,162 | public void addBeanDeploymentArchives ( Set < WebSphereBeanDeploymentArchive > bdas ) throws CDIException { for ( WebSphereBeanDeploymentArchive bda : bdas ) { addBeanDeploymentArchive ( bda ) ; } } | Add a Set of BDAs to the deployment |
159,163 | public void scan ( ) throws CDIException { Collection < WebSphereBeanDeploymentArchive > allBDAs = new ArrayList < WebSphereBeanDeploymentArchive > ( deploymentDBAs . values ( ) ) ; for ( WebSphereBeanDeploymentArchive bda : allBDAs ) { bda . scanForBeanDefiningAnnotations ( true ) ; } for ( WebSphereBeanDeploymentArch... | Scan all the BDAs in the deployment to see if there are any bean classes . |
159,164 | public void initializeInjectionServices ( ) throws CDIException { Set < ReferenceContext > cdiReferenceContexts = new HashSet < ReferenceContext > ( ) ; for ( WebSphereBeanDeploymentArchive bda : getApplicationBDAs ( ) ) { if ( bda . getType ( ) != ArchiveType . MANIFEST_CLASSPATH && bda . getType ( ) != ArchiveType . ... | Initialize the Resource Injection Service with each BDA s bean classes . |
159,165 | public void shutdown ( ) { if ( this . bootstrap != null ) { AccessController . doPrivileged ( new PrivilegedAction < Void > ( ) { public Void run ( ) { bootstrap . shutdown ( ) ; return null ; } } ) ; this . bootstrap = null ; this . deploymentDBAs . clear ( ) ; this . applicationBDAs . clear ( ) ; this . classloader ... | Shutdown and clean up the whole deployment . The deployment will not be usable after this call has been made . |
159,166 | boolean isConfigValid ( ConvergedClientConfig config ) { boolean valid = true ; String clientId = config . getClientId ( ) ; String clientSecret = config . getClientSecret ( ) ; String authorizationEndpoint = config . getAuthorizationEndpointUrl ( ) ; String jwksUri = config . getJwkEndpointUrl ( ) ; if ( clientId == n... | Check for some things that will always fail and emit message about bad config . Do here so 1 ) classic oidc messages don t change and 2 ) put error message closer in log to failure . |
159,167 | protected void cleanOutBifurcatedMessages ( BifurcatedConsumerSessionImpl owner , boolean bumpRedeliveryOnClose ) throws SIResourceException , SISessionDroppedException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "cleanOutBifurcatedMessages" , new Object [ ] { new I... | When a bifurcated consumer is closed all locked messages owned by that consumer must be unlocked |
159,168 | protected int getNumberOfLockedMessages ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "getNumberOfLockedMessages" ) ; int count = 0 ; synchronized ( this ) { LMEMessage message ; message = firstMsg ; while ( message != null ) { count ++ ; message = message . next ... | Return the number of locked messages that are part of this locked message enumeration . The count will start from thr firstMsg unlike th getRemainingMessageCount which starts from the currentMsg . |
159,169 | protected void removeMessage ( LMEMessage message ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "removeMessage" , new Object [ ] { new Integer ( hashCode ( ) ) , message , this } ) ; if ( message == callbackEntryMsg ) callbackEntryMsg = message . previous ; if ( mes... | Remove a message object from the list |
159,170 | protected void resetCallbackCursor ( ) throws SIResourceException , SISessionDroppedException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "resetCallbackCursor" , new Integer ( hashCode ( ) ) ) ; synchronized ( this ) { unlockAllUnread ( ) ; callbackEntryMsg = lastMs... | This is called when a consumeMessages call has completed it returns the LME to a consistent state ready for the next consumeMessages . |
159,171 | final JsMessage setPropertiesInMessage ( LMEMessage theMessage ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "setPropertiesInMessage" , theMessage ) ; boolean copyMade = false ; JsMessageWrapper jsMessageWrapper = ( JsMessageWrapper ) theMessage . message ; JsMessag... | Sets the redelivered count and the message wait time if required . |
159,172 | protected void unlockAll ( boolean closingSession ) throws SIResourceException , SIMPMessageNotLockedException , SISessionDroppedException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "unlockAll" , new Object [ ] { new Integer ( hashCode ( ) ) , this } ) ; int unlock... | Unlock all the messages in the list |
159,173 | private void unlockAllUnread ( ) throws SIResourceException , SISessionDroppedException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "unlockAllUnread" , new Object [ ] { new Integer ( hashCode ( ) ) , this } ) ; int unlockedMessages = 0 ; synchronized ( this ) { mess... | Method to unlock all messages which haven t been read |
159,174 | public boolean containsValue ( Token value , Transaction transaction ) throws ObjectManagerException { try { for ( Iterator iterator = entrySet ( ) . iterator ( ) ; ; ) { Entry entry = ( Entry ) iterator . next ( transaction ) ; Token entryValue = entry . getValue ( ) ; if ( value == entryValue ) { return true ; } } } ... | Determines if the Map contains the Token |
159,175 | public long countAllMessagesOnStream ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "countAllMessagesOnStream" ) ; long count = 0 ; _targetStream . setCursor ( 0 ) ; TickRange tr = _targetStream . getNext ( ) ; while ( tr . endstamp < RangeList . INFINITY ) { if ( ... | Counts the number of messages in the value state on the stream . |
159,176 | public final void incrementUnlockCount ( long tick ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "incrementUnlockCount" , Long . valueOf ( tick ) ) ; _targetStream . setCursor ( tick ) ; TickRange tickRange = _targetStream . getNext ( ) ; if ( tickRange . type == Ti... | sets the unlock count of the value tick s msg . |
159,177 | public void processRequestAck ( long tick , long dmeVersion ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "processRequestAck" , new Object [ ] { Long . valueOf ( tick ) , Long . valueOf ( dmeVersion ) } ) ; if ( dmeVersion >= _latestDMEVersion ) { _targetStream . se... | A ControlRequestAck message tells the RME to slow down its get repetition timeout since we now know that the DME has received the request . |
159,178 | public void processResetRequestAck ( long dmeVersion , SendDispatcher sendDispatcher ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "processResetRequestAck" , Long . valueOf ( dmeVersion ) ) ; if ( dmeVersion >= _latestDMEVersion ) { if ( dmeVersion > _latestDMEVersi... | A ControlResetRequestAck message tells the RME to start re - sending get requests with an eager timeout since the DME has crashed and recovered . |
159,179 | public AnycastInputHandler getAnycastInputHandler ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , "getAnycastInputHandler" ) ; SibTr . exit ( tc , "getAnycastInputHandler" , _parent ) ; } return _parent ; } | Returns the AnycastInputHandler associated with this AIStream |
159,180 | public void messagingEngineStarting ( final JsMessagingEngine messagingEngine ) { final String methodName = "messagingEngineStarting" ; if ( TraceComponent . isAnyTracingEnabled ( ) && TRACE . isEntryEnabled ( ) ) { SibTr . entry ( this , TRACE , methodName , messagingEngine ) ; } try { addMessagingEngine ( messagingEn... | Called to indicate that a messaging engine has been started . Adds it to the set of active messaging engines . |
159,181 | public void messagingEngineStopping ( final JsMessagingEngine messagingEngine , final int mode ) { final String methodName = "messagingEngineStopping" ; if ( TraceComponent . isAnyTracingEnabled ( ) && TRACE . isEntryEnabled ( ) ) { SibTr . entry ( this , TRACE , methodName , new Object [ ] { messagingEngine , mode } )... | Called to indicate that a messaging engine is stopping . Removes it from the set of active messaging engines and closes any open connection . |
159,182 | private SQLException classNotFound ( Object interfaceNames , Set < String > packagesSearched , String dsId , Throwable cause ) { if ( cause instanceof SQLException ) return ( SQLException ) cause ; String sharedLibId = sharedLib . id ( ) ; Collection < String > driverJARs = getClasspath ( sharedLib , false ) ; String m... | Returns an exception to raise when the data source class is not found . |
159,183 | public ConnectionPoolDataSource createConnectionPoolDataSource ( Properties props , String dataSourceID ) throws SQLException { lock . readLock ( ) . lock ( ) ; try { if ( ! isInitialized ) try { lock . readLock ( ) . unlock ( ) ; lock . writeLock ( ) . lock ( ) ; if ( ! isInitialized ) { if ( ! loadFromApp ( ) ) class... | Create a ConnectionPoolDataSource |
159,184 | public DataSource createDataSource ( Properties props , String dataSourceID ) throws SQLException { lock . readLock ( ) . lock ( ) ; try { if ( ! isInitialized ) try { lock . readLock ( ) . unlock ( ) ; lock . writeLock ( ) . lock ( ) ; if ( ! isInitialized ) { if ( ! loadFromApp ( ) ) classloader = AdapterUtil . getCl... | Create a DataSource |
159,185 | public Object getDriver ( String url , Properties props , String dataSourceID ) throws Exception { lock . readLock ( ) . lock ( ) ; try { if ( ! isInitialized ) try { lock . readLock ( ) . unlock ( ) ; lock . writeLock ( ) . lock ( ) ; if ( ! isInitialized ) { if ( ! loadFromApp ( ) ) classloader = AdapterUtil . getCla... | Load the Driver instance for the specified URL . |
159,186 | public static Collection < String > getClasspath ( Library sharedLib , boolean upperCaseFileNamesOnly ) { final boolean trace = TraceComponent . isAnyTracingEnabled ( ) ; if ( trace && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "getClasspath" , sharedLib ) ; Collection < String > classpath = new LinkedList < String > ... | Returns a list of file names for the specified library . |
159,187 | private void modified ( Dictionary < String , ? > newProperties , boolean logMessage ) { final boolean trace = TraceComponent . isAnyTracingEnabled ( ) ; if ( trace && tc . isEntryEnabled ( ) ) Tr . entry ( this , tc , "modified" , newProperties ) ; boolean replaced = false ; lock . writeLock ( ) . lock ( ) ; try { if ... | Clears the configuration of this JDBCDriverService so that it can lazily initialize with the new configuration on next use . |
159,188 | private static void setProperty ( Object obj , PropertyDescriptor pd , String value , boolean doTraceValue ) throws Exception { Object param = null ; String propName = pd . getName ( ) ; if ( tc . isDebugEnabled ( ) ) { if ( "URL" . equals ( propName ) || "url" . equals ( propName ) ) { Tr . debug ( tc , "set " + propN... | Handles the setting of any property for which a public single - parameter setter exists on the DataSource and for which the property data type is either a primitive or has a single - parameter String constructor . |
159,189 | protected void setSharedLib ( Library lib ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) Tr . debug ( this , tc , "setSharedLib" , lib ) ; sharedLib = lib ; } | Declarative Services method for setting the SharedLibrary service |
159,190 | private void shutdownDerbyEmbedded ( ) { final boolean trace = TraceComponent . isAnyTracingEnabled ( ) ; if ( trace && tc . isEntryEnabled ( ) ) Tr . entry ( this , tc , "shutdownDerbyEmbedded" , classloader , embDerbyRefCount ) ; if ( embDerbyRefCount . remove ( classloader ) && ! embDerbyRefCount . contains ( classl... | Shut down the Derby system if the reference count for the class loader drops to 0 . |
159,191 | protected void unsetSharedLib ( Library lib ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) Tr . debug ( this , tc , "unsetSharedLib" , lib ) ; modified ( null , false ) ; } | Declarative Services method for unsetting the SharedLibrary service |
159,192 | private static void retrieveManifestData ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "retrieveManifestData" ) ; try { JmsMetaDataImpl . setProblemDefaults ( ) ; Package thisPackage = Package . getPackage ( packageName ) ; if ( thisPackage != null ) { String temp... | This method retrieves the information stored in the jar manifest and uses it to populate the implementation information to be returned to the user . |
159,193 | public SIBusMessage nextLocked ( ) throws SISessionUnavailableException , SISessionDroppedException , SIConnectionUnavailableException , SIConnectionDroppedException , SIResourceException , SIConnectionLostException , SIErrorException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . ... | Returns the next available locked message in the enumeration . A value of null is returned if there is no next message . |
159,194 | public void unlockCurrent ( ) throws SISessionUnavailableException , SISessionDroppedException , SIConnectionUnavailableException , SIConnectionDroppedException , SIResourceException , SIConnectionLostException , SIIncorrectCallException , SIMessageNotLockedException , SIErrorException { if ( TraceComponent . isAnyTrac... | Unlocks the current message . |
159,195 | public void deleteCurrent ( SITransaction transaction ) throws SISessionUnavailableException , SISessionDroppedException , SIConnectionUnavailableException , SIConnectionDroppedException , SIResourceException , SIConnectionLostException , SILimitExceededException , SIIncorrectCallException , SIMessageNotLockedException... | Deletes the current message . |
159,196 | public void deleteSeen ( SITransaction transaction ) throws SISessionUnavailableException , SISessionDroppedException , SIConnectionUnavailableException , SIConnectionDroppedException , SIResourceException , SIConnectionLostException , SILimitExceededException , SIIncorrectCallException , SIMessageNotLockedException , ... | Deletes all messages seen so far . |
159,197 | private void deleteMessages ( JsMessage [ ] messagesToDelete , SITransaction transaction ) throws SISessionUnavailableException , SISessionDroppedException , SIConnectionUnavailableException , SIConnectionDroppedException , SIResourceException , SIConnectionLostException , SILimitExceededException , SIIncorrectCallExce... | This private method actually performs the delete by asking the conversation helper to flow the request across the wire . However this method does not obtain any locks required to perform this operation and as such should be called by a method that does do this . |
159,198 | public void resetCursor ( ) throws SISessionUnavailableException , SISessionDroppedException , SIConnectionUnavailableException , SIConnectionDroppedException , SIResourceException , SIConnectionLostException , SIErrorException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry (... | This method will reset the cursor and allow the LME to be traversed again . Note that any messages that were deleted or unlocked will not be available again . |
159,199 | public int getRemainingMessageCount ( ) throws SISessionUnavailableException , SISessionDroppedException , SIConnectionUnavailableException , SIConnectionDroppedException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "getRemainingMessageCount" ) ; checkValid ( ... | Returns the amount of messages left in the locked message enumeration . |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.