idx int64 0 41.2k | question stringlengths 73 5.81k | target stringlengths 5 918 |
|---|---|---|
24,300 | private void writeFixedFields ( long millis , Level level , int threadId , long seq , DataOutput writer ) throws IOException { writer . writeLong ( millis ) ; long seqNumber ; synchronized ( BinaryLogRecordSerializerImpl . class ) { seqNumber = counter ++ ; } writer . writeLong ( seqNumber ) ; writer . writeShort ( lev... | sequence number of message . |
24,301 | public Object saveState ( FacesContext context ) { Map serializableMap = ( isInitialStateMarked ( ) ) ? _deltas : _fullState ; if ( _initialState != null && _deltas != null && ! _deltas . isEmpty ( ) && isInitialStateMarked ( ) ) { for ( int i = 0 ; i < _initialState . length ; i += 2 ) { Serializable key = ( Serializa... | Serializing cod the serialized data structure consists of key value pairs unless the value itself is an internal array or a map in case of an internal array or map the value itself is another array with its initial value myfaces . InternalArray myfaces . internalMap |
24,302 | protected void invokeCallback ( ICompletionListener listener , AbstractAsyncFuture future , Object userState ) { try { ExecutorService executorService = CHFWBundle . getExecutorService ( ) ; if ( null == executorService ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEventEnabled ( ) ) { Tr . event ( tc , "... | Runs a callback on the given listener safely . We cannot allow misbehaved application callback code to spoil the notification of subsequent listeners or other tidy - up work so the callbacks have to be tightly wrappered in an exception hander that ignores the error and continues with the next callback . This could lead... |
24,303 | public void waitForCompletion ( ) throws InterruptedException { try { waitForCompletion ( 0L ) ; } catch ( AsyncTimeoutException ate ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "Unexpected timeout on blocking wait call, exception: " + ate . getMessage ( ) ) ; } FFD... | Blocks the calling thread indefinitely until the AsyncFuture has completed . If the AsyncFuture has already compeleted the method returns immediately . |
24,304 | public void waitForCompletion ( long timeout ) throws AsyncTimeoutException , InterruptedException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "waitForCompletion: " + timeout ) ; } if ( this . fullyCompleted ) { return ; } synchronized ( this . completedSemaphore ) {... | Blocks the calling thread until either the Future has completed or the timeout period has expired . The timeout period is set in milliseconds . |
24,305 | public void resetFuture ( ) { this . reuseCount ++ ; if ( getTimeoutWorkItem ( ) != null ) { getTimeoutWorkItem ( ) . state = TimerWorkItem . ENTRY_CANCELLED ; } setTimeoutWorkItem ( null ) ; this . completed = false ; this . fullyCompleted = false ; this . exception = null ; this . firstListener = null ; this . firstL... | Reset this future object back to the default values . |
24,306 | public static boolean isFloatNoExponent ( String str ) { int len = str . length ( ) ; if ( len == 0 ) { return false ; } char c = str . charAt ( 0 ) ; int i = ( ( c == '-' ) || ( c == '+' ) ) ? 1 : 0 ; if ( i >= len ) { return false ; } boolean decimalPointFound = false ; do { c = str . charAt ( i ) ; if ( c == '.' ) {... | Checks that the string represents a floating point number that CANNOT be in exponential notation |
24,307 | public static String [ ] splitLongString ( String str , char separator ) { int len = ( str == null ) ? 0 : str . length ( ) ; if ( str == null || len == 0 ) { return ArrayUtils . EMPTY_STRING_ARRAY ; } int oldPos = 0 ; ArrayList list = new ArrayList ( ) ; int pos = str . indexOf ( separator ) ; while ( pos >= 0 ) { lis... | Split a string into an array of strings arround a character separator . This function will be efficient for longer strings |
24,308 | public static String [ ] splitShortString ( String str , char separator ) { int len = ( str == null ) ? 0 : str . length ( ) ; if ( str == null || len == 0 ) { return org . apache . myfaces . shared . util . ArrayUtils . EMPTY_STRING_ARRAY ; } int lastTokenIndex = 0 ; for ( int pos = str . indexOf ( separator ) ; pos >... | Split a string into an array of strings arround a character separator . This function will be efficient for short strings for longer strings another approach may be better |
24,309 | public static int minIndex ( int a , int b ) { return ( a < 0 ) ? b : ( b < 0 ) ? a : ( a < b ) ? a : b ; } | Returns the minimum index > = 0 if any |
24,310 | public void setDispatchMode ( int [ ] dispatchModeInts ) { dispatchMode = new DispatcherType [ dispatchModeInts . length ] ; for ( int i = 0 ; i < dispatchModeInts . length ; i ++ ) { int dispatchModeCur = dispatchModeInts [ i ] ; switch ( dispatchModeCur ) { case 0 : dispatchMode [ i ] = DispatcherType . REQUEST ; bre... | public static final int FILTER_ERROR = 3 ; |
24,311 | private ExtendedAttributeDefinition getAttributeDefinition ( RegistryEntry registryEntry , String attributeName ) { if ( registryEntry == null ) { return null ; } ExtendedObjectClassDefinition definition = registryEntry . getObjectClassDefinition ( ) ; if ( definition == null ) { return null ; } Map < String , Extended... | Answer the definition of an attribute . Answer null if a definition is not available . |
24,312 | protected Map < String , ConfigElementList > generateConflictMap ( List < ? extends ConfigElement > list ) { return generateConflictMap ( null , list ) ; } | Look for conflicts between single - valued attributes . No metatype registry entry is available . |
24,313 | protected Map < String , ConfigElementList > generateConflictMap ( RegistryEntry registryEntry , List < ? extends ConfigElement > list ) { if ( list . size ( ) <= 1 ) { return Collections . emptyMap ( ) ; } boolean foundConflict = false ; Map < String , ConfigElementList > conflictMap = new HashMap < String , ConfigEle... | Look for conflicts between single - valued attributes of a list of configuration elements . |
24,314 | private String generateCollisionMessage ( String pid , ConfigID id , RegistryEntry registryEntry , Map < String , ConfigElementList > conflictMap ) { StringBuilder builder = new StringBuilder ( ) ; if ( id == null ) { builder . append ( Tr . formatMessage ( tc , "config.validator.foundConflictSingleton" , pid ) ) ; } e... | Emit a message for all detected conflicting elements . |
24,315 | public List < Interceptor < ? > > getInterceptors ( J2EEName ejbJ2EEName , Method method , InterceptionType interceptionType ) { List < Interceptor < ? > > interceptors = new ArrayList < Interceptor < ? > > ( ) ; InterceptorBindings ejbInterceptors = allInterceptors . get ( ejbJ2EEName ) ; if ( ejbInterceptors != null ... | Find all the interceptors of a given type for a given method on an ejb |
24,316 | public void start ( ExecutorService executorService , Callable < Future < R > > innerTask , ThreadContextDescriptor threadContext ) { synchronized ( this ) { this . innerTask = innerTask ; this . threadContext = threadContext ; this . resultFuture = new CompletableFuture < Future < R > > ( ) ; this . taskFuture = execu... | Submit this task for execution by the given executor service . |
24,317 | void addField ( final String name , final Object value ) throws IllegalStateException { checkNotCompleted ( ) ; _buffer . append ( " <" ) ; _buffer . append ( name ) ; _buffer . append ( "=" ) ; _buffer . append ( value ) ; _buffer . append ( ">" ) ; } | Adds a string representation of the given object field . |
24,318 | void addField ( final String name , final boolean value ) throws IllegalStateException { addField ( name , Boolean . toString ( value ) ) ; } | Adds a string representation of the given boolean field . |
24,319 | void addPasswordField ( final String name , final String value ) throws IllegalStateException { addField ( name , ( value == null ) ? null : "*****" ) ; } | Adds a string representation of the given password field . |
24,320 | void addField ( final String name , final long value ) throws IllegalStateException { addField ( name , Long . toString ( value ) ) ; } | Adds a string representation of the given long field . |
24,321 | private void addObjectIdentity ( final Object object ) { if ( object == null ) { _buffer . append ( "null" ) ; } else { _buffer . append ( object . getClass ( ) . getName ( ) ) ; _buffer . append ( "@" ) ; _buffer . append ( Integer . toHexString ( System . identityHashCode ( object ) ) ) ; } } | Adds a string identifying the given object to the buffer . |
24,322 | public void addIntegrationProperties ( String xmlSchemaVersion , Map < String , Object > integrationProperties ) { for ( JPAEMFPropertyProvider propProvider : propProviderSRs . services ( ) ) { propProvider . updateProperties ( integrationProperties ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabl... | F743 - 12524 |
24,323 | private static synchronized LogRecordHandler getBinaryHandler ( ) { if ( binaryHandler == null ) { binaryHandler = new LogRecordHandler ( TRACE_THRESHOLD , LogRepositoryManagerImpl . KNOWN_FORMATTERS [ 0 ] ) ; } return binaryHandler ; } | 16890 . 20771 |
24,324 | public static boolean removeFiles ( String destinationType ) { LogRepositoryManager destManager = getManager ( destinationType ) ; if ( destManager instanceof LogRepositoryManagerImpl ) return destManager . purgeOldFiles ( ) ; else return false ; } | remove files from appropriate destination . Called by receiver of interProcess communication on parent process |
24,325 | public static String addRemoteProcessFile ( String destinationType , long spTimeStamp , String spPid , String spLabel ) { LogRepositoryManager destManager = getManager ( destinationType ) ; String subProcessFileName = null ; if ( destManager instanceof LogRepositoryManagerImpl ) subProcessFileName = ( ( LogRepositoryMa... | add a remote file to the cache of files currently considered for retention on the parent . The child process uses some form of interProcessCommunication to notify receiver of file creation and this method is driven |
24,326 | public static void inactivateSubProcess ( String spPid ) { LogRepositoryManager destManager = getManager ( LogRepositoryBaseImpl . TRACETYPE ) ; ( ( LogRepositoryManagerImpl ) destManager ) . inactivateSubProcess ( spPid ) ; destManager = getManager ( LogRepositoryBaseImpl . LOGTYPE ) ; ( ( LogRepositoryManagerImpl ) d... | process notification that child process has exited . |
24,327 | public static synchronized void setLogDirectoryDestination ( String location , boolean enablePurgeBySize , boolean enablePurgeByTime , boolean enableFileSwitch , boolean enableBuffering , long maxRepositorySize , long retentionTime , int fileSwitchHour , String outOfSpaceAction ) { LOG_DESTINATION_CHANGER . setDirector... | Sets directory destination for log messages . |
24,328 | public static synchronized void setTraceDirectoryDestination ( String location , boolean enablePurgeBySize , boolean enablePurgeByTime , boolean enableFileSwitch , boolean enableBuffering , long maxRepositorySize , long retentionTime , int fileSwitchHour , String outOfSpaceAction ) { TRACE_DESTINATION_CHANGER . setDire... | Sets directory destination for trace messages . |
24,329 | public static synchronized void setTraceMemoryDestination ( String location , long maxSize ) { LogRepositoryWriter old = getBinaryHandler ( ) . getTraceWriter ( ) ; LogRepositoryWriterCBuffImpl writer ; if ( location == null && old instanceof LogRepositoryWriterCBuffImpl ) { writer = ( LogRepositoryWriterCBuffImpl ) ol... | Sets memory destination for trace messages . |
24,330 | public static synchronized void dumpTraceMemory ( ) { LogRepositoryWriter writer = getBinaryHandler ( ) . getTraceWriter ( ) ; if ( writer instanceof LogRepositoryWriterCBuffImpl ) { ( ( LogRepositoryWriterCBuffImpl ) writer ) . dumpItems ( ) ; } } | Dumps trace records stored in the memory buffer to disk . This action happens only if trace destination was set to memory . |
24,331 | public static synchronized void setTextDestination ( String location , boolean enablePurgeBySize , boolean enablePurgeByTime , boolean enableFileSwitch , boolean enableBuffering , long maxRepositorySize , long retentionTime , int fileSwitchHour , String outOfSpaceAction , String outputFormat , boolean includeTrace ) { ... | Sets directory destination for text logging . |
24,332 | public static synchronized void disableTextDestination ( ) { if ( textHandler != null ) { Logger . getLogger ( "" ) . removeHandler ( textHandler ) ; textHandler . stop ( ) ; textHandler = null ; } } | Disable text logging . |
24,333 | public static void setProcessInfo ( String pid , String label , String superPid ) { svPid = pid ; svLabel = label ; svSuperPid = superPid ; } | identify whether this is a logical subProcess of another process or not |
24,334 | public String [ ] getEnabledCipherSuites ( SSLEngine sslEngine ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { Tr . entry ( tc , "getEnabledCipherSuites" ) ; } String ciphers [ ] = null ; Object ciphersObject = this . myConfig . get ( Constants . SSLPROP_ENABLED_CIPHERS ) ; if ( null ==... | Query the list of enabled cipher suites for this connection . |
24,335 | public String getSSLProtocol ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { Tr . entry ( tc , "getSSLProtocol" ) ; } String protocol = ( String ) this . myConfig . get ( Constants . SSLPROP_PROTOCOL ) ; if ( protocol . equals ( Constants . PROTOCOL_SSL ) || protocol . equals ( Consta... | Query the SSL Protocol for this connection . |
24,336 | private void generatePom ( LibertyFeature feature , List < MavenCoordinates > featureCompileDependencies , Map < String , LibertyFeature > allFeatures , File outputDir , Constants . ArtifactType type ) throws MavenRepoGeneratorException { MavenCoordinates coordinates = feature . getMavenCoordinates ( ) ; Model model = ... | Generate POM file . |
24,337 | private static void addDependency ( List < Dependency > dependencies , MavenCoordinates requiredArtifact , Constants . ArtifactType type , String scope ) { Dependency dependency = new Dependency ( ) ; dependency . setGroupId ( requiredArtifact . getGroupId ( ) ) ; dependency . setArtifactId ( requiredArtifact . getArti... | Add dependency to the list of Maven Dependencies . |
24,338 | private static List < MavenCoordinates > getFeatureCompileDependencies ( File inputDir , LibertyFeature feature ) throws MavenRepoGeneratorException { List < MavenCoordinates > compileDependencies = new ArrayList < MavenCoordinates > ( ) ; File esa = new File ( inputDir , feature . getSymbolicName ( ) + Constants . Art... | Get list of compile dependencies for each feature by looking in its ESA file . |
24,339 | private static MavenCoordinates findCompileDependency ( String zipEntryPath , String groupId ) { int apiNameIndex = zipEntryPath . indexOf ( groupId ) ; int extensionIndex = zipEntryPath . lastIndexOf ( ".jar" ) ; if ( apiNameIndex >= 0 && extensionIndex >= 0 ) { String fileNameWithoutExtension = zipEntryPath . substri... | Find compile dependency from a zip entry in the ESA |
24,340 | private static List < MavenCoordinates > findCompileDependenciesFromManifest ( ZipFile zipFile , ZipEntry zipEntry ) throws MavenRepoGeneratorException { List < MavenCoordinates > result = new ArrayList < MavenCoordinates > ( ) ; InputStream inputStream = null ; try { inputStream = zipFile . getInputStream ( zipEntry )... | Find compile dependencies from the manifest file in the ESA |
24,341 | private static void copyArtifact ( File inputDir , File outputDir , LibertyFeature feature , Constants . ArtifactType type ) throws MavenRepoGeneratorException { MavenCoordinates artifact = feature . getMavenCoordinates ( ) ; File artifactDir = new File ( outputDir , Utils . getRepositorySubpath ( artifact ) ) ; artifa... | Copy artifact file from inputDir to outputDir . |
24,342 | private static void addMavenCoordinates ( File modifiedJsonFile , JsonArray jsonArray , Map < String , LibertyFeature > features ) throws IOException { JsonArrayBuilder jsonArrayBuilder = Json . createArrayBuilder ( ) ; for ( int i = 0 ; i < jsonArray . size ( ) ; i ++ ) { JsonObject jsonObject = jsonArray . getJsonObj... | Add Maven coordinates into the modified JSON file . |
24,343 | public List < LibertyFeature > getRequiredFeatures ( LibertyFeature feature , Map < String , LibertyFeature > allFeatures ) throws MavenRepoGeneratorException { List < LibertyFeature > dependencies = new ArrayList < LibertyFeature > ( ) ; Map < String , Collection < String > > requiredFeaturesWithTolerates = feature . ... | Gets the list of features that this feature depends on . |
24,344 | public void close ( int requestNumber ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "close" , requestNumber ) ; try { ConsumerSession cs = getConsumerSession ( ) ; if ( cs != null ) cs . close ( ) ; try { getConversation ( ) . send ( poolManager . allocate ( ... | Performs the generic session close . A response is sent to the client when this has been comleted . |
24,345 | public void unsetAsynchConsumerCallback ( int requestNumber , boolean stoppable ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "unsetAsynchConsumerCallback" , "requestNumber=" + requestNumber ) ; try { if ( stoppable ) { getConsumerSession ( ) . deregisterStop... | This method will unset an asynch callback . |
24,346 | public void start ( int requestNumber , boolean deliverImmediately , boolean sendReply , SendListener sendListener ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "start" , new Object [ ] { "" + requestNumber , "" + deliverImmediately , "" + sendReply , sendLis... | Performs the generic session start . No response is normally required to be sent to the client unless the sendReply parameter is true . |
24,347 | public int incrementCount ( ) { int depth = stackDepth . get ( ) ; depth = depth + 1 ; stackDepth . set ( depth ) ; return depth ; } | Increments the recursion count for this thread . |
24,348 | private static void validateFunctions ( ELNode . Nodes el , ValidateResult result , Element jspElement , HashMap prefixToUriMap ) throws JspTranslationException { el . visit ( new FVVisitor ( jspElement , result , prefixToUriMap ) ) ; } | Validate functions in EL expressions |
24,349 | public List < PropertyControl . ContextProperties > getContextProperties ( ) { if ( contextProperties == null ) { contextProperties = new ArrayList < PropertyControl . ContextProperties > ( ) ; } return this . contextProperties ; } | Gets the value of the contextProperties property . |
24,350 | private synchronized boolean getServerLock ( ) { Boolean fileExists = Boolean . FALSE ; final File sDir = lockFile ; try { fileExists = AccessController . doPrivileged ( new java . security . PrivilegedExceptionAction < Boolean > ( ) { public Boolean run ( ) throws Exception { if ( ! sDir . exists ( ) ) { return Boolea... | Try to obtain server lock |
24,351 | public synchronized void releaseServerLock ( ) { if ( serverLock != null ) { try { serverLock . release ( ) ; } catch ( IOException e ) { } finally { Utils . tryToClose ( lockFileChannel ) ; } serverLock = null ; lockFileChannel = null ; } } | Release server lock . |
24,352 | private int calculateWaitCyclesFromWaitTime ( ) { String serverWaitTime = System . getProperty ( BootstrapConstants . SERVER_START_WAIT_TIME ) ; if ( ( serverWaitTime == null ) || serverWaitTime . trim ( ) . equals ( "" ) ) { return BootstrapConstants . MAX_POLL_ATTEMPTS ; } int waitTime = 0 ; try { waitTime = Integer ... | Calculate the number of times to wait 500ms |
24,353 | public static void createServerRunningMarkerFile ( BootstrapConfig bootConfig ) { File serverWorkArea = bootConfig . getWorkareaFile ( null ) ; File serverRunningMarkerFile = null ; try { serverRunningMarkerFile = new File ( serverWorkArea , BootstrapConstants . SERVER_RUNNING_FILE ) ; serverRunningMarkerFile . deleteO... | Create a marker file when the server is running to determine if the JVM terminated normally . This file is deleted automatically when the JVM exits normally on a normal server stop . If the marker file already exists when the server is starting it assumes the JVM abended or the JVM process was forcefully terminated . I... |
24,354 | public void contextChange ( int typeOfChange ) throws IllegalStateException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { String type = "UNKNOWN" ; switch ( typeOfChange ) { case UOWCallback . PRE_BEGIN : type = "PRE_BEGIN" ; break ; case UOWCallback . POST_BEGIN : type = "POST_BEGIN" ;... | Notify registered callbacks of context change . |
24,355 | private void removeFile ( int index ) { String file = files . remove ( index ) ; FileLogUtils . deleteFile ( directory , file ) ; } | Remove and delete a file from the file list . |
24,356 | public Cursor newCursor ( String name ) { if ( tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "newCursor" , name ) ; Cursor cursor = new Cursor ( name , this , true ) ; if ( tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "newCursor" , cursor ) ; return cursor ; } | Synchronized . Creates a new cursor over this list initially sitting at the top of the list . |
24,357 | public Cursor newCursorAtBottom ( String name ) { if ( tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "newCursorAtBottom" , name ) ; Cursor cursor = new Cursor ( name , this , false ) ; if ( tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "newCursorAtBottom" , cursor ) ; return cursor ; } | Synchronized . Creates a new cursor over this list initially sitting at the bottoms of the list . |
24,358 | public Entry insertAtBottom ( Entry entry ) { if ( tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "insertAtBottom" , new Object [ ] { entry } ) ; if ( entry . parentList == null ) { if ( last == null ) { entry . previous = null ; entry . next = null ; first = entry ; last = entry ; entry . parentList = this ; } else { ... | Synchronized . Insert a new entry in to the list at the bottom . The new entry must not be already in any list including this one . |
24,359 | public Entry insertAfter ( Entry newEntry , Entry insertAfter ) { if ( tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "insertAfter" , new Object [ ] { newEntry , insertAfter } ) ; Entry insertedEntry = null ; if ( newEntry != null && insertAfter != null ) { insertedEntry = insertAfter . forceInsertAfter ( newEntry ) ; ... | Synchronized . Insert an entry into the list after a given one . The new entry must not already be in a list . The entry after which the new one is to be inserted must be in this list . |
24,360 | public void transfer ( LinkedList transferFrom ) { if ( tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "transfer" , new Object [ ] { transferFrom } ) ; synchronized ( transferFrom ) { Entry entry = transferFrom . first ; while ( entry != null ) { insertAtBottom ( entry . forceRemove ( ) ) ; entry = transferFrom . first... | Synchronized . Transfer all of the entries in a given list in to this one . This is the same as removing each one from the given list and inserting it in to this list at the bottom . |
24,361 | protected JPAApplInfo startingApplication ( JPAApplInfo applInfo ) throws RuntimeWarning { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) { Tr . entry ( tc , "startingApplication : " + applInfo . getApplName ( ) ) ; } String applName = applInfo . getAppl... | Process application starting event . |
24,362 | public void startedApplication ( JPAApplInfo applInfo ) throws RuntimeWarning { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "startedApplication : " + applInfo . getApplName ( ) ) ; if ( applInfo . getScopeSize ( ) == 0 ) { if ( isTra... | Process application started event . |
24,363 | public void destroyingApplication ( JPAApplInfo applInfo ) { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "destroyingApplication : " + applInfo . getApplName ( ) ) ; applInfo . closeAllScopeModules ( ) ; applList . remove ( applInfo .... | Process application destroying event . |
24,364 | protected Set < String > getSortedAppNames ( ) { if ( applList == null ) { return Collections . emptySet ( ) ; } Set < String > appNames = applList . keySet ( ) ; synchronized ( applList ) { return new TreeSet < String > ( appNames ) ; } } | Convenience method for trace that obtains a sorted list of the known JPA application names . This method is thread safe . |
24,365 | public < T extends EventListener > T createAsyncListener ( Class < T > classToCreate ) throws ServletException { return super . createListener ( classToCreate ) ; } | This method should only be used to create an AsyncListener as the WebApp31 . createListener no longer accepts AsyncListeners as per the specification . This method is currently called from AsyncContext31Impl . createListener . |
24,366 | @ Reference ( name = REFERENCE_LIBRARY , service = Library . class ) protected void setLibrary ( ServiceReference < Library > ref ) { libraryRef . setReference ( ref ) ; } | The reference target is specified via metatype |
24,367 | public static MatchResponse match ( SecurityConstraintCollection securityConstraintCollection , String resourceName , String method ) { MatchingStrategy matchingStrategy = getMatchingStrategy ( method ) ; return matchingStrategy . performMatch ( securityConstraintCollection , resourceName , method ) ; } | Determine what constraints match the given resource access . |
24,368 | protected CollectionMatch getCollectionMatch ( List < WebResourceCollection > webResourceCollections , String resourceName , String method ) { CollectionMatch bestMatch = getInitialCollectionMatch ( ) ; for ( WebResourceCollection webResourceCollection : webResourceCollections ) { CollectionMatch currentMatch = getColl... | Gets the match for the resource access . The web resource collections are individually used to determine what is the match for this resource access . The best match is selected . The seven standard HTTP methods are GET POST DELETE PUT HEAD OPTIONS and TRACE . |
24,369 | protected CollectionMatch selectBestCollectionMatch ( CollectionMatch previousMatch , CollectionMatch currentMatch ) { CollectionMatch bestMatch = null ; if ( previousMatch == null ) { bestMatch = currentMatch ; } else if ( previousMatch . isDenyMatchByOmission ( ) ) { bestMatch = previousMatch ; } else if ( currentMat... | Exact match is best then path match with longest URI matched finally extension match . |
24,370 | public String getFirstValidationGroupFromStack ( ) { if ( _validationGroupsStack != null && ! _validationGroupsStack . isEmpty ( ) ) { return _validationGroupsStack . getFirst ( ) ; } return null ; } | Gets the top of the validationGroups stack . |
24,371 | public void pushValidationGroupsToStack ( String validationGroups ) { if ( _validationGroupsStack == null ) { _validationGroupsStack = new LinkedList < String > ( ) ; } _validationGroupsStack . addFirst ( validationGroups ) ; } | Pushes validationGroups to the stack . |
24,372 | public void pushExcludedValidatorIdToStack ( String validatorId ) { if ( _excludedValidatorIdsStack == null ) { _excludedValidatorIdsStack = new LinkedList < String > ( ) ; } _excludedValidatorIdsStack . addFirst ( validatorId ) ; } | Pushes validatorId to the stack of excluded validatorIds . |
24,373 | private void increaseComponentLevelMarkedForDeletion ( ) { _deletionLevel ++ ; if ( _componentsMarkedForDeletion . size ( ) <= _deletionLevel ) { _componentsMarkedForDeletion . add ( new HashMap < String , UIComponent > ( ) ) ; } } | Add a level of components marked for deletion . |
24,374 | private void decreaseComponentLevelMarkedForDeletion ( ) { if ( ! _componentsMarkedForDeletion . get ( _deletionLevel ) . isEmpty ( ) ) { _componentsMarkedForDeletion . get ( _deletionLevel ) . clear ( ) ; } _deletionLevel -- ; } | Remove the last component level from the components marked to be deleted . The components are removed from this list because they are deleted from the tree . This is done in ComponentSupport . finalizeForDeletion . |
24,375 | private void markComponentForDeletion ( String id , UIComponent component ) { _componentsMarkedForDeletion . get ( _deletionLevel ) . put ( id , component ) ; } | Mark a component to be deleted from the tree . The component to be deleted is addded on the current level . This is done from ComponentSupport . markForDeletion |
24,376 | private UIComponent removeComponentForDeletion ( String id ) { UIComponent removedComponent = _componentsMarkedForDeletion . get ( _deletionLevel ) . remove ( id ) ; if ( removedComponent != null && _deletionLevel > 0 ) { _componentsMarkedForDeletion . get ( _deletionLevel - 1 ) . remove ( id ) ; } return removedCompon... | Remove a component from the last level of components marked to be deleted . |
24,377 | public ExternalAutoCommitTransaction createAutoCommitTransaction ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "createAutoCommitTransaction" ) ; ExternalAutoCommitTransaction instance = new MSAutoCommitTransaction ( _ms , _persistence , getMaximumTransactionSize (... | This method returns an object that represents a zero - phase or AutoCommit transaction . It can be used to ensure that a piece of work is carried out at once essentially outside of a transaction coordination scope . |
24,378 | public ExternalLocalTransaction createLocalTransaction ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "createLocalTransaction" ) ; ExternalLocalTransaction instance ; if ( _persistenceSupports1PCOptimisation ) { instance = new MSDelegatingLocalTransactionSynchroniz... | This method is used to create a LocalResource that can either be enlisted as a particpant in a WebSphere LocalTransactionCoordination scope or used directly to demarcate a one - phase Resource Manager Local Transaction . |
24,379 | public ExternalXAResource createXAResource ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "createXAResource" ) ; ExternalXAResource instance = new MSDelegatingXAResource ( _ms , _persistence , getMaximumTransactionSize ( ) ) ; if ( TraceComponent . isAnyTracingEnab... | This method is used to create an XAResource that can be enlisted as a particpant in a two - phase XA compliant transaction . |
24,380 | public Object getChannelAccessor ( ) { if ( tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "getChannelAccessor" ) ; if ( tc . isEntryEnabled ( ) ) SibTr . exit ( this , tc , "getChannelAccessor" , this ) ; return this ; } | Returns the interface provided by this channel . Always ourself . |
24,381 | public ConversationMetaData getMetaData ( ) { if ( tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "getMetaData" ) ; if ( tc . isEntryEnabled ( ) ) SibTr . exit ( this , tc , "getMetaData" , metaData ) ; return metaData ; } | begin D196678 . 10 . 1 |
24,382 | @ SuppressWarnings ( "unchecked" ) public void connect ( Object address ) throws Exception { if ( tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "connect" , address ) ; final JFapAddress jfapAddress = ( JFapAddress ) address ; if ( ( jfapAddress != null ) && ( jfapAddress . getAttachType ( ) == Conversation . CL... | end D196678 . 10 . 1 |
24,383 | private void buildSubJobBatchWorkUnits ( ) { List < Flow > flows = this . split . getFlows ( ) ; splitFlowWorkUnits = new ArrayList < BatchSplitFlowWorkUnit > ( ) ; for ( Flow flow : flows ) { JSLJob splitFlowJSLJob = ParallelStepBuilder . buildFlowInSplitSubJob ( runtimeWorkUnitExecution . getTopLevelInstanceId ( ) , ... | about reobtaining . |
24,384 | public String [ ] getShortPath ( ) { if ( path == null || path . length == 0 ) return null ; int index = 0 ; if ( path [ 0 ] . equals ( pmiroot ) ) { index = 1 ; } if ( index == 0 ) return path ; String [ ] ret = new String [ path . length - index ] ; for ( int i = 0 ; i < ret . length ; i ++ ) ret [ i ] = path [ i + i... | Returns the path of the PerfLevelDescriptor without the preleading pmi . |
24,385 | public int comparePath ( String [ ] otherPath ) { if ( path == null ) return - 1 ; else if ( otherPath == null ) return 1 ; int minLen = ( path . length < otherPath . length ) ? path . length : otherPath . length ; for ( int i = 0 ; i < minLen ; i ++ ) { int result = path [ i ] . compareTo ( otherPath [ i ] ) ; if ( re... | Returns 0 if exactly same |
24,386 | public boolean isSubPath ( String [ ] otherPath ) { if ( path == null || otherPath == null ) return false ; if ( path . length >= otherPath . length ) return false ; for ( int i = 0 ; i < path . length ; i ++ ) { int result = path [ i ] . compareTo ( otherPath [ i ] ) ; if ( result != 0 ) return false ; } return true ;... | Returns true if it s path is a subpath of otherPath |
24,387 | public String getModuleName ( ) { if ( moduleID != null ) { return moduleID ; } if ( path != null && path . length > MODULE_INDEX ) return path [ 1 ] ; else return null ; } | Returns the module name in the path |
24,388 | public String getSubmoduleName ( ) { if ( path != null && path . length > SUBMODULE_INDEX ) return path [ SUBMODULE_INDEX ] ; else return null ; } | Returns the submodule name in the path |
24,389 | private String getStoredReq ( HttpServletRequest req , ReferrerURLCookieHandler referrerURLHandler ) { String storedReq = referrerURLHandler . getReferrerURLFromCookies ( req , ReferrerURLCookieHandler . REFERRER_URL_COOKIENAME ) ; if ( storedReq != null ) { if ( storedReq . equals ( "/" ) ) storedReq = "" ; else if ( ... | Always be redirecting to a stored req with the web app ... strip any initial slash |
24,390 | private String getCustomReloginErrorPage ( HttpServletRequest req ) { String reLogin = CookieHelper . getCookieValue ( req . getCookies ( ) , ReferrerURLCookieHandler . CUSTOM_RELOGIN_URL_COOKIENAME ) ; if ( reLogin != null && reLogin . length ( ) > 0 ) { if ( reLogin . indexOf ( "?" ) < 0 ) reLogin += "?error=error" ;... | Get custom error page that specified in the custom login page |
24,391 | @ FFDCIgnore ( IllegalArgumentException . class ) private String evaluateBindDn ( boolean immediateOnly ) { try { return elHelper . processString ( "bindDn" , this . idStoreDefinition . bindDn ( ) , immediateOnly ) ; } catch ( IllegalArgumentException e ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isWarnin... | Evaluate and return the bindDn . |
24,392 | @ FFDCIgnore ( IllegalArgumentException . class ) private ProtectedString evaluateBindDnPassword ( boolean immediateOnly ) { String result ; try { result = elHelper . processString ( "bindDnPassword" , this . idStoreDefinition . bindDnPassword ( ) , immediateOnly , true ) ; } catch ( IllegalArgumentException e ) { if (... | Evaluate and return the bindDnPassword . |
24,393 | @ FFDCIgnore ( IllegalArgumentException . class ) private String evaluateCallerBaseDn ( boolean immediateOnly ) { try { return elHelper . processString ( "callerBaseDn" , this . idStoreDefinition . callerBaseDn ( ) , immediateOnly ) ; } catch ( IllegalArgumentException e ) { if ( TraceComponent . isAnyTracingEnabled ( ... | Evaluate and return the callerBaseDn . |
24,394 | @ FFDCIgnore ( IllegalArgumentException . class ) private String evaluateCallerNameAttribute ( boolean immediateOnly ) { try { return elHelper . processString ( "callerNameAttribute" , this . idStoreDefinition . callerNameAttribute ( ) , immediateOnly ) ; } catch ( IllegalArgumentException e ) { if ( TraceComponent . i... | Evaluate and return the callerNameAttribute . |
24,395 | @ FFDCIgnore ( IllegalArgumentException . class ) private String evaluateCallerSearchBase ( boolean immediateOnly ) { try { return elHelper . processString ( "callerSearchBase" , this . idStoreDefinition . callerSearchBase ( ) , immediateOnly ) ; } catch ( IllegalArgumentException e ) { if ( TraceComponent . isAnyTraci... | Evaluate and return the callerSearchBase . |
24,396 | @ FFDCIgnore ( IllegalArgumentException . class ) private String evaluateCallerSearchFilter ( boolean immediateOnly ) { try { return elHelper . processString ( "callerSearchFilter" , this . idStoreDefinition . callerSearchFilter ( ) , immediateOnly ) ; } catch ( IllegalArgumentException e ) { if ( TraceComponent . isAn... | Evaluate and return the callerSearchFilter . |
24,397 | @ FFDCIgnore ( IllegalArgumentException . class ) private LdapSearchScope evaluateCallerSearchScope ( boolean immediateOnly ) { try { return elHelper . processLdapSearchScope ( "callerSearchScopeExpression" , this . idStoreDefinition . callerSearchScopeExpression ( ) , this . idStoreDefinition . callerSearchScope ( ) ,... | Evaluate and return the callerSearchScope . |
24,398 | @ FFDCIgnore ( IllegalArgumentException . class ) private String evaluateGroupMemberAttribute ( boolean immediateOnly ) { try { return elHelper . processString ( "groupMemberAttribute" , this . idStoreDefinition . groupMemberAttribute ( ) , immediateOnly ) ; } catch ( IllegalArgumentException e ) { if ( TraceComponent ... | Evaluate and return the groupMemberAttribute . |
24,399 | @ FFDCIgnore ( IllegalArgumentException . class ) private String evaluateGroupMemberOfAttribute ( boolean immediateOnly ) { try { return elHelper . processString ( "groupMemberOfAttribute" , this . idStoreDefinition . groupMemberOfAttribute ( ) , immediateOnly ) ; } catch ( IllegalArgumentException e ) { if ( TraceComp... | Evaluate and return the groupMemberOfAttribute . |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.