idx int64 0 165k | question stringlengths 73 5.81k | target stringlengths 5 918 |
|---|---|---|
159,400 | public String getUser ( ) { if ( tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , "getUser" ) ; SibTr . exit ( tc , "getUser" , user ) ; } return user ; } | Returns the user . |
159,401 | public void setDestination ( String destination ) { if ( tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "setDestination" , destination ) ; this . destination = destination ; if ( tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "setDestination" ) ; } | Sets the destination . |
159,402 | public void setSelector ( String selector ) { if ( tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "setSelector" , selector ) ; this . selector = selector ; if ( tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "setSelector" ) ; } | Sets the selector . |
159,403 | public void setTopic ( String topic ) { if ( tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "setTopic" , topic ) ; this . topic = topic ; if ( tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "setTopic" ) ; } | Sets the topic . |
159,404 | public boolean isNoLocal ( ) { if ( tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , "isNoLocal" ) ; SibTr . exit ( tc , "isNoLocal" , new Boolean ( noLocal ) ) ; } return noLocal ; } | Returns the noLocal . |
159,405 | public void setNoLocal ( boolean noLocal ) { if ( tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "setNoLocal" , new Boolean ( noLocal ) ) ; this . noLocal = noLocal ; if ( tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "setNoLocal" ) ; } | Sets the noLocal . |
159,406 | @ FFDCIgnore ( URISyntaxException . class ) public static String namespaceURIToPackage ( String namespaceURI ) { try { return nameSpaceURIToPackage ( new URI ( namespaceURI ) ) ; } catch ( URISyntaxException ex ) { return null ; } } | Generates a Java package name from a URI according to the algorithm outlined in JAXB 2 . 0 . |
159,407 | public static String nameToIdentifier ( String name , IdentifierType type ) { if ( null == name || name . length ( ) == 0 ) { return name ; } boolean legalIdentifier = false ; StringBuilder buf = new StringBuilder ( name ) ; boolean hasUnderscore = false ; legalIdentifier = Character . isJavaIdentifierStart ( buf . cha... | Converts an XML name to a Java identifier according to the mapping algorithm outlined in the JAXB specification |
159,408 | public static String getDefaultSSLSocketFactory ( ) { if ( defaultSSLSocketFactory == null ) { defaultSSLSocketFactory = AccessController . doPrivileged ( new PrivilegedAction < String > ( ) { public String run ( ) { return Security . getProperty ( "ssl.SocketFactory.provider" ) ; } } ) ; } return defaultSSLSocketFacto... | Get the default SSLSocketFactory from Security . |
159,409 | public static String getDefaultSSLServerSocketFactory ( ) { if ( defaultSSLServerSocketFactory == null ) { defaultSSLServerSocketFactory = AccessController . doPrivileged ( new PrivilegedAction < String > ( ) { public String run ( ) { return Security . getProperty ( "ssl.ServerSocketFactory.provider" ) ; } } ) ; } retu... | Get the default SSLServerSocketFactory class from Security . |
159,410 | public static String getKeyManagerFactoryAlgorithm ( ) { if ( keyManagerFactoryAlgorithm == null ) { keyManagerFactoryAlgorithm = AccessController . doPrivileged ( new PrivilegedAction < String > ( ) { public String run ( ) { return Security . getProperty ( "ssl.KeyManagerFactory.algorithm" ) ; } } ) ; } return keyMana... | Get the key manager factory algorithm default from Security . |
159,411 | public static String getTrustManagerFactoryAlgorithm ( ) { if ( trustManagerFactoryAlgorithm == null ) { trustManagerFactoryAlgorithm = AccessController . doPrivileged ( new PrivilegedAction < String > ( ) { public String run ( ) { return Security . getProperty ( "ssl.TrustManagerFactory.algorithm" ) ; } } ) ; } return... | Get the trust manager factory algorithm default from Security . |
159,412 | public static void initializeIBMCMSProvider ( ) throws Exception { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "initializeIBMCMSProvider" ) ; Provider provider = Security . getProvider ( Constants . IBMCMS_NAME ) ; if ( provider != null ) { if ( TraceComponent . isAnyTra... | Initialize the IBM CMS provider . |
159,413 | public static void insertProviderAt ( Provider newProvider , int slot ) { Provider [ ] provider_list = Security . getProviders ( ) ; if ( null == provider_list || 0 == provider_list . length ) { return ; } Provider [ ] newList = new Provider [ provider_list . length + 2 ] ; newList [ slot ] = newProvider ; int newListI... | Insert a provider into Security at the provided slot number . |
159,414 | public static void removeAllProviders ( ) { Provider [ ] provider_list = Security . getProviders ( ) ; for ( int i = 0 ; i < provider_list . length ; i ++ ) { if ( provider_list [ i ] != null ) { String name = provider_list [ i ] . getName ( ) ; if ( name != null ) { Security . removeProvider ( name ) ; } } } } | Remove all providers from Security . |
159,415 | static void validateAsyncOnInterfaces ( Class < ? > [ ] ifaces , TraceComponent tc ) { if ( ifaces != null ) { for ( Class < ? > iface : ifaces ) { if ( iface . isInterface ( ) ) { if ( iface . getAnnotation ( Asynchronous . class ) != null ) { Tr . warning ( tc , "ASYNC_ON_INTERFACE_CNTR0305W" , iface . getName ( ) ) ... | F743 - 13921 |
159,416 | protected void modified ( ComponentContext context ) throws Exception { processProperties ( context . getProperties ( ) ) ; deregisterJavaMailMBean ( ) ; registerJavaMailMBean ( ) ; } | The Modified method is how the properties that are defined in the mailSession object of the server . xml are extracted and stored in the sessionProperties . |
159,417 | public Object createResource ( ResourceInfo info ) throws Exception { Properties propertyNames = createPropertyNames ( ) ; Properties props = createProperties ( propertyNames ) ; if ( listOfPropMap != null ) { for ( Map < String , Object > nestedProperties : listOfPropMap ) { props . put ( nestedProperties . get ( NAME... | The createResource uses the sessionProperties to create a javax . mail . Session object and return it to the caller . The caller uses JNDI look up with the JNDI name defined in the server . xml . |
159,418 | private Properties createProperties ( Properties propertyNames ) { Properties props = new Properties ( ) ; for ( String key : propertiesArray ) { if ( sessionProperties . get ( key ) != null ) { if ( ! key . equalsIgnoreCase ( STOREPROTOCOLCLASSNAME ) && ! key . equalsIgnoreCase ( TRANSPORTPROTOCOLCLASSNAME ) ) { props... | The createProperties method will iterate through the sessionProperties and put them into the props object so that it can be used to create the javax . mail . Session |
159,419 | private Properties createPropertyNames ( ) { Properties propertyNames = new Properties ( ) ; propertyNames . setProperty ( HOST , "mail.host" ) ; propertyNames . setProperty ( USER , "mail.user" ) ; propertyNames . setProperty ( FROM , "mail.from" ) ; propertyNames . setProperty ( TRANSPORTPROTOCOL , "mail.transport.pr... | The createPropertyName method sets a property for five special strings that can be set in a different method such as mail . host . These are different way to set certain property values and are unique to these five |
159,420 | private Session createSession ( Properties props ) throws InvalidPasswordDecodingException , UnsupportedCryptoAlgorithmException { Session session = null ; if ( sessionProperties . get ( PASSWORD ) != null && sessionProperties . get ( USER ) != null ) { SerializableProtectedString password = ( SerializableProtectedStri... | The createSession method creates a session using the props if the password is specified in the server . xml then a session is creating using the password . If it is not specified then session is created with out a authenticator . |
159,421 | @ Reference ( service = MailSessionRegistrar . class , policy = ReferencePolicy . DYNAMIC , cardinality = ReferenceCardinality . OPTIONAL , target = "(component.name=com.ibm.ws.javamail.management.j2ee.MailSessionRegistrarImpl)" ) protected void setMailSessionRegistrar ( ServiceReference < MailSessionRegistrar > ref ) ... | Declarative Services method for setting mail session registrar |
159,422 | void reset ( long time , long latest , AlarmListener listener , Object context , long index ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "reset" , new Object [ ] { new Long ( time ) , new Long ( latest ) , listener , context , new Long ( index ) } ) ; data = listen... | reset this alarm s values |
159,423 | public static synchronized void init ( HpelTraceServiceConfig config ) { if ( config == null ) throw new NullPointerException ( "LogProviderConfig must not be null" ) ; loggingConfig . compareAndSet ( null , config ) ; } | Initializes HPEL Configuration proxy |
159,424 | public Exception getLinkedException ( ) { Throwable t = getCause ( ) ; while ( t != null ) { if ( t instanceof Exception ) { return ( Exception ) t ; } else { t = t . getCause ( ) ; } } return null ; } | Retrieve the exception that was saved away |
159,425 | public synchronized void lock ( ) { if ( tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "lock" , this ) ; boolean interrupted = false ; while ( ! tryLock ( ) ) try { if ( tc . isDebugEnabled ( ) ) SibTr . debug ( tc , "Waiting for lock" ) ; wait ( 1000 ) ; } catch ( InterruptedException e ) { interrupted = true ; } if ... | This method allows multiple lockers to lock the same mutex until the lock exclusive is called . Then all lock requesters have to wait until the exclusive lock is released . |
159,426 | private boolean tryLock ( ) { if ( tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "tryLock" , this ) ; boolean result = false ; synchronized ( iMutex ) { if ( ! iExclusivelyLocked || iExclusiveLockHolder == Thread . currentThread ( ) ) { incrementThreadLockCount ( ) ; result = true ; } } if ( tc . isEntryEnabled ( ) ) ... | This method increments a the number of locks that have been obtained . |
159,427 | private void incrementThreadLockCount ( ) { if ( tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "incrementThreadLockCount" , this ) ; Thread currentThread = Thread . currentThread ( ) ; LockCount count = ( LockCount ) readerThreads . get ( currentThread ) ; if ( count == null ) { count = new LockCount ( ) ; readerThrea... | The mutex must be held before calling this method . |
159,428 | private boolean alienReadLocksHeld ( ) { if ( tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "alienReadLocksHeld" , this ) ; boolean locksHeld = false ; if ( readerThreadCount > 1 ) { locksHeld = true ; } else if ( readerThreadCount == 1 ) { Thread currentThread = Thread . currentThread ( ) ; LockCount count = ( LockCo... | The mutex must be help before calling this method . |
159,429 | private boolean tryLockExclusive ( ) { if ( tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "tryLockExclusive" , this ) ; boolean result = false ; synchronized ( iMutex ) { if ( ! iExclusivelyLocked ) { iExclusivelyLocked = true ; iExclusiveLockHolder = Thread . currentThread ( ) ; if ( tc . isDebugEnabled ( ) ) SibTr .... | This method attempts to lock the exclusively and won t succeed until it has the exclusive lock . |
159,430 | public synchronized void unlockExclusive ( ) { if ( tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "unlockExclusive" , this ) ; synchronized ( iMutex ) { if ( Thread . currentThread ( ) == iExclusiveLockHolder ) { if ( tc . isDebugEnabled ( ) ) SibTr . debug ( tc , "Unlocking current thread " + ( iExclusiveLockCount - ... | This method unlocks the exclusive lock that was held . |
159,431 | public static void init ( ExternalContext context ) { WebXmlParser parser = new WebXmlParser ( context ) ; WebXml webXml = parser . parse ( ) ; context . getApplicationMap ( ) . put ( WEB_XML_ATTR , webXml ) ; MyfacesConfig mfconfig = MyfacesConfig . getCurrentInstance ( context ) ; long configRefreshPeriod = mfconfig ... | should be called when initialising Servlet |
159,432 | private static void filterThrowable ( Throwable t ) { StackTraceElement [ ] stackLines = t . getStackTrace ( ) ; if ( ( stackLines != null ) && ( stackLines . length > 1 ) ) { Vector v = new Vector ( ) ; boolean euStarted = false ; int index = 0 ; for ( index = 0 ; index < stackLines . length ; index ++ ) { StackTraceE... | This method filters the stack trace of the parameter object to remove all trace of the newThrowable and reflection calls that have been made . |
159,433 | public static Throwable getJMS2Exception ( JMSException jmse , Class exceptionToBeThrown ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "getJMS2Exceptions" , new Object [ ] { jmse , exceptionToBeThrown } ) ; JMSRuntimeException jmsre = null ; try { jmsre = ( JMSRunti... | This is a generic function to convert all the JMS 1 . 1 exceptions to JMS 2 . 0 exception . It uses reflection to create the desired JMS2 . 0 exception |
159,434 | private boolean isProductExtensionInstalled ( String inputString , String productExtension ) { if ( ( productExtension == null ) || ( inputString == null ) ) { return false ; } int msgIndex = inputString . indexOf ( "CWWKF0012I: The server installed the following features:" ) ; if ( msgIndex == - 1 ) { return false ; }... | Determine if the input product extension exists in the input string . |
159,435 | public static String encodePartiallyEncoded ( String encoded , boolean query ) { if ( encoded . length ( ) == 0 ) { return encoded ; } Matcher m = ENCODE_PATTERN . matcher ( encoded ) ; if ( ! m . find ( ) ) { return query ? HttpUtils . queryEncode ( encoded ) : HttpUtils . pathEncode ( encoded ) ; } int length = encod... | Encodes partially encoded string . Encode all values but those matching pattern percent char followed by two hexadecimal digits . |
159,436 | public String formatRecord ( RepositoryLogRecord record , Locale locale ) { if ( null == record ) { throw new IllegalArgumentException ( "Record cannot be null" ) ; } return getFormattedRecord ( record , locale ) ; } | Formats a RepositoryLogRecord into a localized CBE format output String . |
159,437 | public String getFormattedRecord ( RepositoryLogRecord record , Locale locale ) { StringBuilder sb = new StringBuilder ( 300 ) ; createEventOTag ( sb , record , locale ) ; createExtendedElement ( sb , record ) ; createExtendedElement ( sb , "CommonBaseEventLogRecord:sequenceNumber" , "long" , String . valueOf ( record ... | Gets a String representation of a log record as a CBEEvent XML element |
159,438 | private void createEventOTag ( StringBuilder sb , RepositoryLogRecord record , Locale locale ) { sb . append ( "<CommonBaseEvent creationTime=\"" ) ; sb . append ( CBE_DATE_FORMAT . format ( record . getMillis ( ) ) ) ; sb . append ( "\"" ) ; sb . append ( " globalInstanceId=\"" ) . append ( GUID_PREFIX ) . append ( Gu... | Appends the opening tag of a CommonBaseEvent XML element to a string buffer |
159,439 | private void createSituationElement ( StringBuilder sb ) { sb . append ( lineSeparator ) . append ( INDENT [ 0 ] ) . append ( "<situation categoryName=\"ReportSituation\">" ) ; sb . append ( lineSeparator ) . append ( INDENT [ 1 ] ) . append ( "<situationType xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:... | Appends the CBE Situation XML element of a record to a String buffer |
159,440 | private void createSourceElement ( StringBuilder sb , RepositoryLogRecord record ) { String hostAddr = headerProps . getProperty ( ServerInstanceLogRecordList . HEADER_HOSTADDRESS ) == null ? "" : headerProps . getProperty ( ServerInstanceLogRecordList . HEADER_HOSTADDRESS ) ; String hostType = headerProps . getPropert... | Appends the CBE Source XML element of a record to a String buffer |
159,441 | private void createMessageElement ( StringBuilder sb , RepositoryLogRecord record ) { sb . append ( lineSeparator ) . append ( INDENT [ 0 ] ) . append ( "<msgDataElement msgLocale=\"" ) . append ( record . getMessageLocale ( ) ) . append ( "\">" ) ; if ( record . getParameters ( ) != null ) { for ( int c = 0 ; c < reco... | Appends the CBE Message Element XML element of a record to a String buffer |
159,442 | private void createExtendedElement ( StringBuilder sb , RepositoryLogRecord record ) { sb . append ( lineSeparator ) . append ( INDENT [ 0 ] ) . append ( "<extendedDataElements name=\"CommonBaseEventLogRecord:level\" type=\"noValue\">" ) ; sb . append ( lineSeparator ) . append ( INDENT [ 1 ] ) . append ( "<children na... | Appends the CBE Extended Data Element of a record to a String buffer |
159,443 | private void createExtendedElement ( StringBuilder sb , RepositoryLogRecord record , String extensionID ) { String edeValue = record . getExtension ( extensionID ) ; if ( edeValue != null && ! edeValue . isEmpty ( ) ) { createExtendedElement ( sb , extensionID , "string" , edeValue ) ; } } | Appends the CBE Extended Data Element of a record s extension to a String buffer |
159,444 | private void createExtendedElement ( StringBuilder sb , String edeName , String edeType , String edeValues ) { sb . append ( lineSeparator ) . append ( INDENT [ 0 ] ) . append ( "<extendedDataElements name=\"" ) . append ( edeName ) . append ( "\" type=\"" ) . append ( edeType ) . append ( "\">" ) ; sb . append ( lineS... | Prints and extendedDataElement for CBE output Formatter s time zone . |
159,445 | private static Cookie constructLTPACookieObj ( SingleSignonToken ssoToken ) { byte [ ] ssoTokenBytes = ssoToken . getBytes ( ) ; String ssoCookieString = Base64Coder . base64EncodeToString ( ssoTokenBytes ) ; Cookie cookie = new Cookie ( webAppSecConfig . getSSOCookieName ( ) , ssoCookieString ) ; return cookie ; } | builds an LTPACookie object |
159,446 | static Cookie getLTPACookie ( final Subject subject ) throws Exception { Cookie ltpaCookie = null ; SingleSignonToken ssoToken = null ; Set < SingleSignonToken > ssoTokens = subject . getPrivateCredentials ( SingleSignonToken . class ) ; Iterator < SingleSignonToken > ssoTokensIterator = ssoTokens . iterator ( ) ; if (... | Gets the LTPA cookie from the given subject |
159,447 | public static Cookie getSSOCookieFromSSOToken ( ) throws Exception { Subject subject = null ; Cookie ltpaCookie = null ; if ( webAppSecConfig == null ) { return null ; } try { subject = WSSubject . getRunAsSubject ( ) ; if ( subject == null ) { subject = WSSubject . getCallerSubject ( ) ; } if ( subject != null ) { ltp... | Extracts an LTPA sso cookie from the subject of current thread and builds a ltpa cookie out of it for use on downstream web invocations . The caller must check for null return value only when not null that getName and getValue can be invoked on the returned Cookie object |
159,448 | private ReturnCode packageServerDumps ( File packageFile , List < String > javaDumps ) { DumpProcessor processor = new DumpProcessor ( serverName , packageFile , bootProps , javaDumps ) ; return processor . execute ( ) ; } | Creates an archive containing the server dumps server configurations . |
159,449 | void deregister ( List < URL > urls ) { for ( URL url : urls ) { _data . remove ( url . getFile ( ) ) ; } } | Remove mappings for the provided urls . |
159,450 | void register ( URL url , InMemoryMappingFile immf ) { _data . put ( url . getFile ( ) , immf ) ; } | Register the URL mapping to the provided InMemoryMappingFile . |
159,451 | private boolean isMatchingString ( String value1 , String value2 ) { boolean valuesMatch = true ; if ( value1 == null ) { if ( value2 != null ) { valuesMatch = false ; } } else { valuesMatch = value1 . equals ( value2 ) ; } return valuesMatch ; } | Compare two string values . |
159,452 | private List < Class < ? > > getListenerInterfaces ( ) { List < Class < ? > > listenerInterfaces = new ArrayList < Class < ? > > ( Arrays . asList ( SERVLET30_LISTENER_INTERFACES ) ) ; if ( com . ibm . ws . webcontainer . osgi . WebContainer . getServletContainerSpecLevel ( ) < com . ibm . ws . webcontainer . osgi . We... | Obtain the list of enabled listener interfaces . The list contents depends on servlet 3 . 1 enablement . |
159,453 | public void configureWebAppHelperFactory ( WebAppConfiguratorHelperFactory webAppConfiguratorHelperFactory , ResourceRefConfigFactory resourceRefConfigFactory ) { webAppHelper = webAppConfiguratorHelperFactory . createWebAppConfiguratorHelper ( this , resourceRefConfigFactory , getListenerInterfaces ( ) ) ; this . conf... | Configure the WebApp helper factory |
159,454 | public < T > void validateDuplicateKeyValueConfiguration ( String parentElementName , String keyElementName , String keyElementValue , String valueElementName , T newValue , ConfigItem < T > priorConfigItem ) { T priorValue = priorConfigItem . getValue ( ) ; if ( priorValue == null ) { if ( newValue == null ) { return ... | Validate configuration items which are elements of keyed collections in two configurations . |
159,455 | public void validateDuplicateDefaultErrorPageConfiguration ( String newLocation , ConfigItem < String > priorLocationItem ) { String priorLocation = priorLocationItem . getValue ( ) ; if ( priorLocation == null ) { if ( newLocation == null ) { return ; } else { } } else if ( newLocation == null ) { } else if ( priorLoc... | Validate default error page configuration items . |
159,456 | @ SuppressWarnings ( "unchecked" ) public < T > Map < String , ConfigItem < T > > getConfigItemMap ( String key ) { Map < String , ConfigItem < T > > configItemMap = ( Map < String , ConfigItem < T > > ) attributes . get ( key ) ; if ( configItemMap == null ) { configItemMap = new HashMap < String , ConfigItem < T > > ... | Obtain an attribute value as a mapping . Create and return a new empty mapping if one is not yet present . |
159,457 | @ SuppressWarnings ( "unchecked" ) public < T > Set < T > getContextSet ( String key ) { Set < T > set = ( Set < T > ) attributes . get ( key ) ; if ( set == null ) { set = new HashSet < T > ( ) ; attributes . put ( key , set ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( ... | Obtain an attribute value as a sset . Create and return a new empty set if one is not yet present . |
159,458 | public < T > ConfigItem < T > createConfigItem ( T value , MergeComparator < T > comparator ) { return new ConfigItemImpl < T > ( value , getConfigSource ( ) , getLibraryURI ( ) , comparator ) ; } | Create a configuration item using the current source . |
159,459 | public boolean isExpired ( ) { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "isExpired" ) ; boolean expired = false ; long curTime = System . currentTimeMillis ( ) ; if ( curTime - _leaseTime > _leaseTimeout * 1000 ) { if ( tc . isDebugEnabled ( ) ) Tr . debug ( tc , "Lease has EXPIRED for " + _recoveryIdentity + "... | Has the peer expired? |
159,460 | protected void returnToFreePool ( MCWrapper mcWrapper ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { Tr . entry ( this , tc , "returnToFreePool" , gConfigProps . cfName ) ; } if ( mcWrapper . shouldBeDestroyed ( ) || mcWrapper . hasFatalErrorNotificationOccurred ( fatalErrorNotificatio... | Return the mcWrapper to the free pool . |
159,461 | protected void removeMCWrapperFromList ( MCWrapper mcWrapper , boolean removeFromFreePool , boolean synchronizationNeeded , boolean skipWaiterNotify , boolean decrementTotalCounter ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { Tr . entry ( this , tc , "removeMCWrapperFromList" ) ; } i... | This method will try to cleanup and destroy the connection and remove the mcWrapper from the free pool . |
159,462 | protected void removeParkedConnection ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { Tr . entry ( this , tc , "removeParkedConnection" ) ; } if ( pm . parkedMCWrapper != null ) { synchronized ( pm . parkedConnectionLockObject ) { if ( pm . parkedMCWrapper != null ) { cleanupAndDestro... | Remove the parked managed connection . This method should only be called if do not have SmartHandleSupport in effect . The PoolManager controls the SmartHandleSupported flag so we have to trust the PM not to call this method when smart handles is in effect . |
159,463 | protected void removeCleanupAndDestroyAllFreeConnections ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { Tr . entry ( this , tc , "removeCleanupAndDestroyAllFreeConnections" ) ; } int mcWrapperListIndex = mcWrapperList . size ( ) - 1 ; for ( int i = mcWrapperListIndex ; i >= 0 ; -- i ... | Remove the mcWrappers from the arraylist . Cleanup and destroy the managed connections . |
159,464 | protected void cleanupAndDestroyAllFreeConnections ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { Tr . entry ( this , tc , "cleanupAndDestroyAllFreeConnections" ) ; } int mcWrapperListIndex = mcWrapperList . size ( ) - 1 ; for ( int i = mcWrapperListIndex ; i >= 0 ; -- i ) { MCWrappe... | During server shutdown try to cleanup and destroy the managed connections nicely . This method should only be called during server server shutdown . |
159,465 | protected void incrementFatalErrorValue ( int value1 ) { if ( fatalErrorNotificationTime == Integer . MAX_VALUE - 1 ) { fatalErrorNotificationTime = 0 ; if ( value1 == 0 ) { pm . mcToMCWMapWrite . lock ( ) ; try { Collection < MCWrapper > mcWrappers = pm . mcToMCWMap . values ( ) ; Iterator < MCWrapper > mcWrapperIt = ... | This method should only be called when a fatal error occurs or when an attempt is made to remove all of the connections from the pool . |
159,466 | public static < K > UserConverter < K > newInstance ( Converter < K > converter ) { return newInstance ( getType ( converter ) , converter ) ; } | Construct a new PriorityConverter using discovered or default type and priority |
159,467 | public static < K > UserConverter < K > newInstance ( Type type , Converter < K > converter ) { return newInstance ( type , getPriority ( converter ) , converter ) ; } | Construct a new PriorityConverter using discovered or default priority |
159,468 | private static Type getType ( Converter < ? > converter ) { Type type = null ; Type [ ] itypes = converter . getClass ( ) . getGenericInterfaces ( ) ; for ( Type itype : itypes ) { ParameterizedType ptype = ( ParameterizedType ) itype ; if ( ptype . getRawType ( ) == Converter . class ) { Type [ ] atypes = ptype . getA... | Reflectively work out the Type of a Converter |
159,469 | public static File deleteWithRetry ( File file ) { String methodName = "deleteWithRetry" ; String filePath ; if ( tc . isDebugEnabled ( ) ) { filePath = file . getAbsolutePath ( ) ; Tr . debug ( tc , methodName + ": Recursively delete [ " + filePath + " ]" ) ; } else { filePath = null ; } File firstFailure = delete ( f... | Attempt to recursively delete a target file . |
159,470 | public static File delete ( File file ) { String methodName = "delete" ; String filePath ; if ( tc . isDebugEnabled ( ) ) { filePath = file . getAbsolutePath ( ) ; } else { filePath = null ; } if ( file . isDirectory ( ) ) { if ( filePath != null ) { Tr . debug ( tc , methodName + ": Delete directory [ " + filePath + "... | Attempt to recursively delete a file . |
159,471 | public static void unzip ( File source , File target , boolean isEar , long lastModified ) throws IOException { byte [ ] transferBuffer = new byte [ 16 * 1024 ] ; unzip ( source , target , isEar , lastModified , transferBuffer ) ; } | Unpack a source archive into a target directory . |
159,472 | public static ELResolver makeResolverForJSP ( ) { Map < String , ImplicitObject > forJSPList = new HashMap < String , ImplicitObject > ( 8 ) ; ImplicitObject io1 = new FacesContextImplicitObject ( ) ; forJSPList . put ( io1 . getName ( ) , io1 ) ; ImplicitObject io2 = new ViewImplicitObject ( ) ; forJSPList . put ( io2... | Static factory for an ELResolver for resolving implicit objects in JSPs . See JSF 1 . 2 spec section 5 . 6 . 1 . 1 |
159,473 | public static ELResolver makeResolverForFaces ( ) { Map < String , ImplicitObject > forFacesList = new HashMap < String , ImplicitObject > ( 30 ) ; ImplicitObject io1 = new ApplicationImplicitObject ( ) ; forFacesList . put ( io1 . getName ( ) , io1 ) ; ImplicitObject io2 = new ApplicationScopeImplicitObject ( ) ; forF... | Static factory for an ELResolver for resolving implicit objects in all of Faces . See JSF 1 . 2 spec section 5 . 6 . 1 . 2 |
159,474 | public void parse ( WsByteBuffer transmissionData ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "parse" , transmissionData ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) JFapUtils . debugTraceWsByteBufferInfo ( this , tc , tran... | Parses a chunk of inbound data into discrete transmissions . The headers for these transmissions are decoded and the payload data is dispatched to the appropriate method for processing . |
159,475 | private void parseSegmentStartHeader ( WsByteBuffer contextBuffer ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "parseSegmentStartHeader" , contextBuffer ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) JFapUtils . debugTraceWsBy... | Invoked to parse a start segment header structure from the supplied buffer . May be invoked multiple times to incrementally parse the structure . Once the structure has been fully parsed transitions the state machine into the appropriate next state based on the layout of the transmission . |
159,476 | private void parsePrimaryOnlyPayload ( WsByteBuffer contextBuffer ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "parsePrimaryOnlyPayload" , contextBuffer ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) JFapUtils . debugTraceWsBy... | Invoked to parse a primary header payload structure from the supplied buffer . May be invoked multiple times to incrementally parse the structure . Once the structure has been fully parsed transitions the state machine into the appropriate next state based on the layout of the transmission . |
159,477 | private void parseConversationPayload ( WsByteBuffer contextBuffer ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "parseConversationPayload" , contextBuffer ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) JFapUtils . debugTraceWs... | Invoked to parse a conversation payload structure from the supplied buffer . May be invoked multiple times to incrementally parse the structure . Once the structure has been fully parsed transitions the state machine into the appropriate next state based on the layout of the transmission . |
159,478 | private void parseSegmentStartPayload ( WsByteBuffer contextBuffer ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "parseSegmentStartPayload" , contextBuffer ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) JFapUtils . debugTraceWs... | Invoked to parse a segmented transmission start payload from the supplied buffer . May be invoked multiple times to incrementally parse the structure . Once the structure has been fully parsed transitions the state machine into the appropriate next state based on the layout of the transmission . |
159,479 | private void parseSegmentMiddlePayload ( WsByteBuffer contextBuffer ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "parseSegmentMiddlePayload" , contextBuffer ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) JFapUtils . debugTrace... | Invoked to parse a segmented transmission middle payload from the supplied buffer . May be invoked multiple times to incrementally parse the structure . Once the structure has been fully parsed transitions the state machine into the appropriate next state based on the layout of the transmission . |
159,480 | private boolean dispatchToConnection ( WsByteBuffer data ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "dispatchToConnection" , data ) ; if ( TraceComponent . isAnyTracingEnabled ( ) ) JFapUtils . debugSummaryMessage ( tc , connection , null , "received conne... | Dispatches a payload to the appropriate connection for processing . The implication of dispatching to a connection is that the payload did not have a conversation header on its transmission . |
159,481 | private void reset ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "reset" ) ; throwable = null ; state = STATE_PARSING_PRIMARY_HEADER ; unparsedPrimaryHeader . position ( 0 ) ; unparsedPrimaryHeader . limit ( JFapChannelConstants . SIZEOF_PRIMARY_HEADER ) ; ... | Resets the state of the parsing state machine so that it is read to parse another transmission . |
159,482 | private WsByteBuffer readData ( WsByteBuffer unparsedData , WsByteBuffer scratchArea ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "readData" , new Object [ ] { unparsedData , scratchArea } ) ; int scratchAreaRemaining = scratchArea . remaining ( ) ; int scra... | Reads data from a buffer into a scratch area . |
159,483 | @ SuppressWarnings ( "unchecked" ) private Object createManagedBean ( final ManagedBean managedBean , final FacesContext facesContext ) throws ELException { final ExternalContext extContext = facesContext . getExternalContext ( ) ; final Map < Object , Object > facesContextMap = facesContext . getAttributes ( ) ; final... | adapted from Manfred s JSF 1 . 1 VariableResolverImpl |
159,484 | public Object run ( ) { Thread currentThread = Thread . currentThread ( ) ; oldClassLoader = threadContextAccessor . getContextClassLoader ( currentThread ) ; if ( newClassLoader == oldClassLoader ) { wasChanged = false ; } else if ( ( newClassLoader == null && oldClassLoader != null ) || ( newClassLoader != null && ( ... | 146064 . 3 |
159,485 | public static final boolean isPassword ( String name ) { return PASSWORD_PROPS . contains ( name ) || name . toLowerCase ( ) . contains ( DataSourceDef . password . name ( ) ) ; } | Determines based on the name of a property if we expect the value might contain a password . |
159,486 | public static void parseDurationProperties ( Map < String , Object > vendorProps , String className , ConnectorService connectorSvc ) throws Exception { for ( String propName : PropertyService . DURATION_MS_LONG_PROPS ) { Object propValue = vendorProps . remove ( propName ) ; if ( propValue != null ) try { vendorProps ... | Parse and convert duration type properties . |
159,487 | public static final void parsePasswordProperties ( Map < String , Object > vendorProps ) { for ( String propName : PASSWORD_PROPS ) { String propValue = ( String ) vendorProps . remove ( propName ) ; if ( propValue != null ) vendorProps . put ( propName , new SerializableProtectedString ( propValue . toCharArray ( ) ) ... | Parse and convert password properties to SerializableProtectedString . |
159,488 | public QueueElement removeTail ( ) { if ( head == null ) { return null ; } QueueElement result = tail ; if ( result . previous == null ) { head = null ; tail = null ; } else { tail = result . previous ; tail . next = null ; } result . previous = null ; result . next = null ; result . queue = null ; numElements -- ; ret... | Remove the element at the tail of this queue and return it . |
159,489 | public RemoteAllResults getLogLists ( LogQueryBean logQueryBean , RepositoryPointer after ) throws LogRepositoryException { RemoteAllResults result = new RemoteAllResults ( logQueryBean ) ; Iterable < ServerInstanceLogRecordList > lists ; if ( after == null ) { lists = logReader . getLogLists ( logQueryBean ) ; } else ... | retrieves results for all server instances in the repository . |
159,490 | public RemoteInstanceResult getLogListForServerInstance ( RemoteInstanceDetails indicator , RepositoryPointer after , int offset , int maxRecords , Locale locale ) throws LogRepositoryException { ServerInstanceLogRecordList instance ; if ( after == null ) { instance = logReader . getLogListForServerInstance ( indicator... | retrieves records and header for one server instance . |
159,491 | public void setValidating ( boolean isValidating ) { if ( isValidating ) MCWrapper . isValidating . set ( true ) ; else MCWrapper . isValidating . remove ( ) ; } | Indicates to the connection manager whether validation is occurring on the current thread . |
159,492 | public synchronized BrowserProxyQueue createBrowserProxyQueue ( ) throws SIResourceException , SIIncorrectCallException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "createBrowserProxyQueue" ) ; checkClosed ( ) ; short id = nextId ( ) ; BrowserProxyQueue proxyQueue =... | Creates a new browser proxy queue for this group . |
159,493 | public synchronized AsynchConsumerProxyQueue createAsynchConsumerProxyQueue ( OrderingContext oc ) throws SIResourceException , SIIncorrectCallException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "createAsynchConsumerProxyQueue" ) ; short id = nextId ( ) ; AsynchCo... | Creates a new asynchronous consumer proxy queue for this group . |
159,494 | public synchronized AsynchConsumerProxyQueue createReadAheadProxyQueue ( Reliability unrecoverableReliability ) throws SIResourceException , SIIncorrectCallException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "createReadAheadProxyQueue" ) ; checkClosed ( ) ; short ... | Creates a new read ahead proxy queue for this group . |
159,495 | public synchronized void bury ( ProxyQueue queue ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "bury" ) ; short id = queue . getId ( ) ; mutableId . setValue ( id ) ; idToProxyQueueMap . remove ( mutableId ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . is... | If a session is failed to be created then we need to bury it so that it never bothers us again . The queue is simply removed from the conversation group - no attempt is made to remove messages . It is assumed that if something went wrong in the creation then no messages would ever get to the queue . |
159,496 | public synchronized ProxyQueue find ( short proxyQueueId ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "find" , "" + proxyQueueId ) ; mutableId . setValue ( proxyQueueId ) ; ProxyQueue retQueue = idToProxyQueueMap . get ( mutableId ) ; if ( TraceComponent . isAnyTra... | Locates a proxy queue from this group via its queue ID . |
159,497 | protected void notifyClose ( ProxyQueue queue ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "notifyClose" , queue ) ; try { final short id = queue . getId ( ) ; idAllocator . releaseId ( id ) ; synchronized ( this ) { idToProxyQueueMap . remove ( new ImmutableId ( i... | Notified when a proxy queue in this group is closed . Allows us to free up the ID assigned to it . |
159,498 | private short nextId ( ) throws SIResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "nextId" ) ; short id ; try { id = idAllocator . allocateId ( ) ; } catch ( IdAllocatorException e ) { SIResourceException resourceException = new SIResourceException ( n... | Helper method . Returns the next id to be used for a proxy queue . |
159,499 | private void checkClosed ( ) throws SIIncorrectCallException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "checkClosed" , "" + closed ) ; if ( closed ) throw new SIIncorrectCallException ( TraceNLS . getFormattedMessage ( CommsConstants . MSG_BUNDLE , "PROXY_QUEUE_CO... | Helper method . Checks if this group has been closed and throws an exception if it has . |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.