idx int64 0 41.2k | question stringlengths 73 5.81k | target stringlengths 5 918 |
|---|---|---|
24,200 | private boolean findInList ( String [ ] address , int index , FilterCellSlowStr cell , int endIndex ) { if ( cell . getWildcardCell ( ) != null ) { return true ; } FilterCellSlowStr nextCell = cell . findNextCell ( address [ index ] ) ; if ( nextCell != null ) { if ( index == endIndex ) { return true ; } return findInL... | Determine recursively if an address is in the address tree . |
24,201 | @ FFDCIgnore ( Exception . class ) private Object getObjectInstance ( Context c , Hashtable < ? , ? > envmt , String className , String bindingName , ResourceInfo resourceRefInfo , IndirectReference ref ) throws Exception { try { boolean hasJNDIScheme ; if ( bindingName . startsWith ( "java:" ) ) { Object instance = ge... | Get an indirect object instance . |
24,202 | private Object createResource ( String refName , String className , String bindingName , ResourceInfo resourceRefInfo ) throws Exception { String nameFilter = FilterUtils . createPropertyFilter ( ResourceFactory . JNDI_NAME , bindingName ) ; String createsFilter = className == null ? null : FilterUtils . createProperty... | Try to obtain an object instance by creating a resource using a ResourceFactory . |
24,203 | private Object createDefaultResource ( String className , ResourceInfo resourceRefInfo ) throws Exception { if ( className != null ) { String javaCompDefaultFilter = "(" + com . ibm . ws . resource . ResourceFactory . JAVA_COMP_DEFAULT_NAME + "=*)" ; String createsFilter = FilterUtils . createPropertyFilter ( ResourceF... | Try to obtain an object instance by creating a resource using a ResourceFactory for a default resource . |
24,204 | @ FFDCIgnore ( PrivilegedActionException . class ) private Object createResourceWithFilter ( final String filter , final ResourceInfo resourceRefInfo ) throws Exception { try { return AccessController . doPrivileged ( new PrivilegedExceptionAction < Object > ( ) { public Object run ( ) throws Exception { return createR... | Try to obtain an object instance by creating a resource using a ResourceFactory with the specified filter . |
24,205 | private Object getBindingObjectInstance ( Context c , Hashtable < ? , ? > envmt , String className , ResourceInfo resourceRefInfo , Reference bindingRef , InjectionBinding < ? > binding ) throws Exception { Object bindingObject = binding . getBindingObject ( ) ; if ( bindingObject instanceof Reference ) { Reference ref... | Try to obtain an object instance from an injection binding object . |
24,206 | public IServletConfig createConfig ( String servletName ) throws ServletException { return ( ( ( WebApp ) extensionContext ) . getWebExtensionProcessor ( ) . createConfig ( servletName ) ) ; } | A convenience method that creates a ServletConfig object . This also populates the necessary metaData which enables the Servlet associated with the returned config to correctly lookup NameSpace entries . It is highly recommended that extension processors use this method to create the config objects for the targets that... |
24,207 | final protected void closeAndRemoveResultSets ( boolean closeWrapperOnly ) { for ( int i = childWrappers . size ( ) - 1 ; i > - 1 ; i -- ) { try { ( ( WSJdbcObject ) childWrappers . get ( i ) ) . close ( closeWrapperOnly ) ; } catch ( SQLException ex ) { FFDCFilter . processException ( ex , "com.ibm.ws.rsadapter.jdbc.W... | Close the ResultSet for this Statement if it s still around . Close even if the execute is not a query as stated in the java . sql . Statement API . |
24,208 | protected WSJdbcResultSet createResultSetWrapper ( ResultSet rsetImplObject ) { return rsetImplObject == null ? null : mcf . jdbcRuntime . newResultSet ( rsetImplObject , this ) ; } | Creates a wrapper for the supplied ResultSet object . |
24,209 | protected final void enforceStatementProperties ( ) throws SQLException { if ( requestedFetchSize != currentFetchSize ) { stmtImpl . setFetchSize ( requestedFetchSize ) ; currentFetchSize = requestedFetchSize ; } if ( dsConfig . get ( ) . syncQueryTimeoutWithTransactionTimeout && ! queryTimeoutSetByUser ) { final boole... | Update statement properties before executing the statement . This method syncs the query timeout to the transaction timeout when appropriate and updates the current fetchSize according to the requested fetchSize value if needed . This method should be invoked before executing the statement . |
24,210 | public boolean handleAttribute ( DDParser parser , String nsURI , String localName , int index ) throws ParseException { boolean result = false ; if ( nsURI != null ) { return result ; } if ( NAME_ATTRIBUTE_NAME . equals ( localName ) ) { name = parser . parseStringAttributeValue ( index ) ; result = true ; } else if (... | parse the name and address attributes defined in the element . |
24,211 | void wrapAndRun ( Runnable runnable ) { if ( com . ibm . ejs . ras . TraceComponent . isAnyTracingEnabled ( ) && logger . isLoggable ( Level . FINEST ) ) { logger . entering ( CLASS_NAME , "wrapAndRun" , runnable ) ; } try { this . popContextData ( ) ; if ( com . ibm . ejs . ras . TraceComponent . isAnyTracingEnabled (... | Execute a runnable within some context . Other objects could call popContextData and resetContextData on their own but this ensures that they are called in the right order . |
24,212 | public static String formatMessage ( String msgKey ) { String msg ; try { msg = JaxbToolsConstants . messages . getString ( msgKey ) ; } catch ( Exception ex ) { return msgKey ; } return msg ; } | get the localized message provided in the message files in the com . ibm . ws . jaxb . tools . |
24,213 | public void destroy ( ) throws ResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && TRACE . isEntryEnabled ( ) ) { SibTr . entry ( this , TRACE , "destroy" ) ; } for ( Iterator iterator = _connections . iterator ( ) ; iterator . hasNext ( ) ; ) { final SibRaConnection connection = ( SibRaConnection ) it... | Destroys this managed connection . Invalidates any current connection handles and closes the core SPI connection . |
24,214 | public void cleanup ( ) throws ResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && TRACE . isEntryEnabled ( ) ) { SibTr . entry ( this , TRACE , "cleanup" ) ; } for ( Iterator iterator = _connections . iterator ( ) ; iterator . hasNext ( ) ; ) { final SibRaConnection connection = ( SibRaConnection ) it... | Cleans up this managed connection prior to returning it to the free pool . Invalidates any connection handles still associated with the managed connection as in the normal case they would all have been dissociated before cleanup was started . |
24,215 | public void associateConnection ( final Object connection ) throws ResourceAdapterInternalException { if ( TraceComponent . isAnyTracingEnabled ( ) && TRACE . isEntryEnabled ( ) ) { SibTr . entry ( this , TRACE , "associateConnection" , connection ) ; } if ( connection instanceof SibRaConnection ) { final SibRaConnecti... | Associates an existing connection handle with this managed connection . The connection handle may still be associated with another managed connection or may be dissociated . |
24,216 | public void addConnectionEventListener ( final ConnectionEventListener listener ) { if ( TraceComponent . isAnyTracingEnabled ( ) && TRACE . isEntryEnabled ( ) ) { SibTr . entry ( this , TRACE , "addConnectionEventListener" , listener ) ; } _eventListeners . add ( listener ) ; if ( TraceComponent . isAnyTracingEnabled ... | Adds a connection event listener . Typically the connection manager will register itself using this mechanism . |
24,217 | public ManagedConnectionMetaData getMetaData ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && TRACE . isEntryEnabled ( ) ) { SibTr . entry ( this , TRACE , "getMetaData" ) ; } if ( _metaData == null ) { _metaData = new SibRaMetaData ( ) ; } if ( TraceComponent . isAnyTracingEnabled ( ) && TRACE . isEntryEnabled (... | Gets the meta data for this managed connection . |
24,218 | public void dissociateConnections ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && TRACE . isEntryEnabled ( ) ) { SibTr . entry ( this , TRACE , "dissociateConnections" ) ; } for ( Iterator iterator = _connections . iterator ( ) ; iterator . hasNext ( ) ; ) { final SibRaConnection connection = ( SibRaConnection )... | Called by the connection manager to dissociate all the current connection handles from this managed connection . |
24,219 | SITransaction getContainerTransaction ( final ConnectionManager connectionManager ) throws ResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && TRACE . isEntryEnabled ( ) ) { SibTr . entry ( this , TRACE , "getContainerTransaction" , connectionManager ) ; } SITransaction currentTransaction = getCurrentT... | Returns the current container transaction . If we don t already have a transaction and the given connection manager supports it perform a lazy enlist and then check again . |
24,220 | private SITransaction getCurrentTransaction ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && TRACE . isEntryEnabled ( ) ) { SibTr . entry ( this , TRACE , "getCurrentTransaction" ) ; } SITransaction currentTransaction = null ; if ( _localTransaction != null ) { currentTransaction = _localTransaction . getCurrentT... | Returns the current transaction associated with this managed connection . If the connection manager supports lazy enlistment then this may not represent the current transaction on the thread . |
24,221 | void localTransactionStarted ( final SibRaConnection connection ) { if ( TraceComponent . isAnyTracingEnabled ( ) && TRACE . isEntryEnabled ( ) ) { SibTr . entry ( this , TRACE , "localTransactionStarted" , connection ) ; } final ConnectionEvent event = new ConnectionEvent ( this , ConnectionEvent . LOCAL_TRANSACTION_S... | Used to indicate that an application local transaction has been started . Notifies the connection event listeners . |
24,222 | void localTransactionRolledBack ( final SibRaConnection connection ) { if ( TraceComponent . isAnyTracingEnabled ( ) && TRACE . isEntryEnabled ( ) ) { SibTr . entry ( this , TRACE , "localTransactionRolledBack" , connection ) ; } final ConnectionEvent event = new ConnectionEvent ( this , ConnectionEvent . LOCAL_TRANSAC... | Used to indicate that an application local transaction has been rolled back . Notifies the connection event listeners . |
24,223 | void connectionClosed ( final SibRaConnection connection ) { if ( TraceComponent . isAnyTracingEnabled ( ) && TRACE . isEntryEnabled ( ) ) { SibTr . entry ( this , TRACE , "connectionClosed" , connection ) ; } final ConnectionEvent event = new ConnectionEvent ( this , ConnectionEvent . CONNECTION_CLOSED ) ; event . set... | Used to indicate that a connection has been closed . Notifies the connection event listeners and removes the connection from the set of open connections . |
24,224 | final void connectionErrorOccurred ( final Exception exception , boolean callJCAListener ) { final String methodName = "connectionErrorOccurred" ; if ( TraceComponent . isAnyTracingEnabled ( ) && TRACE . isEntryEnabled ( ) ) { SibTr . entry ( this , TRACE , methodName , new Object [ ] { exception , Boolean . valueOf ( ... | Notifies the connection even listeners that a connection error has occurred . |
24,225 | public static void main ( String [ ] args ) throws Exception { ModuleConfigParser mParser = new ModuleConfigParser ( ) ; mParser . parse ( "/com/ibm/websphere/pmi/custom/test/PmiServletModule1.xml" , true ) ; } | a test driver - it should be removed after testing |
24,226 | protected void activate ( ComponentContext context ) throws Exception { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEventEnabled ( ) ) { Tr . event ( this , tc , "Activating" ) ; } processConfig ( context . getProperties ( ) ) ; SystemLogger . setLogService ( logService ) ; } | Activate this DS component . |
24,227 | protected void deactivate ( ComponentContext context , int reason ) throws Exception { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEventEnabled ( ) ) { Tr . event ( this , tc , "Deactivating, reason=" + reason ) ; } this . registry . removeAll ( ) ; } | Deactivate this DS component . |
24,228 | protected synchronized void setVirtualHost ( VirtualHost virtualHost ) { this . virtualHost = virtualHost ; if ( ! activeContextRoots . isEmpty ( ) ) { for ( String contextRoot : activeContextRoots ) { virtualHost . addContextRoot ( contextRoot , this ) ; } } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEven... | Required static reference |
24,229 | public AnnotationVisitor visitAnnotation ( String desc , boolean visible ) { AnnotationInfoVisitor av = visitAnnotation ( getInfo ( ) , desc , visible ) ; annotationInfos . add ( av . getAnnotationInfo ( ) ) ; return av ; } | See the class comment for details of annotation processing . |
24,230 | @ FFDCIgnore ( { UnknownEncoding . class , InvalidName . class } ) public void init ( ORB orb , String configName ) { this . orb = orb ; try { this . codec = CodecFactoryHelper . narrow ( orb . resolve_initial_references ( "CodecFactory" ) ) . create_codec ( CDR_1_2_ENCODING ) ; } catch ( UnknownEncoding e ) { } catch ... | Initialize the socket factory instance . |
24,231 | public void init ( HttpInboundServiceContext context ) { this . isc = context ; this . message = context . getResponse ( ) ; this . body = null ; } | Initialize with a new wrapped message . |
24,232 | private TokenService getTokenServiceForType ( String tokenType ) { TokenService service = services . getService ( tokenType ) ; if ( service != null ) { return service ; } else { Tr . error ( tc , "TOKEN_SERVICE_CONFIG_ERROR_NO_SUCH_SERVICE_TYPE" , tokenType ) ; String formattedMessage = TraceNLS . getFormattedMessage ... | Get the TokenService object which provides for the specified tokenType . |
24,233 | static private StringBuilder formatLineId ( StringBuilder buffer , int value ) { char [ ] chars = new char [ 4 ] ; for ( int i = 3 ; i >= 0 ; i -- ) { chars [ i ] = ( char ) HEX_BYTES [ ( value % 16 ) & 0xF ] ; value >>= 4 ; } return buffer . append ( chars ) ; } | Format the input value as a four digit hex number padding with zeros . |
24,234 | public void update ( ChannelData cc ) { if ( tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "update" , cc ) ; if ( tc . isEntryEnabled ( ) ) SibTr . exit ( this , tc , "update" ) ; this . chfwConfig = cc ; } | Notification that the channel configuration has been updated . |
24,235 | public void write ( int b ) throws IOException { if ( ! ( WCCustomProperties . FINISH_RESPONSE_ON_CLOSE ) || ! outputstreamClosed ) { if ( com . ibm . ejs . ras . TraceComponent . isAnyTracingEnabled ( ) && logger . isLoggable ( Level . FINE ) ) { logger . logp ( Level . FINE , CLASS_NAME , "write" , "write + b ) ; } ... | Writes a byte . This method will block until the byte is actually written . |
24,236 | public void write ( byte [ ] b , int off , int len ) throws IOException { if ( ! ( WCCustomProperties . FINISH_RESPONSE_ON_CLOSE ) || ! outputstreamClosed ) { if ( com . ibm . ejs . ras . TraceComponent . isAnyTracingEnabled ( ) && logger . isLoggable ( Level . FINE ) ) { logger . logp ( Level . FINE , CLASS_NAME , "wr... | Writes an array of bytes . This method will block until all the bytes are actually written . |
24,237 | private void flushBytes ( ) throws IOException { if ( com . ibm . ejs . ras . TraceComponent . isAnyTracingEnabled ( ) && logger . isLoggable ( Level . FINE ) ) { logger . logp ( Level . FINE , CLASS_NAME , "flushBytes" , "flushBytes" ) ; } if ( ! committed ) { if ( ! _hasFlushed && obs != null ) { _hasFlushed = true ;... | Flushes the output stream bytes . |
24,238 | public Object getObjectInstance ( Object refObj , Name name , Context nameCtx , Hashtable env ) throws Exception { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { Tr . entry ( tc , "getObjectInstance" , "" + name ) ; } ExtendedJTATransaction extJTATran = null ; if ( TraceComponent . isAnyTr... | Return the ExtendedJTATransaction object . |
24,239 | public static ExtendedJTATransaction getExtendedJTATransaction ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "getExtendedJTATransaction" , instance ) ; } return instance ; } | Get the singleton instance of ExtendedJTATransaction |
24,240 | public void add ( int anInt ) { if ( tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "add" ) ; if ( tc . isDebugEnabled ( ) ) SibTr . debug ( tc , "Params: int" , anInt ) ; if ( currentCursor == arraySize ) { allArrays . add ( current ) ; current = new int [ arraySize ] ; currentCursor = 0 ; } current [ currentCursor ] ... | Adds an int to the array . |
24,241 | public int get ( int index ) throws NoSuchElementException { if ( tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "get" ) ; int retValue = 0 ; int arrayNumber = index / arraySize ; if ( ( index + 1 ) > elements ) { throw new NoSuchElementException ( ) ; } else if ( index < 0 ) { throw new NoSuchElementException ( ) ; } ... | Gets an int from the array . |
24,242 | public int length ( ) { if ( tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "length" ) ; if ( tc . isDebugEnabled ( ) ) SibTr . debug ( tc , "rc=" , elements ) ; if ( tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "length" ) ; return elements ; } | Returns the number of elements in the array |
24,243 | private void determineChannelAccessor ( ) throws ChannelFrameworkException , ChannelFactoryException { OutboundChannelDefinition first = this . outboundChannelDefs . getFirst ( ) ; Class < ? > factoryClass = first . getOutboundFactory ( ) ; if ( factoryClass == null ) { throw new ChannelFrameworkException ( "No factory... | Identify the channel accessor class based on the application side outbound channel definition array . |
24,244 | private void determineIsSSLEnabled ( ) { int i = 0 ; for ( OutboundChannelDefinition def : this . outboundChannelDefs ) { if ( SSLChannelFactory . class . isAssignableFrom ( def . getOutboundFactory ( ) ) ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "Found SSLChanne... | Identify if one of the outbound channel definitions has a factory that implements the SSLChannelFactory . |
24,245 | private void determineIsLocal ( ) { int i = 0 ; for ( OutboundChannelDefinition def : this . outboundChannelDefs ) { if ( LocalChannelFactory . class . isAssignableFrom ( def . getOutboundFactory ( ) ) ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "Found LocalChannel... | Identify if one of the outbound channel definitions has a factory that implements the LocalChannelFactory . |
24,246 | private void assignAddress ( String addressString ) throws ChannelFrameworkException , UnknownHostException { if ( addressString == null ) { throw new ChannelFrameworkException ( "No address available in properties." ) ; } if ( "*" . equals ( addressString ) ) { this . address = InetAddress . getLocalHost ( ) ; } else ... | Assign the value of address based on the String parameter . |
24,247 | public Integer generateKey ( FacesContext facesContext ) { ExternalContext externalContext = facesContext . getExternalContext ( ) ; Object sessionObj = externalContext . getSession ( true ) ; Integer sequence = null ; synchronized ( sessionObj ) { Map < String , Object > map = externalContext . getSessionMap ( ) ; seq... | Take the counter from session scope and increment |
24,248 | private void cacheInsert ( MasterKey key , StatefulBeanO sfbean ) { CacheElement cacheElement = cache . insert ( key , sfbean ) ; sfbean . ivCacheElement = cacheElement ; sfbean . ivCacheKey = key ; if ( ! sfbean . getHome ( ) . getBeanMetaData ( ) . isPassivationCapable ( ) ) { cache . markElementEvictionIneligible ( ... | Insert a stateful bean with the specified key into the cache . The caller must be holding the lock associated with the key . |
24,249 | public void atPassivate ( BeanId beanId ) throws RemoteException { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "atPassivate " + beanId ) ; BeanO bean = null ; MasterKey key = new MasterKey ( beanId ) ; try { synchronized ( locks . ge... | This method will be invoked when the server invokes one of passivate or passivateAll on the ManagedContainer interface . |
24,250 | @ Reference ( cardinality = ReferenceCardinality . OPTIONAL , policy = ReferencePolicy . DYNAMIC , policyOption = ReferencePolicyOption . GREEDY ) protected void setCDIBatchArtifactFactory ( CDIBatchArtifactFactory preferredArtifactFactory ) { this . cdiBatchArtifactFactory = preferredArtifactFactory ; } | DS injection . |
24,251 | public AnnotationValueImpl addAnnotationValue ( String name , Object value ) { AnnotationValueImpl annotationValue = new AnnotationValueImpl ( value ) ; addAnnotationValue ( name , annotationValue ) ; return annotationValue ; } | base value . |
24,252 | public AnnotationValueImpl addAnnotationValue ( String name , String enumClassName , String enumName ) { AnnotationValueImpl annotationValue = new AnnotationValueImpl ( enumClassName , enumName ) ; addAnnotationValue ( name , annotationValue ) ; return annotationValue ; } | the enumeration class name and the enumeration literal value . |
24,253 | public void log ( TraceComponent logger ) { Tr . debug ( logger , MessageFormat . format ( "Annotation [ {0} ]" , getAnnotationClassName ( ) ) ) ; for ( String valueName : this . values . keySet ( ) ) { AnnotationValueImpl nextValue = getValue ( valueName ) ; String valueEnumClassName = nextValue . getEnumClassName ( )... | because of the global state access . |
24,254 | public WSJobExecution updateJobExecutionAndInstanceNotSetToServerYet ( long jobExecutionId , Date date ) throws ExecutionAssignedToServerException { return updateJobExecutionAndInstanceOnStopBeforeServerAssigned ( jobExecutionId , date ) ; } | DELETE ME - rename to better name |
24,255 | private void setupData ( ValidationConfig config , ClassLoader classLoader ) { if ( config != null ) { versionID = config . getVersionID ( ) ; defaultProvider = config . getDefaultProvider ( ) ; defaultProvider = defaultProvider != null ? defaultProvider . trim ( ) : defaultProvider ; messageInterpolator = config . get... | Internal method to set up the object s data |
24,256 | protected Class < ? > loadClass ( String className ) throws ClassNotFoundException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { Tr . entry ( tc , "loadClass" , className ) ; } Class < ? > theClass = null ; try { if ( appClassloader != null ) { if ( TraceComponent . isAnyTracingEnabled ... | Load the class on the application class loader given the class name . If the application class loader wasn t passed in it is assumed that the current TCCL is already set so that is what is used . |
24,257 | private void checkForConnectionInFreePool ( MCWrapper mcw ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { Tr . entry ( this , tc , "checkForConnectionInFreePool" ) ; } int hashMapBucket = mcw . getHashMapBucket ( ) ; if ( freePool [ hashMapBucket ] . removeMCWrapperFromList ( mcw ) ) { ... | Check for a connection in the free pool . If a connection is found cleanup and destroy the connection and remove the mcwrapper from the free pool . |
24,258 | private boolean checkForActiveConnections ( int value ) { boolean activeConnections = false ; if ( value == 0 ) { mcToMCWMapWrite . lock ( ) ; try { Collection < MCWrapper > mcWrappers = mcToMCWMap . values ( ) ; Iterator < MCWrapper > mcWrapperIt = mcWrappers . iterator ( ) ; while ( mcWrapperIt . hasNext ( ) ) { MCWr... | Look for active connection requests and connections in the shared and un - shared pools . |
24,259 | protected void startReclaimConnectionThread ( ) { if ( tc . isEntryEnabled ( ) ) { Tr . entry ( this , tc , "startReclaimConnectionThread" ) ; } synchronized ( taskTimerLockObject ) { if ( ! reaperThreadStarted ) { if ( reapTime > 0 ) { if ( ( this . unusedTimeout > 0 ) || ( this . agedTimeout > 0 ) ) { final PoolManag... | Starts the reclaim collection thread that remove unused connection based on the UnusedTimeout agedTime and the ReapTime . |
24,260 | private boolean needToReclaimConnections ( ) { boolean removemcw = false ; for ( int j = 0 ; j < maxFreePoolHashSize ; ++ j ) { synchronized ( freePool [ j ] . freeConnectionLockObject ) { int localtotalConnectionCount = totalConnectionCount . get ( ) ; int mcwlSize = freePool [ j ] . mcWrapperList . size ( ) ; for ( i... | Do we need to reclaim connections . |
24,261 | protected final int computeHashCode ( Subject subject , ConnectionRequestInfo cri ) { final boolean isTracingEnabled = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTracingEnabled && tc . isEntryEnabled ( ) ) { Tr . entry ( this , tc , "computeHashCode" ) ; } if ( isTracingEnabled && tc . isDebugEnabled ( ) ) { Str... | 173212 - computeHashCode |
24,262 | public Object getMCWFromMctoMCWMap ( Object mc ) { Object mcw = null ; mcToMCWMapRead . lock ( ) ; try { mcw = mcToMCWMap . get ( mc ) ; } finally { mcToMCWMapRead . unlock ( ) ; } return mcw ; } | Get the mcw from the hash map |
24,263 | public void putMcToMCWMap ( ManagedConnection mc , MCWrapper mcw ) { mcToMCWMapWrite . lock ( ) ; try { mcToMCWMap . put ( mc , mcw ) ; } finally { mcToMCWMapWrite . unlock ( ) ; } } | Put the mcw in the hash map |
24,264 | public void removeMcToMCWMap ( Object mc ) { if ( tc . isEntryEnabled ( ) ) { Tr . entry ( this , tc , "removeMcToMCWMap" ) ; } mcToMCWMapWrite . lock ( ) ; try { mcToMCWMap . remove ( mc ) ; } finally { mcToMCWMapWrite . unlock ( ) ; } if ( tc . isDebugEnabled ( ) ) { Tr . debug ( this , tc , mcToMCWMap . size ( ) + "... | Remove the mcw from the hash map |
24,265 | public void run ( ) { final boolean isTracingEnabled = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTracingEnabled && tc . isEntryEnabled ( ) ) { Tr . entry ( this , tc , "run" , "alarm" ) ; } if ( isTracingEnabled && tc . isDebugEnabled ( ) ) { Tr . debug ( this , tc , "run: alarm, Pool contents ==> " + this . to... | This method can be submitted to a ScheduledExecutorService to run in the future . |
24,266 | private void createReaperAlarm ( ) { final boolean isTracingEnabled = TraceComponent . isAnyTracingEnabled ( ) ; if ( pmQuiesced ) { if ( isTracingEnabled && tc . isDebugEnabled ( ) ) Tr . debug ( tc , " PM has been Quiesced, so cancel old reaper alarm." ) ; if ( am != null ) am . cancel ( false ) ; return ; } if ( non... | Creates a new alarm thread . |
24,267 | synchronized static TraceSpecification setTraceSpec ( String spec ) { if ( WsLogManager . isConfiguredByLoggingProperties ( ) ) { return null ; } if ( ( spec == null || spec . equals ( traceString ) ) && Tr . activeTraceSpec . isSensitiveTraceSuppressed ( ) == suppressSensitiveTrace ) { return null ; } traceString = sp... | Set the trace specification of the service to the input value . |
24,268 | protected Link insert ( Token newToken , Link insertPoint , Transaction transaction ) throws ObjectManagerException { final String methodName = "insert" ; if ( Tracing . isAnyTracingEnabled ( ) && trace . isEntryEnabled ( ) ) trace . entry ( this , cclass , methodName , new Object [ ] { newToken , insertPoint , transac... | Insert before the given link . Caller must be synchronized on list . |
24,269 | void undoAdd ( Link newLink ) throws ObjectManagerException { final String methodName = "undoAdd" ; if ( Tracing . isAnyTracingEnabled ( ) && trace . isEntryEnabled ( ) ) trace . entry ( this , cclass , methodName , new Object [ ] { newLink } ) ; if ( newLink . next == null ) { tail = newLink . previous ; } else { Link... | Reverse the action of addition to the list used after an add has failed to log anything . Does not perform any logging . The caller must be synchronized on List . |
24,270 | private synchronized void unRemove ( Link link ) throws StateErrorException , ObjectManagerException { link . setState ( Link . nextStateForRequestUnDelete ) ; availableHead = head ; skipToBeDeleted ( ) ; if ( link . state == Link . stateAdded ) { incrementAvailableSize ( ) ; owningToken . objectStore . reserve ( - ( i... | Restore a link so that it is visible again in the list . |
24,271 | protected Link nextLink ( Link start , Transaction transaction , long transactionUnlockPoint ) throws ObjectManagerException { if ( Tracing . isAnyTracingEnabled ( ) && trace . isEntryEnabled ( ) ) trace . entry ( this , cclass , "nextLink" , new Object [ ] { start , transaction , new Long ( transactionUnlockPoint ) , ... | Find the next link after the start link visible to a transaction before the unlockPoint . |
24,272 | protected Link previousLink ( Link start , Transaction transaction , long transactionUnlockPoint ) throws ObjectManagerException { if ( Tracing . isAnyTracingEnabled ( ) && trace . isEntryEnabled ( ) ) trace . entry ( this , cclass , "previousLink" , new Object [ ] { start , transaction , new Long ( transactionUnlockPo... | Find the previous link before the start link visible to a transaction before the unlockPoint . |
24,273 | protected Link nextLink ( Link start ) throws ObjectManagerException { if ( Tracing . isAnyTracingEnabled ( ) && trace . isEntryEnabled ( ) ) trace . entry ( this , cclass , "nextLink" , new Object [ ] { start } ) ; Token nextToken = null ; if ( start == null ) { nextToken = head ; } else { nextToken = start . next ; }... | Find the next link after the start link even if it is part of a transaction . A dirty scan . |
24,274 | protected Link previousLink ( Link start ) throws ObjectManagerException { if ( Tracing . isAnyTracingEnabled ( ) && trace . isEntryEnabled ( ) ) trace . entry ( this , cclass , "previousLink" , new Object [ ] { start } ) ; Token previousToken = null ; if ( start == null ) { previousToken = head ; } else { previousToke... | Find the previous link before the start link even if it is part of a transaction . A dirty scan . |
24,275 | protected Link firstAvailableLink ( ) throws ObjectManagerException { if ( Tracing . isAnyTracingEnabled ( ) && trace . isEntryEnabled ( ) ) trace . entry ( this , cclass , "firstAvailableLink" ) ; if ( availableHead == null ) { availableHead = head ; skipToBeDeleted ( ) ; } Link nextLink = null ; if ( availableHead !=... | Find the first available link after the start of the list . This search might return a link locked by a transaction toBeAdded . |
24,276 | protected void skipToBeDeleted ( ) throws ObjectManagerException { if ( Tracing . isAnyTracingEnabled ( ) && trace . isEntryEnabled ( ) ) trace . entry ( this , cclass , "skipToBeDeleted" ) ; Token nextToken = availableHead ; skipToBeDeleted : while ( nextToken != null ) { Link nextLink = ( Link ) ( nextToken . getMana... | Move the availableHead past any ToBeDeleted links . Caller must be synchronized on LinkedList . |
24,277 | public synchronized boolean validate ( java . io . PrintStream printStream ) throws ObjectManagerException { if ( Tracing . isAnyTracingEnabled ( ) && trace . isEntryEnabled ( ) ) trace . entry ( this , cclass , "validate" , new Object [ ] { printStream } ) ; boolean valid = true ; Link tailLink = null ; if ( tail != n... | Check that the head leads to the tail in both the forwards and backwards directions . Check that the number of messages in between matches the size . |
24,278 | void reserveSpaceInStore ( ObjectManagerByteArrayOutputStream byteArrayOutputStream ) throws ObjectManagerException { if ( owningToken . getObjectStore ( ) . getObjectManagerState ( ) . getObjectManagerStateState ( ) == ObjectManagerState . stateReplayingLog ) super . reserveSpaceInStore ( byteArrayOutputStream ) ; els... | Modifiy the behaviour of the ManagedObject ObjectStore space reservation by taking storage from the previously allocated reservedSpaceInStore rather than the store itself this avoids the possibility of seeing an ObjectStoreFull exception here . |
24,279 | public static boolean versionSatisfiesMinimum ( int [ ] minimumVersion , int [ ] queryVersion ) { if ( minimumVersion . length == queryVersion . length ) { for ( int i = 0 ; i < minimumVersion . length ; i ++ ) { if ( queryVersion [ i ] < minimumVersion [ i ] ) { return false ; } else if ( queryVersion [ i ] == minimum... | Evaluate whether queryVersion is considered to be greater or equal than minimumVersion . |
24,280 | public BaseDestinationHandler getDestinationHandler ( ) { if ( tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , "getDestinationHandler" ) ; SibTr . exit ( tc , "getDestinationHandler" , destinationHandler ) ; } return destinationHandler ; } | Return the destinationHandler that the protocol itemstream is associated with |
24,281 | public boolean authorize ( AuthenticationResult authResult , WebRequest webRequest , String uriName ) { HttpServletRequest req = webRequest . getHttpServletRequest ( ) ; boolean isAuthorized = jaccServiceRef . getService ( ) . isAuthorized ( getApplicationName ( ) , getModuleName ( ) , uriName , req . getMethod ( ) , r... | Call the JACC authorization service to determine if the subject is authorized |
24,282 | public boolean addSync ( ) throws ResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { Tr . entry ( this , tc , "addSync" ) ; } UOWCoordinator uowCoord = mcWrapper . getUOWCoordinator ( ) ; if ( uowCoord == null ) { String pmiName = mcWrapper . gConfigProps . cfName ; Object ... | Register the RRSLocalTransactionWrapper as a sync object with the Transaction Manager for the current transaction . |
24,283 | private boolean shouldInterpretEmptyStringSubmittedValuesAsNullClearInput ( FacesContext context ) { ExternalContext ec = context . getExternalContext ( ) ; String param = ec . getInitParameter ( EMPTY_VALUES_AS_NULL_CLEAR_INPUT_PARAM_NAME ) ; Boolean interpretEmptyStringAsNullClearInput = "true" . equalsIgnoreCase ( p... | Get the value of context parameter org . apache . myfaces . INTERPRET_EMPTY_STRING_SUBMITTED_VALUES_AS_NULL_CLEAR_INPUT from the web . xml |
24,284 | @ JSFProperty ( defaultValue = "true" , tagExcluded = true ) public boolean isValid ( ) { Object value = getStateHelper ( ) . get ( PropertyKeys . valid ) ; if ( value != null ) { return ( Boolean ) value ; } return true ; } | Specifies whether the component s value is currently valid ie whether the validators attached to this component have allowed it . |
24,285 | @ SuppressWarnings ( "unchecked" ) private Map < String , List < Object [ ] > > _getDebugInfoMap ( ) { Map < String , Object > requestMap = getFacesContext ( ) . getExternalContext ( ) . getRequestMap ( ) ; Map < String , List < Object [ ] > > debugInfo = ( Map < String , List < Object [ ] > > ) requestMap . get ( DEBU... | Returns the debug - info Map for this component . |
24,286 | private List < Object [ ] > _getFieldDebugInfos ( final String field ) { Map < String , List < Object [ ] > > debugInfo = _getDebugInfoMap ( ) ; List < Object [ ] > fieldDebugInfo = debugInfo . get ( field ) ; if ( fieldDebugInfo == null ) { fieldDebugInfo = new ArrayList < Object [ ] > ( ) ; debugInfo . put ( field , ... | Returns the field s debug - infos from the component s debug - info Map . |
24,287 | private void _createFieldDebugInfo ( FacesContext facesContext , final String field , Object oldValue , Object newValue , final int skipStackTaceElements ) { if ( oldValue == null && newValue == null ) { return ; } if ( facesContext . getViewRoot ( ) == null ) { return ; } if ( getParent ( ) == null || ! isInView ( ) )... | Creates the field debug - info for the given field which changed from oldValue to newValue . |
24,288 | @ FFDCIgnore ( IllegalStateException . class ) public URL getBundleEntry ( Bundle bundleToTest , String pathAndName ) { try { URL bundleEntry = bundleToTest . getEntry ( pathAndName ) ; if ( bundleEntry == null ) { bundleEntry = bundleToTest . getEntry ( pathAndName + "/" ) ; } return bundleEntry ; } catch ( IllegalSta... | This method will return a bundle entry URL for the supplied path it will test for both a normal entry and a directory entry for it . |
24,289 | public boolean isRemoteQueueHighLimit ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "isRemoteQueueHighLimit" ) ; boolean limited = false ; if ( _destHighMsgs != - 1 ) { limited = ( getTotalMsgCount ( ) >= _remoteQueueHighLimit ) ; } if ( TraceComponent . isAnyTrac... | See defect 281311 Behaves like the isQHighLimit method call but allows an extra chunk of space for messages that have come in remotely . This is to avoid a deadlock situation . |
24,290 | public long countAvailablePublications ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "countAvailablePublications" ) ; int subs = destinationHandler . getSubscriptionIndex ( ) . getTotalSubscriptions ( ) ; long pubs = - 1 ; try { pubs = getStatistics ( ) . getAvail... | Count the available publications . |
24,291 | public boolean removeAllItemsWithNoRefCount ( Transaction tran ) throws SIResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "removeAllItemsWithNoRefCount" , tran ) ; Item item = null ; boolean deletedItems = false ; try { deleteMessageslock . lockInterru... | Remove all the message items |
24,292 | private void createTables ( PersistenceServiceUnit persistenceServiceUnit ) throws Exception { LocalTransactionCurrent localTranCurrent = this . localTranCurrent ; LocalTransactionCoordinator suspendedLTC = localTranCurrent . suspend ( ) ; EmbeddableWebSphereTransactionManager tranMgr = this . tranMgr ; Transaction sus... | Automatic table creation . |
24,293 | private String getDatabaseProductName ( WSDataSource dataSource ) throws Exception { String dbProductName = dataSource . getDatabaseProductName ( ) ; if ( dbProductName == null ) { LocalTransactionCurrent localTranCurrent = this . localTranCurrent ; LocalTransactionCoordinator suspendedLTC = localTranCurrent . suspend ... | Obtain the database product name from the database to which the data source connects . |
24,294 | @ Reference ( service = AuthData . class , cardinality = ReferenceCardinality . OPTIONAL , policy = ReferencePolicy . STATIC , target = "(id=unbound)" , policyOption = ReferencePolicyOption . GREEDY ) protected void setAuthData ( ServiceReference < AuthData > ref ) { authDataRef = ref ; } | Declarative Services method for setting the service reference for the default auth data |
24,295 | @ Reference ( cardinality = ReferenceCardinality . OPTIONAL , policy = ReferencePolicy . STATIC , policyOption = ReferencePolicyOption . GREEDY , target = "(id=unbound)" ) protected void setNonJTADataSourceFactory ( ResourceFactory svc ) { nonJTADataSourceFactory = svc ; } | Declarative Services method for setting the resource factory for the non - transactional data source . |
24,296 | private ThreadContextProvider findConflictingProvider ( ThreadContextProvider provider , ClassLoader classloader ) { String conflictingType = provider . getThreadContextType ( ) ; for ( ThreadContextProvider p : ServiceLoader . load ( ThreadContextProvider . class , classloader ) ) { if ( conflictingType . equals ( p .... | Finds and returns the first thread context provider that provides the same thread context type as the specified provider . |
24,297 | < T > T getDefault ( String mpConfigPropName , T defaultValue ) { MPConfigAccessor accessor = cmProvider . mpConfigAccessor ; if ( accessor != null ) { Object mpConfig = mpConfigRef . get ( ) ; if ( mpConfig == Boolean . FALSE ) if ( ! mpConfigRef . compareAndSet ( Boolean . FALSE , mpConfig = accessor . getConfig ( ) ... | Obtain a default value from MicroProfile Config if available . |
24,298 | private static Long getUpdatedStamp ( String absPath , File file ) { String methodName = "getUpdatedStamp" ; boolean doDebug = tc . isDebugEnabled ( ) ; Long currentStamp = Long . valueOf ( file . lastModified ( ) ) ; Long newStamp ; String newStampReason = null ; synchronized ( expansionStamps ) { Long priorStamp = ex... | Tell if a file should be expanded by answering the updated time stamp of the file . |
24,299 | public static PackageIndex < Integer > createPackageIndex ( String resourceName ) { PackageIndex < Integer > packageIndex = new PackageIndex < Integer > ( ) ; BufferedReader br = null ; try { br = getLibertyTraceListReader ( resourceName ) ; addFiltersAndValuesToIndex ( br , packageIndex ) ; } catch ( IOException e ) {... | Create the package index from the contents of the resource . |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.