idx int64 0 165k | question stringlengths 73 4.15k | target stringlengths 5 918 | len_question int64 21 890 | len_target int64 3 255 |
|---|---|---|---|---|
160,200 | synchronized void resetListFailed ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "resetListFailed" ) ; iRequestFailed = true ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "resetListFailed" ) ; } | Method indicates that the reset list failed - update the alarm to indicate that this failed . | 93 | 17 |
160,201 | @ Override public boolean isDeclaredAnnotationWithin ( Collection < String > annotationNames ) { if ( declaredAnnotations != null ) { for ( AnnotationInfo annotation : declaredAnnotations ) { if ( annotationNames . contains ( annotation . getAnnotationClassName ( ) ) ) { return true ; } } } return false ; } | Optimized to iterate across the declared annotations first . | 70 | 12 |
160,202 | private void readObject ( ObjectInputStream s ) throws IOException , ClassNotFoundException { ObjectInputStream . GetField getField = s . readFields ( ) ; version = getField . get ( "version" , 1 ) ; resourceAdapterKey = ( String ) getField . get ( "resourceAdapterKey" , null ) ; } | Overrides the default deserialization . | 72 | 9 |
160,203 | private void writeObject ( ObjectOutputStream s ) throws IOException { ObjectOutputStream . PutField putField = s . putFields ( ) ; putField . put ( "version" , version ) ; putField . put ( "resourceAdapterKey" , resourceAdapterKey ) ; s . writeFields ( ) ; } | Overrides the default serialization . | 68 | 8 |
160,204 | static void notifyTimeout ( ) { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "notifyTimeout" ) ; synchronized ( SUSPEND_LOCK ) { // Check if there are any outstanding suspends if ( _tokenManager . isResumable ( ) ) { if ( tc . isEventEnabled ( ) ) Tr . event ( tc , "Resuming recovery log service following a suspension timeout" ) ; _isSuspended = false ; Tr . info ( tc , "CWRLS0023_RESUME_RLS" ) ; // Notify all waiting threads that // normal service is resumed SUSPEND_LOCK . notifyAll ( ) ; } } if ( tc . isEntryEnabled ( ) ) Tr . exit ( tc , "notifyTimeout" ) ; } | Called by the RLSSuspendTokenManager in the event of a suspension timeout occurring | 171 | 18 |
160,205 | protected synchronized final Transaction getExternalTransaction ( ) { final String methodName = "getExternalTransaction" ; if ( Tracing . isAnyTracingEnabled ( ) && trace . isEntryEnabled ( ) ) trace . entry ( this , cclass , methodName ) ; Transaction transaction = null ; // For return. if ( transactionReference != null ) transaction = ( Transaction ) transactionReference . get ( ) ; if ( transaction == null ) { transaction = new Transaction ( this ) ; // Make a WeakReference that becomes Enqueued as a result of the external Transaction becoming unreferenced. transactionReference = new TransactionReference ( this , transaction ) ; } // if (transaction == null). if ( Tracing . isAnyTracingEnabled ( ) && trace . isEntryEnabled ( ) ) trace . exit ( this , cclass , methodName , new Object [ ] { transaction } ) ; return transaction ; } | Create the extrnal transaction for use by the public interface from this InternalTransaction . | 188 | 17 |
160,206 | protected synchronized void requestCallback ( Token token , Transaction transaction ) throws ObjectManagerException { final String methodName = "requestCallback" ; if ( Tracing . isAnyTracingEnabled ( ) && trace . isEntryEnabled ( ) ) trace . entry ( this , cclass , methodName , new Object [ ] { token , transaction } ) ; // To defend against two application threads completing the same transaction and trying to // continue with it at the same time we check that the Transaction still refers to this one, // now that we are synchronized on the InternalTransaction. if ( transaction . internalTransaction != this ) { if ( Tracing . isAnyTracingEnabled ( ) && trace . isEntryEnabled ( ) ) trace . exit ( this , cclass , methodName , new Object [ ] { "via InvalidTransactionException" , transaction . internalTransaction } ) ; // Same behaviour as if the transaction was completed and replaced by // objectManagerState.dummyInternalTransaction. throw new InvalidStateException ( this , InternalTransaction . stateTerminated , InternalTransaction . stateNames [ InternalTransaction . stateTerminated ] ) ; } // if (transaction.internalTransaction != this) // Make the state change, to see if we can accept requestCallBack requests. // We only accept the request if we will make a callback. setState ( nextStateForRequestCallback ) ; // The object is now listed for prePrepare etc. callback. callbackTokens . add ( token ) ; if ( Tracing . isAnyTracingEnabled ( ) && trace . isEntryEnabled ( ) ) trace . exit ( this , cclass , methodName ) ; } | Note a request for the Token in the transaction to be called at prePrepare preCommit preBackout postCommit and postBackout . | 338 | 30 |
160,207 | protected synchronized void addFromCheckpoint ( ManagedObject managedObject , Transaction transaction ) throws ObjectManagerException { final String methodName = "addFromCheckpoint" ; if ( Tracing . isAnyTracingEnabled ( ) && trace . isEntryEnabled ( ) ) trace . entry ( this , cclass , methodName , new Object [ ] { managedObject , transaction } ) ; // Make the ManagedObject ready for an addition. // Nothing went wrong during forward processing! managedObject . preAdd ( transaction ) ; // Only persistent objects are recovered from a checkpoint. setState ( nextStateForInvolvePersistentObjectFromCheckpoint ) ; // The object is now included in the transaction. includedManagedObjects . put ( managedObject . owningToken , managedObject ) ; // The ManagedObject was read from the ObjectStore, give it a low log // and ManagedObject sequence number so that any later operation will supercede this one. // The loggedSerialisedBytes will be unchanged, possibly null for this Token. // If there already a logSequenceNumber known for this token it must have been put // there after the checkpoint start and has already been superceded. if ( ! logSequenceNumbers . containsKey ( managedObject . owningToken ) ) { logSequenceNumbers . put ( managedObject . owningToken , new Long ( 0 ) ) ; managedObjectSequenceNumbers . put ( managedObject . owningToken , new Long ( 0 ) ) ; } // if (!logSequenceNumbers.containsKey(managedObject.owningToken)). // Redrive the postAdd method for the object. managedObject . postAdd ( transaction , true ) ; if ( Tracing . isAnyTracingEnabled ( ) && trace . isEntryEnabled ( ) ) trace . exit ( this , cclass , methodName ) ; } | Recover an Add operation from a checkpoint . | 382 | 9 |
160,208 | protected synchronized void replaceFromCheckpoint ( ManagedObject managedObject , byte [ ] serializedBytes , Transaction transaction ) throws ObjectManagerException { final String methodName = "replaceFromCheckpoint" ; if ( Tracing . isAnyTracingEnabled ( ) && trace . isEntryEnabled ( ) ) trace . entry ( this , cclass , methodName , new Object [ ] { managedObject , new Integer ( serializedBytes . length ) , transaction } ) ; // Make the ManagedObject ready for a replace operation. // Nothing went wrong during forward processing! managedObject . preReplace ( transaction ) ; // Only persistent objects are recovered from a checkpoint. setState ( nextStateForInvolvePersistentObjectFromCheckpoint ) ; // The object is now included in the transaction. includedManagedObjects . put ( managedObject . owningToken , managedObject ) ; // The ManagedObject was read from the log, give it a low log // and ManagedObject sequence number so that any later operation will supercede this one. // The loggedSerialisedBytes will be unchanged, possibly null for this Token. // If there already a logSequenceNumber known for this token it must have been put // there after the checkpoint start and has already been superceded. if ( ! logSequenceNumbers . containsKey ( managedObject . owningToken ) ) { logSequenceNumbers . put ( managedObject . owningToken , new Long ( 0 ) ) ; managedObjectSequenceNumbers . put ( managedObject . owningToken , new Long ( 0 ) ) ; // Remember what we originally logged in case we commit this version of the ManagedObject. // Replacements are not written to the ObjectStore for a checkpoint becauise that would // remove any before image which we would need if the object backed out. loggedSerializedBytes . put ( managedObject . owningToken , serializedBytes ) ; } // if (!logSequenceNumbers.containsKey(token)). // Redrive the postReplace method for the object. managedObject . postReplace ( transaction , true ) ; if ( Tracing . isAnyTracingEnabled ( ) && trace . isEntryEnabled ( ) ) trace . exit ( this , cclass , methodName ) ; } | Recover a Replace operation from a checkpoint . | 466 | 9 |
160,209 | protected synchronized void prepare ( Transaction transaction ) throws ObjectManagerException { if ( Tracing . isAnyTracingEnabled ( ) && trace . isEntryEnabled ( ) ) trace . entry ( this , cclass , "prepare" , "transaction=" + transaction + "(Trasnaction)" ) ; // To defend against two application threads completing the same transaction and trying to // continue with it at the same time we check that the Transaction still refers to this one, // now that we are synchronized on the InternalTransaction. if ( transaction . internalTransaction != this ) { if ( Tracing . isAnyTracingEnabled ( ) && trace . isEntryEnabled ( ) ) trace . exit ( this , cclass , "prepare" , new Object [ ] { "via InvalidTransactionException" , transaction . internalTransaction } ) ; // Same behaviour as if the transaction was completed and replaced by // objectManagerState.dummyInternalTransaction. throw new InvalidStateException ( this , InternalTransaction . stateTerminated , InternalTransaction . stateNames [ InternalTransaction . stateTerminated ] ) ; } // if (transaction.internalTransaction != this). prePrepare ( transaction ) ; // Give ManagedObjects a chance to get ready. // Is there any logging to do? if ( state == statePrePreparedPersistent ) { // Logging work to do. TransactionPrepareLogRecord transactionPrepareLogRecord = new TransactionPrepareLogRecord ( this ) ; objectManagerState . logOutput . writeNext ( transactionPrepareLogRecord , 0 , true , true ) ; } // If logging work to do. // ManagedObjects do nothing at prepare time. // // Drive prepare method of objects included in this transaction. // for (java.util.Iterator managedObjectIterator = includedManagedObjects.iterator(); // managedObjectIterator.hasNext(); // ) { // ManagedObject managedObject = (ManagedObject)managedObjectIterator.next(); // managedObject.prepare(transaction); // } // for... includedManagedObjects. setState ( nextStateForPrepare ) ; if ( Tracing . isAnyTracingEnabled ( ) && trace . isEntryEnabled ( ) ) trace . exit ( this , cclass , "prepare" ) ; } | Prepare the transaction . After execution of this method the users of this transaction shall not perform any further work as part of the logical unit of work or modify any of the objects that are referenced by the transaction . | 473 | 42 |
160,210 | void preBackout ( Transaction transaction ) throws ObjectManagerException { final String methodName = "preBackout" ; if ( Tracing . isAnyTracingEnabled ( ) && trace . isEntryEnabled ( ) ) trace . entry ( this , cclass , methodName , new Object [ ] { transaction } ) ; // Allow any last minute changes before we backout. for ( java . util . Iterator tokenIterator = callbackTokens . iterator ( ) ; tokenIterator . hasNext ( ) ; ) { Token token = ( Token ) tokenIterator . next ( ) ; ManagedObject managedObject = token . getManagedObject ( ) ; // Drive the preBackout method for the object. managedObject . preBackout ( transaction ) ; } // for... callbackTokens. if ( Tracing . isAnyTracingEnabled ( ) && trace . isEntryEnabled ( ) ) trace . exit ( this , cclass , methodName ) ; } | Before the transaction is backed out give the ManagedObjects a chance to adjust their transient state to reflect the final outcome . It is too late for them to adjust persistent state as that is already written to the log assuming an outcome of Commit . | 196 | 49 |
160,211 | private final void complete ( boolean reUse , Transaction transaction ) throws ObjectManagerException { final String methodName = "complete" ; if ( Tracing . isAnyTracingEnabled ( ) && trace . isEntryEnabled ( ) ) trace . entry ( this , cclass , methodName , new Object [ ] { new Boolean ( reUse ) , transaction } ) ; // No longer any need to include this transaction in a Checkpoint. requiresPersistentCheckpoint = false ; // Clear any remaining state. logicalUnitOfWork . XID = null ; transactionLock = new TransactionLock ( this ) ; includedManagedObjects . clear ( ) ; callbackTokens . clear ( ) ; allPersistentTokensToNotify . clear ( ) ; loggedSerializedBytes . clear ( ) ; logSequenceNumbers . clear ( ) ; managedObjectSequenceNumbers . clear ( ) ; useCount ++ ; if ( reUse ) { // Reset the transaction for further use. // Note that we do not clear the transactionReference because the caller is still holding it. // If the caller releases his reference then the reference will be found by ObjectManagerState // and this InternalTransaction may be reused for another external Transaction. } else { // Do not chain. // Make sure the external Transaction cannot reach this internal one. transaction . internalTransaction = objectManagerState . dummyInternalTransaction ; // This may not be sufficient to prevent its being used if the external Transaction already has passed // the point where it has picked up the referenece to the Internaltransaction. Hence we terminate the // InternalTransaction if it is preemptively backed out. See ObjectManagerstate.performCheckpoint() // where transactions are backed out without holding the internal transaction synchronize lock. if ( transactionReference != null ) transactionReference . clear ( ) ; // Inhibt an enqueue of the transactionReference. // If a reference is enqueued we are already in inactive state for this // transactionReferenceSequence so no action will occur. // Tell the ObjectManager that we no longer exist as an active transaction. objectManagerState . deRegisterTransaction ( this ) ; } // if (reUse). if ( Tracing . isAnyTracingEnabled ( ) && trace . isEntryEnabled ( ) ) trace . exit ( this , cclass , methodName ) ; } | Tidy up after Commit or Backout have finished all work for this InternalTransaction . | 476 | 17 |
160,212 | protected synchronized void terminate ( int reason ) throws ObjectManagerException { final String methodName = "terminate" ; if ( Tracing . isAnyTracingEnabled ( ) && trace . isEntryEnabled ( ) ) trace . entry ( this , cclass , methodName , new Object [ ] { new Integer ( reason ) } ) ; if ( transactionReference != null ) { Transaction transaction = ( Transaction ) transactionReference . get ( ) ; /** * PM00131 - transaction is coming from a WeakReference, check it isn't null. * If we've lost the reference, there isn't any point making a new one * just to set a reason code on it. Nobody will have a reference to the * new object with which to retrieve the code. **/ if ( transaction != null ) transaction . setTerminationReason ( reason ) ; } setState ( nextStateForTerminate ) ; // Any attempt by any therad to do anything with this Transaction // from now on will result in a StateErrorException. if ( Tracing . isAnyTracingEnabled ( ) && trace . isEntryEnabled ( ) ) trace . exit ( this , cclass , methodName ) ; } | Permanently disable use of this transaction . reason the Transaction . terininatedXXX reason | 243 | 18 |
160,213 | protected synchronized void shutdown ( ) throws ObjectManagerException { if ( Tracing . isAnyTracingEnabled ( ) && trace . isEntryEnabled ( ) ) trace . entry ( this , cclass , "shutDown" ) ; setState ( nextStateForShutdown ) ; // Any attempt by any therad to do anything with this Transaction // from now on will result in a InvalidStateException. if ( Tracing . isAnyTracingEnabled ( ) && trace . isEntryEnabled ( ) ) trace . exit ( this , cclass , "shutdown" ) ; } | Run at shutdown of the ObjectManager to close activity . | 119 | 11 |
160,214 | protected final void setRequiresCheckpoint ( ) { final String methodName = "setRequiresCheckpoint" ; if ( Tracing . isAnyTracingEnabled ( ) && trace . isEntryEnabled ( ) ) trace . entry ( this , cclass , methodName , new Object [ ] { new Boolean ( requiresPersistentCheckpoint ) } ) ; // The states for which a checkpoint log Record must be written to the log unless this transactions ends first. // Has any logging been done? If The transaction enters one of thse states after this // call then all of its state will be in the log after CheckpointStart. final boolean checkpointRequired [ ] = { false , false , false , true // ActivePersistent. , false , false , true // PrePreparedPersistent. , false , false , true // PreparedPersistent. , false , false , true // CommitingPersistent. Not needed because of synchronize in commit. , false , false , true // BackingOutPersistent. Not needed because of synchronize in commit. , false } ; requiresPersistentCheckpoint = checkpointRequired [ state ] ; if ( Tracing . isAnyTracingEnabled ( ) && trace . isEntryEnabled ( ) ) trace . exit ( this , cclass , methodName , new Object [ ] { new Boolean ( requiresPersistentCheckpoint ) } ) ; } | Mark this InternalTransaction as requiring a Checkpoint in the current checkpoint cycle . | 283 | 15 |
160,215 | @ Override public void afterCompletion ( int status ) { if ( status == Status . STATUS_COMMITTED ) { Boolean previous = persistentExecutor . inMemoryTaskIds . put ( taskId , Boolean . TRUE ) ; if ( previous == null ) { long delay = expectedExecTime - new Date ( ) . getTime ( ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) Tr . debug ( this , tc , "Schedule " + taskId + " for " + delay + "ms from now" ) ; persistentExecutor . scheduledExecutor . schedule ( this , delay , TimeUnit . MILLISECONDS ) ; } else { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) Tr . debug ( this , tc , "Found task " + taskId + " already scheduled" ) ; } } } | Upon successful transaction commit automatically schedules a task for execution in the near future . | 198 | 15 |
160,216 | @ FFDCIgnore ( Throwable . class ) @ Sensitive private byte [ ] serializeResult ( Object result , ClassLoader loader ) throws IOException { try { return persistentExecutor . serialize ( result ) ; } catch ( Throwable x ) { return persistentExecutor . serialize ( new TaskFailure ( x , loader , persistentExecutor , TaskFailure . NONSER_RESULT , result . getClass ( ) . getName ( ) ) ) ; } } | Utility method that serializes a task result or the failure that occurred when attempting to serialize the task result . | 100 | 23 |
160,217 | protected Converter createConverter ( FaceletContext ctx ) throws FacesException , ELException , FaceletException { return ctx . getFacesContext ( ) . getApplication ( ) . createConverter ( NumberConverter . CONVERTER_ID ) ; } | Returns a new NumberConverter | 60 | 7 |
160,218 | public void queueDataReceivedInvocation ( Connection connection , ReceiveListener listener , WsByteBuffer data , int segmentType , int requestNumber , int priority , boolean allocatedFromBufferPool , boolean partOfExchange , Conversation conversation ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "queueDataReceivedInvocation" , new Object [ ] { connection , listener , data , "" + segmentType , "" + requestNumber , "" + priority , "" + allocatedFromBufferPool , "" + partOfExchange , conversation } ) ; int dataSize = 0 ; if ( dispatcherEnabled ) dataSize = data . position ( ) ; // D240062 AbstractInvocation invocation = allocateDataReceivedInvocation ( connection , listener , data , dataSize , segmentType , requestNumber , priority , allocatedFromBufferPool , partOfExchange , conversation ) ; queueInvocationCommon ( invocation , ( ConversationImpl ) conversation ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( this , tc , "queueDataReceivedInvocation" ) ; } | Queues the invocation of a data received method into the dispatcher . | 256 | 13 |
160,219 | public static ReceiveListenerDispatcher getInstance ( Conversation . ConversationType convType , boolean isOnClientSide ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "getInstance" , new Object [ ] { "" + convType , "" + isOnClientSide } ) ; ReceiveListenerDispatcher retInstance ; // A conversation has type CLIENT if it is an Outbound or Inbound connection from a JetStream // client. The client side RLD is different from the server side RLD, so we need the // isOnClientSide flag to distinguish them. // A conversation has type ME if it is an Outbound or Inbound connection from another ME. if ( convType == Conversation . CLIENT ) { if ( isOnClientSide ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) SibTr . debug ( tc , "Returning client instance" ) ; synchronized ( ReceiveListenerDispatcher . class ) { if ( clientInstance == null ) { clientInstance = new ReceiveListenerDispatcher ( true , true ) ; // Client side of ME-Client conversation } } retInstance = clientInstance ; } else { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) SibTr . debug ( tc , "Returning server instance" ) ; synchronized ( ReceiveListenerDispatcher . class ) { if ( serverInstance == null ) { serverInstance = new ReceiveListenerDispatcher ( false , true ) ; // ME side of ME-Client conversation } } retInstance = serverInstance ; } } else { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) SibTr . debug ( tc , "Returning ME-ME instance" ) ; synchronized ( ReceiveListenerDispatcher . class ) { if ( meInstance == null ) { meInstance = new ReceiveListenerDispatcher ( false , false ) ; // ME-ME conversation } } retInstance = meInstance ; } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "getInstance" , retInstance ) ; return retInstance ; } | Return a reference to the instance of this class . Used to implement the singleton design pattern . | 493 | 19 |
160,220 | public static boolean isCommandLine ( ) { String output = AccessController . doPrivileged ( new PrivilegedAction < String > ( ) { @ Override public String run ( ) { return System . getProperty ( "wlp.process.type" ) ; } } ) ; boolean value = true ; if ( output != null && ( "server" . equals ( output ) || "client" . equals ( output ) ) ) { value = false ; } if ( logger . isLoggable ( Level . FINE ) ) { logger . fine ( "value: " + value ) ; } return value ; } | Returns true when the value of wlp . process . type is neither server nor client . false otherwise . | 128 | 21 |
160,221 | public static String getInstallRoot ( ) { return AccessController . doPrivileged ( new PrivilegedAction < String > ( ) { @ Override public String run ( ) { String output = System . getProperty ( "wlp.install.dir" ) ; if ( output == null ) { output = System . getenv ( "WLP_INSTALL_DIR" ) ; } if ( output == null ) { // if neither of these is set. use the location where the class is loaded. URL url = CLASS_NAME . getProtectionDomain ( ) . getCodeSource ( ) . getLocation ( ) ; try { output = new File ( url . toString ( ) . substring ( "file:" . length ( ) ) ) . getParentFile ( ) . getParentFile ( ) . getCanonicalPath ( ) ; } catch ( IOException e ) { // this condition should not happen, but if that's the case, use current directory. output = "." ; if ( logger . isLoggable ( Level . FINE ) ) { logger . fine ( "The install root was not detected. " + e . getMessage ( ) ) ; } } } if ( logger . isLoggable ( Level . FINE ) ) { logger . fine ( "The install root is " + output ) ; } return output ; } } ) ; } | Returns the installation root . If it wasn t detected use current directory . | 287 | 14 |
160,222 | public static ResourceBundle getResourceBundle ( File location , String name , Locale locale ) { File [ ] files = new File [ ] { new File ( location , name + "_" + locale . toString ( ) + RESOURCE_FILE_EXT ) , new File ( location , name + "_" + locale . getLanguage ( ) + RESOURCE_FILE_EXT ) , new File ( location , name + RESOURCE_FILE_EXT ) } ; for ( File file : files ) { if ( exists ( file ) ) { try { return new PropertyResourceBundle ( new FileReader ( file ) ) ; } catch ( IOException e ) { if ( logger . isLoggable ( Level . FINE ) ) { logger . fine ( "The resource file was not loaded. The exception is " + e . getMessage ( ) ) ; } } } } return null ; } | find the best matching resouce bundle of the specified resouce file name . | 187 | 17 |
160,223 | public static List < CustomManifest > findCustomEncryption ( String extension ) throws IOException { List < File > dirs = listRootAndExtensionDirectories ( ) ; return findCustomEncryption ( dirs , TOOL_EXTENSION_DIR + extension ) ; } | Find the URL of the jar file which includes specified class . If there is none return empty array . | 59 | 20 |
160,224 | protected static List < CustomManifest > findCustomEncryption ( List < File > rootDirs , String path ) throws IOException { List < CustomManifest > list = new ArrayList < CustomManifest > ( ) ; for ( File dir : rootDirs ) { dir = new File ( dir , path ) ; if ( exists ( dir ) ) { File [ ] files = listFiles ( dir ) ; if ( files != null ) { for ( File file : files ) { if ( isFile ( file ) && file . getName ( ) . toLowerCase ( ) . endsWith ( JAR_FILE_EXT ) ) { if ( logger . isLoggable ( Level . FINE ) ) { logger . fine ( "The extension manifest file : " + file ) ; } try { CustomManifest cm = new CustomManifest ( file ) ; list . add ( cm ) ; } catch ( IllegalArgumentException iae ) { if ( logger . isLoggable ( Level . INFO ) ) { logger . info ( MessageUtils . getMessage ( "PASSWORDUTIL_ERROR_IN_EXTENSION_MANIFEST_FILE" , file , iae . getMessage ( ) ) ) ; } } } } } } } return list ; } | Find the custom encryption manifest files from the specified list of root directories and path name . The reason why there are multiple root directories is that the product extensions which will allow to add the additional root directory anywhere . | 270 | 41 |
160,225 | @ Override public NetworkTransportFactory getNetworkTransportFactory ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "getNetworkTransportFactory" ) ; NetworkTransportFactory factory = new RichClientTransportFactory ( framework ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( this , tc , "getNetworkTransportFactory" , factory ) ; return factory ; } | This method is our entry point into the Channel Framework implementation of the JFap Framework interfaces . | 118 | 19 |
160,226 | @ Override public Map getOutboundConnectionProperties ( String outboundTransportName ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "getOutboundConnectionProperties" , outboundTransportName ) ; ChainData chainData = framework . getChain ( outboundTransportName ) ; // Obtain properties for outbound channel ChannelData [ ] channelList = chainData . getChannelList ( ) ; Map properties = null ; if ( channelList . length > 0 ) { properties = channelList [ 0 ] . getPropertyBag ( ) ; } else { throw new SIErrorException ( nls . getFormattedMessage ( "OUTCONNTRACKER_INTERNAL_SICJ0064" , null , "OUTCONNTRACKER_INTERNAL_SICJ0064" ) ) ; } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( this , tc , "getOutboundConnectionProperties" , properties ) ; return properties ; } | This method will retrieve the property bag on the named chain so that it can be determined what properties have been set on it . | 247 | 25 |
160,227 | @ Override public Map getOutboundConnectionProperties ( Object ep ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "getOutboundConnectionProperties" , ep ) ; Map properties = null ; if ( ep instanceof CFEndPoint ) { OutboundChannelDefinition [ ] channelDefinitions = ( OutboundChannelDefinition [ ] ) ( ( CFEndPoint ) ep ) . getOutboundChannelDefs ( ) . toArray ( ) ; if ( channelDefinitions . length < 1 ) throw new SIErrorException ( nls . getFormattedMessage ( "OUTCONNTRACKER_INTERNAL_SICJ0064" , null , "OUTCONNTRACKER_INTERNAL_SICJ0064" ) ) ; properties = channelDefinitions [ 0 ] . getOutboundChannelProperties ( ) ; } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( this , tc , "getOutboundConnectionProperties" , properties ) ; return properties ; } | This method will retrieve the property bag on the outbound chain that will be used by the specified end point . This method is only valid for CFEndPoints . | 249 | 32 |
160,228 | @ Override public InetAddress getHostAddress ( Object endPoint ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "getHostAddress" , endPoint ) ; InetAddress address = null ; if ( endPoint instanceof CFEndPoint ) { address = ( ( CFEndPoint ) endPoint ) . getAddress ( ) ; } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( this , tc , "getHostAddress" , address ) ; return address ; } | Retrieves the host address from the specified CFEndPoint . | 137 | 13 |
160,229 | @ Override public int getHostPort ( Object endPoint ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "getHostPort" , endPoint ) ; int port = 0 ; if ( endPoint instanceof CFEndPoint ) { port = ( ( CFEndPoint ) endPoint ) . getPort ( ) ; } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( this , tc , "getHostPort" , Integer . valueOf ( port ) ) ; return port ; } | Retrieves the host port from the specified CFEndPoint . | 139 | 13 |
160,230 | @ Override public boolean areEndPointsEqual ( Object ep1 , Object ep2 ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "areEndPointsEqual" , new Object [ ] { ep1 , ep2 } ) ; boolean isEqual = false ; if ( ep1 instanceof CFEndPoint && ep2 instanceof CFEndPoint ) { CFEndPoint cfEp1 = ( CFEndPoint ) ep1 ; CFEndPoint cfEp2 = ( CFEndPoint ) ep2 ; // The CFW does not provide an equals method for its endpoints. // We need to manually equals the important bits up isEqual = isEqual ( cfEp1 . getAddress ( ) , cfEp2 . getAddress ( ) ) && isEqual ( cfEp1 . getName ( ) , cfEp2 . getName ( ) ) && cfEp1 . getPort ( ) == cfEp2 . getPort ( ) && cfEp1 . isLocal ( ) == cfEp2 . isLocal ( ) && cfEp1 . isSSLEnabled ( ) == cfEp2 . isSSLEnabled ( ) ; } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( this , tc , "areEndPointsEqual" , Boolean . valueOf ( isEqual ) ) ; return isEqual ; } | The channel framework EP s don t have their own equals method - so one is implemented here by comparing the various parts of the EP . | 320 | 27 |
160,231 | @ Override public int getEndPointHashCode ( Object ep ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "getEndPointHashCode" , ep ) ; int hashCode = 0 ; if ( ep instanceof CFEndPoint ) { CFEndPoint cfEndPoint = ( CFEndPoint ) ep ; if ( cfEndPoint . getAddress ( ) != null ) hashCode = hashCode ^ cfEndPoint . getAddress ( ) . hashCode ( ) ; if ( cfEndPoint . getName ( ) != null ) hashCode = hashCode ^ cfEndPoint . getName ( ) . hashCode ( ) ; } if ( hashCode == 0 ) hashCode = hashCode ^ ep . hashCode ( ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( this , tc , "getEndPointHashCode" , Integer . valueOf ( hashCode ) ) ; return hashCode ; } | The channel framework EP s don t have their own hashCode method - so one is implemented here using the various parts of the EP . | 228 | 27 |
160,232 | private CFEndPoint cloneEndpoint ( final CFEndPoint originalEndPoint ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "cloneEndpoint" , originalEndPoint ) ; CFEndPoint endPoint ; ByteArrayOutputStream baos = null ; ObjectOutputStream out = null ; ObjectInputStream in = null ; try { baos = new ByteArrayOutputStream ( ) ; out = new ObjectOutputStream ( baos ) ; out . writeObject ( originalEndPoint ) ; out . flush ( ) ; ClassLoader cl = AccessController . doPrivileged ( new PrivilegedAction < ClassLoader > ( ) { @ Override public ClassLoader run ( ) { return Thread . currentThread ( ) . getContextClassLoader ( ) ; } } ) ; in = new DeserializationObjectInputStream ( new ByteArrayInputStream ( baos . toByteArray ( ) ) , cl ) ; endPoint = ( CFEndPoint ) in . readObject ( ) ; } catch ( IOException e ) { FFDCFilter . processException ( e , CLASS_NAME + ".cloneEndpoint" , JFapChannelConstants . RICHCLIENTFRAMEWORK_CLONE_01 , this ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) SibTr . debug ( this , tc , "Caught IOException copying endpoint" , e ) ; //Use input parameter. endPoint = originalEndPoint ; } catch ( ClassNotFoundException e ) { FFDCFilter . processException ( e , CLASS_NAME + ".cloneEndpoint" , JFapChannelConstants . RICHCLIENTFRAMEWORK_CLONE_02 , this ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) SibTr . debug ( this , tc , "Caught ClassNotFoundException copying endpoint" , e ) ; //Use input parameter. endPoint = originalEndPoint ; } finally { //Tidy up resources. try { if ( out != null ) { out . close ( ) ; } if ( in != null ) { in . close ( ) ; } } catch ( IOException e ) { //No FFDC code needed. //Absorb any exceptions as we no longer care. } } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( this , tc , "cloneEndpoint" , endPoint ) ; return endPoint ; } | Creates a copy of originalEndPoint . This is to prevent us causing problems when we change it . As there is no exposed way to do this we will use serialization . It may be a bit slow but it is implementation safe as the implementation of CFEndPoint is designed to be serialized by WLM . Plus we only need to do this when creating the original connection so it is not main line code . | 552 | 84 |
160,233 | private Throwable getCause ( Throwable t ) { Throwable cause = t . getCause ( ) ; if ( t . getCause ( ) != null ) { return cause ; } else { return t ; } } | get if cause exists else return the original exception | 45 | 9 |
160,234 | public String traceLogFormat ( LogRecord logRecord , Object id , String formattedMsg , String formattedVerboseMsg ) { final String txt ; if ( formattedVerboseMsg == null ) { // If we don't already have a formatted message... (for Audit or Info or Warning.. ) // we have to build something instead (while avoiding a useless resource bundle lookup) txt = formatVerboseMessage ( logRecord , formattedMsg , false ) ; } else { txt = formattedVerboseMsg ; } return createFormattedString ( logRecord , id , txt ) ; } | Format a detailed record for trace . log . Previously formatted messages may be provided and may be reused if possible . | 125 | 22 |
160,235 | private Object formatVerboseObj ( Object obj ) { // Make sure that we don't truncate any stack traces during verbose logging if ( obj instanceof TruncatableThrowable ) { TruncatableThrowable truncatable = ( TruncatableThrowable ) obj ; final Throwable wrappedException = truncatable . getWrappedException ( ) ; return DataFormatHelper . throwableToString ( wrappedException ) ; } else if ( obj instanceof Throwable ) { return DataFormatHelper . throwableToString ( ( Throwable ) obj ) ; } return null ; } | Format an object for a verbose message . | 127 | 9 |
160,236 | protected String formatStreamOutput ( GenericData genData ) { String txt = null ; String loglevel = null ; KeyValuePair kvp = null ; KeyValuePair [ ] pairs = genData . getPairs ( ) ; for ( KeyValuePair p : pairs ) { if ( p != null && ! p . isList ( ) ) { kvp = p ; if ( kvp . getKey ( ) . equals ( "message" ) ) { txt = kvp . getStringValue ( ) ; } else if ( kvp . getKey ( ) . equals ( "loglevel" ) ) { loglevel = kvp . getStringValue ( ) ; } } } String message = BaseTraceService . filterStackTraces ( txt ) ; if ( message != null ) { if ( loglevel . equals ( "SystemErr" ) ) { message = "[err] " + message ; } } return message ; } | Outputs filteredStream of genData | 205 | 7 |
160,237 | private void createTimeout ( IAbstractAsyncFuture future , long delay , boolean isRead ) { if ( AsyncProperties . disableTimeouts ) { return ; } // create the timeout time, while not holding the lock long timeoutTime = ( System . currentTimeMillis ( ) + delay + Timer . timeoutRoundup ) & Timer . timeoutResolution ; synchronized ( future . getCompletedSemaphore ( ) ) { // make sure it didn't complete while we were getting here if ( ! future . isCompleted ( ) ) { timer . createTimeoutRequest ( timeoutTime , this . callback , future ) ; } } } | Create the delayed timeout work item for this request . | 131 | 10 |
160,238 | public void refresh ( ) { this . productProperties = new Properties ( ) ; FileInputStream fis = null ; try { fis = new FileInputStream ( new File ( this . installDir , PRODUCT_PROPERTIES_PATH ) ) ; this . productProperties . load ( fis ) ; } catch ( Exception e ) { } finally { InstallUtils . close ( fis ) ; } featureDefs = null ; installFeatureDefs = null ; mfp = null ; } | Resets productProperties featureDefs installFeatureDefs and mfp . | 106 | 16 |
160,239 | public static RequestMetadata getRequestMetadata ( ) { RequestMetadata metadata = threadLocal . get ( ) ; if ( metadata == null ) metadata = getNoMetadata ( ) ; return metadata ; } | Gets the metadata for the current request | 43 | 8 |
160,240 | public void initialize ( int [ ] bufferEntrySizes , int [ ] bufferEntryDepths ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { Tr . entry ( tc , "initialize" ) ; } // order both lists from smallest to largest, based only on Entry Sizes int len = bufferEntrySizes . length ; int [ ] bSizes = new int [ len ] ; int [ ] bDepths = new int [ len ] ; int sizeCompare ; int depth ; int sizeSort ; int j ; for ( int i = 0 ; i < len ; i ++ ) { sizeCompare = bufferEntrySizes [ i ] ; depth = bufferEntryDepths [ i ] ; // go backwards, for speed, since first Array List is // probably already ordered small to large for ( j = i - 1 ; j >= 0 ; j -- ) { sizeSort = bSizes [ j ] ; if ( sizeCompare > sizeSort ) { // add the bigger one after the smaller one bSizes [ j + 1 ] = sizeCompare ; bDepths [ j + 1 ] = depth ; break ; } // move current one down, since it is bigger bSizes [ j + 1 ] = sizeSort ; bDepths [ j + 1 ] = bDepths [ j ] ; } if ( j < 0 ) { // smallest so far, add it at the front of the list bSizes [ 0 ] = sizeCompare ; bDepths [ 0 ] = depth ; } } boolean tracking = trackingBuffers ( ) ; this . pools = new WsByteBufferPool [ len ] ; this . poolsDirect = new WsByteBufferPool [ len ] ; this . poolSizes = new int [ len ] ; for ( int i = 0 ; i < len ; i ++ ) { // make backing pool 10 times larger than local pools this . pools [ i ] = new WsByteBufferPool ( bSizes [ i ] , bDepths [ i ] * 10 , tracking , false ) ; this . poolsDirect [ i ] = new WsByteBufferPool ( bSizes [ i ] , bDepths [ i ] * 10 , tracking , true ) ; this . poolSizes [ i ] = bSizes [ i ] ; } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "Number of pools created: " + this . poolSizes . length ) ; } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { Tr . exit ( tc , "initialize" ) ; } } | Initialize the pool manager with the number of pools the entry sizes for each pool and the maximum depth of the free pool . | 562 | 25 |
160,241 | public void setLeakDetectionSettings ( int interval , String output ) throws IOException { this . leakDetectionInterval = interval ; this . leakDetectionOutput = TrConfigurator . getLogLocation ( ) + File . separator + output ; if ( ( interval > - 1 ) && ( output != null ) ) { // clear file FileWriter outFile = new FileWriter ( this . leakDetectionOutput , false ) ; outFile . close ( ) ; } } | Set the memory leak detection parameters . If the interval is 0 or greater then the detection code will enabled . | 101 | 21 |
160,242 | @ Override public WsByteBuffer allocateFileChannelBuffer ( FileChannel fc ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "allocateFileChannelBuffer" ) ; } return new FCWsByteBufferImpl ( fc ) ; } | Allocate a buffer which will use tha FileChannel until the buffer needs to be used in a non - FileChannel way . | 70 | 25 |
160,243 | protected WsByteBufferImpl allocateBufferDirect ( WsByteBufferImpl buffer , int size , boolean overrideRefCount ) { DirectByteBufferHelper directByteBufferHelper = this . directByteBufferHelper . get ( ) ; ByteBuffer byteBuffer ; if ( directByteBufferHelper != null ) { byteBuffer = directByteBufferHelper . allocateDirectByteBuffer ( size ) ; } else { byteBuffer = ByteBuffer . allocateDirect ( size ) ; } buffer . setByteBufferNonSafe ( byteBuffer ) ; return buffer ; } | Allocate the direct ByteBuffer that will be wrapped by the input WsByteBuffer object . | 109 | 19 |
160,244 | protected void releasing ( ByteBuffer buffer ) { if ( buffer != null && buffer . isDirect ( ) ) { DirectByteBufferHelper directByteBufferHelper = this . directByteBufferHelper . get ( ) ; if ( directByteBufferHelper != null ) { directByteBufferHelper . releaseDirectByteBuffer ( buffer ) ; } } } | Method called when a buffer is being destroyed to allow any additional cleanup that might be required . | 69 | 18 |
160,245 | public String debug ( ) { String data = null ; StringBuffer sb = new StringBuffer ( ) ; sb . append ( "ConsumerProperties" ) ; sb . append ( "\n" ) ; sb . append ( "------------------" ) ; sb . append ( "\n" ) ; sb . append ( "Destination: " ) ; sb . append ( getJmsDestination ( ) ) ; sb . append ( "\n" ) ; sb . append ( "DestType: " ) ; sb . append ( getDestinationType ( ) ) ; sb . append ( "\n" ) ; sb . append ( "Selector: " ) ; sb . append ( getSelector ( ) ) ; sb . append ( "\n" ) ; sb . append ( "NoLocal: " ) ; sb . append ( noLocal ( ) ) ; sb . append ( "\n" ) ; sb . append ( "Reliablity: " ) ; sb . append ( getReliability ( ) ) ; sb . append ( "\n" ) ; sb . append ( "ClientID: " ) ; sb . append ( getClientID ( ) ) ; sb . append ( "\n" ) ; sb . append ( "SubName: " ) ; sb . append ( getSubName ( ) ) ; sb . append ( "\n" ) ; sb . append ( "DurableSubHome: " ) ; sb . append ( getDurableSubscriptionHome ( ) ) ; sb . append ( "\n" ) ; sb . append ( "ReadAhead: " ) ; sb . append ( readAhead ( ) ) ; sb . append ( "\n" ) ; sb . append ( "UnrecoverableReliability: " ) ; sb . append ( getUnrecovReliability ( ) ) ; sb . append ( "\n" ) ; sb . append ( "Supports Multiple: " ) ; sb . append ( supportsMultipleConsumers ( ) ) ; sb . append ( "\n" ) ; if ( dest instanceof Queue ) { sb . append ( "GatherMessages: " ) ; sb . append ( isGatherMessages ( ) ) ; sb . append ( "\n" ) ; } data = sb . toString ( ) ; return data ; } | Returns a printable form of the information stored in this object . | 520 | 13 |
160,246 | private Pattern loadAcceptPattern ( ExternalContext context ) { assert context != null ; String mappings = context . getInitParameter ( ViewHandler . FACELETS_VIEW_MAPPINGS_PARAM_NAME ) ; if ( mappings == null ) { return null ; } // Make sure the mappings contain something mappings = mappings . trim ( ) ; if ( mappings . length ( ) == 0 ) { return null ; } return Pattern . compile ( toRegex ( mappings ) ) ; } | Load and compile a regular expression pattern built from the Facelet view mapping parameters . | 106 | 16 |
160,247 | private String toRegex ( String mappings ) { assert mappings != null ; // Get rid of spaces mappings = mappings . replaceAll ( "\\s" , "" ) ; // Escape '.' mappings = mappings . replaceAll ( "\\." , "\\\\." ) ; // Change '*' to '.*' to represent any match mappings = mappings . replaceAll ( "\\*" , ".*" ) ; // Split the mappings by changing ';' to '|' mappings = mappings . replaceAll ( ";" , "|" ) ; return mappings ; } | Convert the specified mapping string to an equivalent regular expression . | 129 | 12 |
160,248 | protected void prepareConduitSelector ( Message message , URI currentURI , boolean proxy ) { try { cfg . prepareConduitSelector ( message ) ; } catch ( Fault ex ) { LOG . warning ( "Failure to prepare a message from conduit selector" ) ; } message . getExchange ( ) . put ( ConduitSelector . class , cfg . getConduitSelector ( ) ) ; message . getExchange ( ) . put ( Service . class , cfg . getConduitSelector ( ) . getEndpoint ( ) . getService ( ) ) ; String address = ( String ) message . get ( Message . ENDPOINT_ADDRESS ) ; // custom conduits may override the initial/current address if ( address . startsWith ( HTTP_SCHEME ) && ! address . equals ( currentURI . toString ( ) ) ) { URI baseAddress = URI . create ( address ) ; currentURI = calculateNewRequestURI ( baseAddress , currentURI , proxy ) ; message . put ( Message . ENDPOINT_ADDRESS , currentURI . toString ( ) ) ; message . put ( Message . REQUEST_URI , currentURI . toString ( ) ) ; } message . put ( Message . BASE_PATH , getBaseURI ( ) . toString ( ) ) ; } | or web client invocation has returned | 282 | 6 |
160,249 | @ Override public boolean isCorruptOrIndoubt ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "isCorruptOrIndoubt" ) ; boolean isCorruptOrIndoubt = _targetDestinationHandler . isCorruptOrIndoubt ( ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "isCorruptOrIndoubt" , Boolean . valueOf ( isCorruptOrIndoubt ) ) ; return isCorruptOrIndoubt ; } | Is a real target destination corrupt? | 137 | 7 |
160,250 | public void delete ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "delete" ) ; //Tell the target of the alias to remove the backwards reference to it _targetDestinationHandler . removeTargettingAlias ( this ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "delete" ) ; } | This destination handler is being deleted and should perform any processing required . | 103 | 13 |
160,251 | protected void setLayoutToPrimary ( int segmentLength , int priority , boolean isPooled , boolean isExchange , int packetNumber , int segmentType , SendListener sendListener ) { if ( tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "setLayoutToPrimary" , new Object [ ] { "" + segmentLength , "" + priority , "" + isPooled , "" + isExchange , "" + packetNumber , "" + segmentType , sendListener } ) ; primaryHeaderFields . segmentLength = segmentLength ; primaryHeaderFields . priority = priority ; primaryHeaderFields . isPooled = isPooled ; primaryHeaderFields . isExchange = isExchange ; primaryHeaderFields . packetNumber = packetNumber ; primaryHeaderFields . segmentType = segmentType ; this . sendListener = sendListener ; transmissionRemaining = segmentLength ; layout = JFapChannelConstants . XMIT_PRIMARY_ONLY ; if ( tc . isEntryEnabled ( ) ) SibTr . exit ( this , tc , "setLayoutToPrimary" ) ; } | Sets the layout to use for this transmission to be a primary header only . | 237 | 16 |
160,252 | protected void setLayoutToConversation ( int segmentLength , int priority , boolean isPooled , boolean isExchange , int packetNumber , int segmentType , int conversationId , int requestNumber , Conversation conversation , SendListener sendListener ) { if ( tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "setLayoutToConversation" , new Object [ ] { "" + segmentLength , "" + priority , "" + isPooled , "" + isExchange , "" + packetNumber , "" + segmentType , "" + conversationId , "" + requestNumber , conversation , sendListener } ) ; setLayoutToPrimary ( segmentLength , priority , isPooled , isExchange , packetNumber , segmentType , sendListener ) ; conversationHeaderFields . conversationId = conversationId ; conversationHeaderFields . requestNumber = requestNumber ; this . conversation = conversation ; transmissionRemaining = segmentLength ; layout = JFapChannelConstants . XMIT_CONVERSATION ; if ( tc . isEntryEnabled ( ) ) SibTr . exit ( this , tc , "setLayoutToConversation" ) ; } | Set layout for transmission to build to have a conversation header . | 243 | 12 |
160,253 | protected void setLayoutToStartSegment ( int segmentLength , int priority , boolean isPooled , boolean isExchange , int packetNumber , int segmentType , int conversationId , int requestNumber , long totalLength ) { if ( tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "setLayoutToStartSegment" , new Object [ ] { "" + segmentLength , "" + priority , "" + isPooled , "" + isExchange , "" + packetNumber , "" + segmentType , "" + conversationId , "" + requestNumber , "" + totalLength } ) ; setLayoutToConversation ( segmentLength , priority , isPooled , isExchange , packetNumber , segmentType , conversationId , requestNumber , null , null ) ; segmentedTransmissionHeaderFields . totalLength = totalLength ; segmentedTransmissionHeaderFields . segmentType = segmentType ; transmissionRemaining = segmentLength ; primaryHeaderFields . segmentType = JFapChannelConstants . SEGMENT_SEGMENTED_FLOW_START ; layout = JFapChannelConstants . XMIT_SEGMENT_START ; if ( tc . isEntryEnabled ( ) ) SibTr . exit ( this , tc , "setLayoutToStartSegment" ) ; } | Set next transmission being built to have a segment start layout | 281 | 11 |
160,254 | protected void setLayoutToMiddleSegment ( int segmentLength , int priority , boolean isPooled , boolean isExchange , int packetNumber , int conversationId , int requestNumber ) { if ( tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "setLayoutToMiddleSegment" , new Object [ ] { "" + segmentLength , "" + priority , "" + isPooled , "" + isExchange , "" + packetNumber , "" + conversationId , "" + requestNumber } ) ; setLayoutToConversation ( segmentLength , priority , isPooled , isExchange , packetNumber , JFapChannelConstants . SEGMENT_SEGMENTED_FLOW_MIDDLE , conversationId , requestNumber , null , null ) ; layout = JFapChannelConstants . XMIT_SEGMENT_MIDDLE ; transmissionRemaining = segmentLength ; if ( tc . isEntryEnabled ( ) ) SibTr . exit ( this , tc , "setLayoutToMiddleSegment" ) ; } | Set next transmission being built to have a segment middle layout | 228 | 11 |
160,255 | protected void setLayoutToEndSegment ( int segmentLength , int priority , boolean isPooled , boolean isExchange , int packetNumber , int conversationId , int requestNumber , Conversation conversation , SendListener sendListener ) { if ( tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "setLayoutToSegmentEnd" , new Object [ ] { "" + segmentLength , "" + priority , "" + isPooled , "" + isExchange , "" + packetNumber , "" + conversationId , "" + requestNumber , conversation , sendListener } ) ; setLayoutToConversation ( segmentLength , priority , isPooled , isExchange , packetNumber , JFapChannelConstants . SEGMENT_SEGMENTED_FLOW_END , conversationId , requestNumber , conversation , sendListener ) ; layout = JFapChannelConstants . XMIT_SEGMENT_END ; transmissionRemaining = segmentLength ; } | Set next transmission being built to have a segment end layout | 206 | 11 |
160,256 | protected boolean isPooledBuffers ( ) { if ( tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "isPooledBuffers" ) ; if ( tc . isEntryEnabled ( ) ) SibTr . exit ( this , tc , "isPooledBuffers" , "" + primaryHeaderFields . isPooled ) ; return primaryHeaderFields . isPooled ; } | Returns true iff this transmission should be received into pooled buffers . | 90 | 13 |
160,257 | protected boolean isUserRequest ( ) { if ( tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "isUserRequest" ) ; if ( tc . isEntryEnabled ( ) ) SibTr . exit ( this , tc , "isUserRequest" , "" + isUserRequest ) ; return isUserRequest ; } | Returns true iff this transmission is a user request . | 74 | 11 |
160,258 | protected boolean isTerminal ( ) { if ( tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "isTermainl" ) ; if ( tc . isEntryEnabled ( ) ) SibTr . exit ( this , tc , "isTermainl" , "" + isTerminal ) ; return isTerminal ; } | Returns true if this transmission should stop this connection from writing any more data to the socket . | 76 | 18 |
160,259 | private boolean buildHeader ( HeaderFields headerFields , WsByteBuffer xmitBuffer ) { if ( tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "buildHeader" , new Object [ ] { headerFields , xmitBuffer } ) ; if ( tc . isDebugEnabled ( ) ) JFapUtils . debugTraceWsByteBufferInfo ( this , tc , xmitBuffer , "xmitBuffer" ) ; boolean headerFinished = false ; WsByteBuffer headerBuffer = null ; if ( headerScratchSpace . position ( ) == 0 ) { if ( tc . isDebugEnabled ( ) ) JFapUtils . debugTraceWsByteBufferInfo ( this , tc , headerScratchSpace , "headerScratchSpace" ) ; // No data in the scratch space buffer - so we must decide if we can // build this header in place. if ( xmitBuffer . remaining ( ) >= headerFields . sizeof ( ) ) { // Enough space in the transmission buffer to build the header in // place. headerBuffer = xmitBuffer ; headerFields . writeToBuffer ( xmitBuffer ) ; headerFinished = true ; } else { // Insufficient room in the transmission buffer to build the header // in place. headerBuffer = headerScratchSpace ; headerFields . writeToBuffer ( headerScratchSpace ) ; headerScratchSpace . flip ( ) ; } // build header into buffer. } else { // We have already built a header into the scratch space and are // in the process of copying it into the transmission buffer. headerBuffer = headerScratchSpace ; } if ( ! headerFinished ) { // We have not finished on this header yet. Try copying it into // the transmission buffer. int headerLeftToCopy = headerBuffer . remaining ( ) ; int amountCopied = JFapUtils . copyWsByteBuffer ( headerBuffer , xmitBuffer , headerLeftToCopy ) ; headerFinished = amountCopied == headerLeftToCopy ; } // If we finished the header - clean out anything we might have put // into the scratch space. if ( headerFinished ) { headerScratchSpace . clear ( ) ; transmissionRemaining -= headerFields . sizeof ( ) ; } else exhausedXmitBuffer = true ; if ( tc . isEntryEnabled ( ) ) SibTr . exit ( this , tc , "buildHeader" , "" + headerFinished ) ; return headerFinished ; } | Builds a header from a description of the header fields . The header is incrementally built into the supplied transmission buffer . This may require use of a scratch space in the event that there is insufficient room in the transmission buffer on the first attempt . | 527 | 49 |
160,260 | private boolean buildPayload ( WsByteBuffer xmitBuffer ) { if ( tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "buildPayload" , xmitBuffer ) ; if ( tc . isDebugEnabled ( ) ) JFapUtils . debugTraceWsByteBufferInfo ( this , tc , xmitBuffer , "xmitBuffer" ) ; boolean payloadFinished = false ; int amountCopied , amountToCopy ; if ( xmitDataBuffers . length == 0 ) { if ( tc . isDebugEnabled ( ) ) SibTr . debug ( this , tc , "payload finished" ) ; payloadFinished = true ; } else { do { amountToCopy = xmitDataBuffers [ currentXmitDataBufferIndex ] . remaining ( ) ; if ( amountToCopy > transmissionRemaining ) amountToCopy = transmissionRemaining ; amountCopied = JFapUtils . copyWsByteBuffer ( xmitDataBuffers [ currentXmitDataBufferIndex ] , xmitBuffer , amountToCopy ) ; if ( tc . isDebugEnabled ( ) ) SibTr . debug ( this , tc , "amountToCopy=" + amountToCopy + " amountCopied=" + amountCopied + " currentXmitDataBufferIndex=" + currentXmitDataBufferIndex ) ; transmissionRemaining -= amountCopied ; if ( amountCopied == amountToCopy ) { ++ currentXmitDataBufferIndex ; payloadFinished = ( currentXmitDataBufferIndex == xmitDataBuffers . length ) ; } if ( ( amountCopied < amountToCopy ) || ( transmissionRemaining < 1 ) ) { exhausedXmitBuffer = true ; } } while ( ( amountCopied == amountToCopy ) && ( ! payloadFinished ) && ( ! exhausedXmitBuffer ) ) ; } if ( tc . isEntryEnabled ( ) ) SibTr . exit ( this , tc , "buildPayload" , "" + payloadFinished ) ; return payloadFinished ; } | Builds a transmission payload into the supplied buffer . This may be done incrementally by multiple invocations in the case that the supplied buffer is smaller than the payload being built . | 436 | 35 |
160,261 | @ GET @ Path ( "/verifyInjectedOptionalCustomMissing" ) @ Produces ( MediaType . APPLICATION_JSON ) public JsonObject verifyInjectedOptionalCustomMissing ( ) { boolean pass = false ; String msg ; // custom-missing Optional < Long > customValue = custom . getValue ( ) ; if ( customValue == null ) { msg = "custom-missing value is null, FAIL" ; } else if ( ! customValue . isPresent ( ) ) { msg = "custom-missing PASS" ; pass = true ; } else { msg = String . format ( "custom: %s != %s" , null , customValue . get ( ) ) ; } JsonObject result = Json . createObjectBuilder ( ) . add ( "pass" , pass ) . add ( "msg" , msg ) . build ( ) ; return result ; } | Verify that values exist and that types match the corresponding Claims enum | 185 | 13 |
160,262 | public static void addExtendedProperty ( String propName , String dataType , boolean multiValued , Object defaultValue ) { if ( dataType == null || "null" . equalsIgnoreCase ( dataType ) ) return ; if ( extendedPropertiesDataType . containsKey ( propName ) ) { Tr . warning ( tc , WIMMessageKey . DUPLICATE_PROPERTY_EXTENDED , new Object [ ] { propName , "PersonAccount" } ) ; return ; } if ( getPropertyNames ( "PersonAccount" ) . contains ( propName ) ) { Tr . warning ( tc , WIMMessageKey . DUPLICATE_PROPERTY_ENTITY , new Object [ ] { propName , "PersonAccount" } ) ; return ; } extendedPropertiesDataType . put ( propName , dataType ) ; if ( defaultValue != null ) extendedPropertiesDefaultValue . put ( propName , defaultValue ) ; if ( multiValued ) extendedMultiValuedProperties . add ( propName ) ; } | Allows for an extended property or a property not pre - defined as part of this PersonAccount entity type to be added to the PersonAccount entity | 220 | 28 |
160,263 | private static String depluralize ( String s ) { if ( s . endsWith ( "ies" ) ) { return s . substring ( 0 , s . length ( ) - 3 ) + ' ' ; } if ( s . endsWith ( "s" ) ) { return s . substring ( 0 , s . length ( ) - 1 ) ; } return s ; } | Convert a string like abcs to abc . | 80 | 11 |
160,264 | private static String hyphenatedToCamelCase ( String s ) { Matcher m = Pattern . compile ( "(?:^|-)([a-z])" ) . matcher ( s ) ; StringBuilder b = new StringBuilder ( ) ; int last = 0 ; for ( ; m . find ( ) ; last = m . end ( ) ) { b . append ( s , last , m . start ( ) ) . append ( Character . toUpperCase ( m . group ( 1 ) . charAt ( 0 ) ) ) ; } return b . append ( s , last , s . length ( ) ) . toString ( ) ; } | Convert a string like abc - def - ghi to AbcDefGhi . | 138 | 19 |
160,265 | private static String upperCaseFirstChar ( String s ) { return Character . toUpperCase ( s . charAt ( 0 ) ) + s . substring ( 1 ) ; } | Convert a string like abcDef to AbcDef . | 38 | 13 |
160,266 | private static List < TypeMirror > getAnnotationClassValues ( Element member , Annotation annotation , String annotationMemberName ) { for ( AnnotationMirror annotationMirror : member . getAnnotationMirrors ( ) ) { if ( ( ( TypeElement ) annotationMirror . getAnnotationType ( ) . asElement ( ) ) . getQualifiedName ( ) . contentEquals ( annotation . annotationType ( ) . getName ( ) ) ) { for ( Map . Entry < ? extends ExecutableElement , ? extends AnnotationValue > entry : annotationMirror . getElementValues ( ) . entrySet ( ) ) { if ( entry . getKey ( ) . getSimpleName ( ) . contentEquals ( annotationMemberName ) ) { @ SuppressWarnings ( { "unchecked" , "rawtypes" } ) List < AnnotationValue > types = ( List ) entry . getValue ( ) . getValue ( ) ; TypeMirror [ ] result = new TypeMirror [ types . size ( ) ] ; for ( int i = 0 ; i < types . size ( ) ; i ++ ) { result [ i ] = ( TypeMirror ) types . get ( i ) . getValue ( ) ; } return Arrays . asList ( result ) ; } } return Collections . emptyList ( ) ; } } throw new IllegalStateException ( annotation . annotationType ( ) . getName ( ) + " not found in " + member ) ; } | Return a List of TypeMirror for an annotation on a member . This is a workaround for JDK - 6519115 which causes MirroredTypeException to be thrown rather than MirroredTypesException . | 311 | 41 |
160,267 | public ViewScopeContextualStorage getContextualStorage ( BeanManager beanManager , String viewScopeId ) { ViewScopeContextualStorage contextualStorage = storageMap . get ( viewScopeId ) ; if ( contextualStorage == null ) { synchronized ( this ) { contextualStorage = storageMap . get ( viewScopeId ) ; if ( contextualStorage == null ) { contextualStorage = new ViewScopeContextualStorage ( beanManager ) ; storageMap . put ( viewScopeId , contextualStorage ) ; } } } return contextualStorage ; } | This method will return the ViewScopeContextualStorage or create a new one if no one is yet assigned to the current windowId . | 109 | 27 |
160,268 | public AuthConfigProvider setProvider ( ProviderService providerService ) { AuthConfigProvider authConfigProvider = null ; if ( providerService != null ) { authConfigProvider = providerService . getAuthConfigProvider ( this ) ; registerConfigProvider ( authConfigProvider , null , null , null ) ; } else { removeRegistration ( defaultRegistrationID . toString ( ) ) ; } return authConfigProvider ; } | Called when a Liberty user defined feature provider is set or unset | 83 | 14 |
160,269 | protected BeanO doActivation ( EJBThreadData threadData , ContainerTx tx , BeanId beanId , boolean takeInvocationRef ) throws RemoteException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { Tr . entry ( tc , "doActivation" , new Object [ ] { tx , beanId , new Boolean ( takeInvocationRef ) } ) ; } BeanO bean = null ; Throwable exception = null ; MasterKey key = new MasterKey ( beanId ) ; boolean activate = false ; boolean pushedCallbackBeanO = false ; try { synchronized ( locks . getLock ( key ) ) { if ( ( bean = ( BeanO ) cache . find ( key ) ) == null ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) Tr . debug ( tc , "Bean not in cache" ) ; bean = beanId . getHome ( ) . createBeanO ( threadData , tx , beanId ) ; // d630940 pushedCallbackBeanO = true ; cache . insert ( key , bean ) ; bean . ivCacheKey = key ; // d199233 activate = true ; } else { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) Tr . debug ( tc , "Found bean in cache" ) ; // Set the found BeanO as the 'Callback' BeanO, as this is the // BeanO that is becoming the active beanO for the thread. // This will allow methods called by customer code (like Timer // methods) to determine the state of the BeanO that is making // the call. d168509 threadData . pushCallbackBeanO ( bean ) ; // d630940 pushedCallbackBeanO = true ; } } boolean pin = false ; if ( activate ) { bean . activate ( beanId , tx ) ; // d114677 } pin = bean . enlist ( tx ) ; // d114677 if ( takeInvocationRef && pin ) { // We need to take an additional reference cache . pin ( key ) ; } else if ( ! takeInvocationRef && ! pin ) { // Need to drop reference taken by find or insert cache . unpin ( key ) ; } } catch ( RemoteException e ) { FFDCFilter . processException ( e , CLASS_NAME + ".doActivation" , "123" , this ) ; exception = e ; throw e ; } catch ( RuntimeException e ) { FFDCFilter . processException ( e , CLASS_NAME + ".doActivation" , "129" , this ) ; exception = e ; throw e ; } finally { if ( exception != null ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEventEnabled ( ) ) Tr . event ( tc , "doActivation: exception raised" , exception ) ; } if ( exception != null && bean != null ) { if ( pushedCallbackBeanO ) { threadData . popCallbackBeanO ( ) ; } bean . destroy ( ) ; if ( activate ) { // Synchronize to insure that a temp pin obtained by getBean // doesn't cause the remove to fail due to too many pins. PQ53065 synchronized ( locks . getLock ( key ) ) { cache . remove ( key , true ) ; bean . ivCacheKey = null ; // d199233 } } } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) Tr . exit ( tc , "doActivation" , bean ) ; } return bean ; } | Internal method used by subclasses to activate a bean | 769 | 10 |
160,270 | @ Override public Entry < BatchPartitionWorkUnit , Future < ? > > startPartition ( PartitionPlanConfig partitionPlanConfig , Step step , PartitionReplyQueue partitionReplyQueue , boolean isRemoteDispatch ) { BatchPartitionWorkUnit workUnit = createPartitionWorkUnit ( partitionPlanConfig , step , partitionReplyQueue , isRemoteDispatch ) ; Future < ? > futureWork = runPartition ( workUnit ) ; // TODO: issue "partition.started" message ? return new AbstractMap . SimpleEntry < BatchPartitionWorkUnit , Future < ? > > ( workUnit , futureWork ) ; } | Create the BatchPartitionWorkUnit and start the sub - job partition thread . | 134 | 17 |
160,271 | protected void setConversation ( Conversation conversation ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "setConversation" , conversation ) ; con = conversation ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( this , tc , "setConversation" ) ; } | Sets the Conversation object | 96 | 5 |
160,272 | protected CommsByteBuffer jfapExchange ( CommsByteBuffer buffer , int sendSegmentType , int priority , boolean canPoolOnReceive ) throws SIConnectionDroppedException , SIConnectionLostException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "jfapExchange" , new Object [ ] { buffer , sendSegmentType , priority , canPoolOnReceive } ) ; boolean success = false ; CommsByteBuffer rcvBuffer = null ; try { if ( buffer == null ) { // The data list cannot be null SIErrorException e = new SIErrorException ( nls . getFormattedMessage ( "NULL_DATA_LIST_PASSED_IN_SICO1046" , null , null ) ) ; FFDCFilter . processException ( e , CLASS_NAME + ".JFAPExchange" , CommsConstants . JFAPCOMMUNICATOR_EXCHANGE_01 , this ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) SibTr . debug ( tc , e . getMessage ( ) , e ) ; throw e ; } int reqNum = getRequestNumber ( ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { SibTr . debug ( this , tc , "About to Exchange segment " + "conversation: " + con + " " + JFapChannelConstants . getSegmentName ( sendSegmentType ) + " - " + sendSegmentType + " (0x" + Integer . toHexString ( sendSegmentType ) + ") " + "using request number " + reqNum ) ; SibTr . debug ( this , tc , con . getFullSummary ( ) ) ; } ReceivedData rd = con . exchange ( buffer , sendSegmentType , reqNum , priority , canPoolOnReceive ) ; rcvBuffer = getCommsByteBuffer ( rd ) ; int rcvSegmentType = rcvBuffer . getReceivedDataSegmentType ( ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) SibTr . debug ( this , tc , "Exchange completed successfully. " + "Segment returned " + JFapChannelConstants . getSegmentName ( rcvSegmentType ) + " - " + rcvSegmentType + " (0x" + Integer . toHexString ( rcvSegmentType ) + ")" ) ; success = true ; } finally { if ( ! success && TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) SibTr . debug ( this , tc , "Exchange failed." ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( this , tc , "jfapExchange" , rcvBuffer ) ; } return rcvBuffer ; } | Wraps the JFAP Channel exchange method to allow tracing retrieval of Unique request numbers and setting of message priority . | 671 | 23 |
160,273 | protected void jfapSend ( CommsByteBuffer buffer , int sendSegType , int priority , boolean canPoolOnReceive , ThrottlingPolicy throttlingPolicy ) throws SIConnectionDroppedException , SIConnectionLostException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "jfapSend" , new Object [ ] { buffer , sendSegType , priority , canPoolOnReceive } ) ; if ( buffer == null ) { // The data list cannot be null SIErrorException e = new SIErrorException ( nls . getFormattedMessage ( "NULL_DATA_LIST_PASSED_IN_SICO1046" , null , null ) ) ; FFDCFilter . processException ( e , CLASS_NAME + ".JFAPSend" , CommsConstants . JFAPCOMMUNICATOR_SEND_01 , this ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) SibTr . debug ( tc , e . getMessage ( ) , e ) ; throw e ; } int reqNum = 0 ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { SibTr . debug ( this , tc , "About to Send segment " + "conversation: " + con + " " + JFapChannelConstants . getSegmentName ( sendSegType ) + " - " + sendSegType + " (0x" + Integer . toHexString ( sendSegType ) + ") " + "using request number " + reqNum ) ; SibTr . debug ( this , tc , con . getFullSummary ( ) ) ; } con . send ( buffer , sendSegType , reqNum , priority , canPoolOnReceive , throttlingPolicy , null ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( this , tc , "jfapSend" ) ; } | Wraps the JFAP Channel send method to allow tracing retrieval of Unique request numbers and setting of message priority . | 456 | 23 |
160,274 | private short getClientCapabilities ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "getClientCapabilities" ) ; short capabilities = CommsConstants . CAPABILITIES_DEFAULT ; // Allow the use of a runtime property to alter the capability that we require a non-java // bootstrap to locate an ME boolean nonJavaBootstrap = CommsUtils . getRuntimeBooleanProperty ( CommsConstants . CAPABILITIY_REQUIRES_NONJAVA_BOOTSTRAP_KEY , CommsConstants . CAPABILITIY_REQUIRES_NONJAVA_BOOTSTRAP_DEF ) ; if ( nonJavaBootstrap ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) SibTr . debug ( this , tc , "Requesting non-java bootstrap" ) ; // This bit is off by default, so turn it on capabilities |= CommsConstants . CAPABILITIY_REQUIRES_NONJAVA_BOOTSTRAP ; } // Allow the use of a runtime property to alter the capability that we require JMF messages boolean jmfMessagesOnly = CommsUtils . getRuntimeBooleanProperty ( CommsConstants . CAPABILITIY_REQUIRES_JMF_ENCODING_KEY , CommsConstants . CAPABILITIY_REQUIRES_JMF_ENCODING_DEF ) ; if ( jmfMessagesOnly ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) SibTr . debug ( this , tc , "Requesting JMF Only" ) ; // This bit is off by default, so turn it on capabilities |= CommsConstants . CAPABILITIY_REQUIRES_JMF_ENCODING ; } // Allow the use of a runtime property to alter the capability that we require JMS messages boolean jmsMessagesOnly = CommsUtils . getRuntimeBooleanProperty ( CommsConstants . CAPABILITIY_REQUIRES_JMS_MESSAGES_KEY , CommsConstants . CAPABILITIY_REQUIRES_JMS_MESSAGES_DEF ) ; if ( jmsMessagesOnly ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) SibTr . debug ( this , tc , "Requesting JMS Only" ) ; // This bit is off by default, so turn it on capabilities |= CommsConstants . CAPABILITIY_REQUIRES_JMS_MESSAGES ; } // Allow the use of a runtime property to turn off optimized transactions. boolean disableOptimizedTx = CommsUtils . getRuntimeBooleanProperty ( CommsConstants . DISABLE_OPTIMIZED_TX_KEY , CommsConstants . DISABLE_OPTIMIZED_TX ) ; if ( disableOptimizedTx ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) SibTr . debug ( this , tc , "Disabling use of optimized transactions" ) ; // This bit is set on by default, so we must turn it off capabilities &= ( 0xFFFF ^ CommsConstants . CAPABILITIY_REQUIRES_OPTIMIZED_TX ) ; } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( this , tc , "getClientCapabilities" , capabilities ) ; return capabilities ; } | Works out the capabilities that will be sent to the peer as part of the initial handshake . This also takes into account any overrides from the SIB properties file . | 834 | 33 |
160,275 | public void defaultChecker ( CommsByteBuffer buffer , short exceptionCode ) throws SIErrorException { if ( exceptionCode != CommsConstants . SI_NO_EXCEPTION ) { throw new SIErrorException ( buffer . getException ( con ) ) ; } } | The default checker . Should always be called last after all the checkers . | 57 | 16 |
160,276 | protected void invalidateConnection ( boolean notifyPeer , Throwable throwable , String debugReason ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "invalidateConnection" , new Object [ ] { new Boolean ( notifyPeer ) , throwable , debugReason } ) ; if ( con != null ) { ConnectionInterface connection = con . getConnectionReference ( ) ; if ( connection != null ) { connection . invalidate ( notifyPeer , throwable , debugReason ) ; } } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "invalidateConnection" ) ; } | Utility method to invalidate Connection . Parameters passed to ConnectionInterface . invalidate | 160 | 16 |
160,277 | SibRaListener createListener ( final SIDestinationAddress destination , MessageEndpointFactory messageEndpointFactory ) throws ResourceException { final String methodName = "createListener" ; if ( TraceComponent . isAnyTracingEnabled ( ) && TRACE . isEntryEnabled ( ) ) { SibTr . entry ( this , TRACE , methodName , new Object [ ] { destination , messageEndpointFactory } ) ; } if ( _closed ) { throw new IllegalStateException ( NLS . getString ( "LISTENER_CLOSED_CWSIV0952" ) ) ; } final SibRaListener listener ; listener = new SibRaSingleProcessListener ( this , destination , messageEndpointFactory ) ; _listeners . put ( destination , listener ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && TRACE . isEntryEnabled ( ) ) { SibTr . exit ( this , TRACE , methodName , listener ) ; } return listener ; } | Creates a new listener to the given destination . | 209 | 10 |
160,278 | SibRaDispatcher createDispatcher ( final AbstractConsumerSession session , final Reliability unrecoveredReliability , final int maxFailedDeliveries , final int sequentialFailureThreshold ) throws ResourceException { final String methodName = "createDispatcher" ; if ( TraceComponent . isAnyTracingEnabled ( ) && TRACE . isEntryEnabled ( ) ) { SibTr . entry ( this , TRACE , methodName , new Object [ ] { session , unrecoveredReliability , maxFailedDeliveries , sequentialFailureThreshold } ) ; } if ( _closed ) { throw new IllegalStateException ( NLS . getString ( "LISTENER_CLOSED_CWSIV0953" ) ) ; } final SibRaDispatcher dispatcher ; if ( _endpointActivation . isEndpointMethodTransactional ( ) ) { if ( _endpointConfiguration . getShareDataSourceWithCMP ( ) ) { dispatcher = new SibRaSynchronizedDispatcher ( this , session , _endpointActivation , unrecoveredReliability , maxFailedDeliveries , sequentialFailureThreshold ) ; } else { dispatcher = new SibRaTransactionalDispatcher ( this , session , _endpointActivation , _busName , unrecoveredReliability , maxFailedDeliveries , sequentialFailureThreshold ) ; } } else { if ( SibRaMessageDeletionMode . BATCH . equals ( _endpointConfiguration . getMessageDeletionMode ( ) ) ) { dispatcher = new SibRaBatchMessageDeletionDispatcher ( this , session , _endpointActivation , unrecoveredReliability , maxFailedDeliveries , sequentialFailureThreshold ) ; } else if ( SibRaMessageDeletionMode . SINGLE . equals ( _endpointConfiguration . getMessageDeletionMode ( ) ) ) { dispatcher = new SibRaSingleMessageDeletionDispatcher ( this , session , _endpointActivation , unrecoveredReliability , maxFailedDeliveries , sequentialFailureThreshold ) ; } else { dispatcher = new SibRaNonTransactionalDispatcher ( this , session , _endpointActivation , unrecoveredReliability , maxFailedDeliveries , sequentialFailureThreshold ) ; } } _dispatcherCount . incrementAndGet ( ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && TRACE . isDebugEnabled ( ) ) { SibTr . debug ( this , TRACE , "Creating a dispatcher, there are now " + _dispatcherCount . get ( ) + " open dispatchers" ) ; } if ( TraceComponent . isAnyTracingEnabled ( ) && TRACE . isEntryEnabled ( ) ) { SibTr . exit ( this , TRACE , methodName , dispatcher ) ; } return dispatcher ; } | Gets a dispatcher for the given session and messages . | 624 | 11 |
160,279 | void closeDispatcher ( final SibRaDispatcher dispatcher ) { final String methodName = "closeDispatcher" ; if ( TraceComponent . isAnyTracingEnabled ( ) && TRACE . isEntryEnabled ( ) ) { SibTr . entry ( this , TRACE , methodName ) ; } dispatcher . close ( ) ; _dispatcherCount . decrementAndGet ( ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && TRACE . isDebugEnabled ( ) ) { SibTr . debug ( this , TRACE , "Removing a dispatcher - there are " + _dispatcherCount . get ( ) + " left" ) ; } synchronized ( _dispatcherCount ) { _dispatcherCount . notifyAll ( ) ; } if ( TraceComponent . isAnyTracingEnabled ( ) && TRACE . isEntryEnabled ( ) ) { SibTr . exit ( this , TRACE , methodName ) ; } } | Closes the given dispatcher . | 207 | 6 |
160,280 | void close ( ) { final String methodName = "close" ; if ( TraceComponent . isAnyTracingEnabled ( ) && TRACE . isEntryEnabled ( ) ) { SibTr . entry ( this , TRACE , methodName ) ; } close ( false ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && TRACE . isEntryEnabled ( ) ) { SibTr . exit ( this , TRACE , methodName ) ; } } | Closes the connection and any associated listeners and dispatchers | 98 | 12 |
160,281 | void close ( boolean alreadyClosed ) { final String methodName = "close" ; if ( TraceComponent . isAnyTracingEnabled ( ) && TRACE . isEntryEnabled ( ) ) { SibTr . entry ( this , TRACE , methodName , alreadyClosed ) ; } _closed = true ; /* * 238811: * Stop all of the listeners - do not close them as the dispatchers * might still be using them. Close them after the dispatchers have * stopped. */ /* * We close dispatchers as soon as they are finished with so no longer have to * close them here. */ if ( ! alreadyClosed ) { for ( final Iterator iterator = _listeners . values ( ) . iterator ( ) ; iterator . hasNext ( ) ; ) { final SibRaListener listener = ( SibRaListener ) iterator . next ( ) ; listener . stop ( ) ; } } // The connection is closing so throw away the connection name SibRaDispatcher . resetMEName ( ) ; // We want this thread to wait until all the dispatchers have finished their work // (which will happen when the dispatcherCount hits 0. We put the thread into a // wait state if there are any dispatchers still going, the thread will be notified // each time a dispatcher closes (when it has finished its work). synchronized ( _dispatcherCount ) { if ( TraceComponent . isAnyTracingEnabled ( ) && TRACE . isDebugEnabled ( ) ) { SibTr . debug ( this , TRACE , "There are still " + _dispatcherCount . get ( ) + " open dispatchers" ) ; } if ( _dispatcherCount . get ( ) > 0 ) { Long mdbQuiescingTimeout = getMDBQuiescingTimeoutProperty ( ) ; waitForDispatchersToFinish ( mdbQuiescingTimeout ) ; } } /* * Close all of the listeners */ if ( ! alreadyClosed ) { for ( final Iterator iterator = _listeners . values ( ) . iterator ( ) ; iterator . hasNext ( ) ; ) { final SibRaListener listener = ( SibRaListener ) iterator . next ( ) ; listener . close ( ) ; } } _listeners . clear ( ) ; /* * Close the connection */ try { _connection . removeConnectionListener ( _connectionListener ) ; // It should be ok to call close on an already closed connection but comms // FFDCs thjis (processor seems ok with it though). No need to close the connection // again anyway so we'll check and if we are being called as part of MeTerminated or // connectionError then the connection will have been closed so dont close again. if ( ! alreadyClosed ) { _connection . close ( ) ; } } catch ( final SIException exception ) { FFDCFilter . processException ( exception , CLASS_NAME + "." + methodName , "1:1023:1.59" , this ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && TRACE . isEventEnabled ( ) ) { SibTr . exception ( this , TRACE , exception ) ; } } catch ( final SIErrorException exception ) { FFDCFilter . processException ( exception , CLASS_NAME + "." + methodName , "1:1031:1.59" , this ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && TRACE . isEventEnabled ( ) ) { SibTr . exception ( this , TRACE , exception ) ; } } if ( TraceComponent . isAnyTracingEnabled ( ) && TRACE . isEntryEnabled ( ) ) { SibTr . exit ( this , TRACE , methodName ) ; } } | Closes this connection and any associated listeners and dispatchers . | 795 | 13 |
160,282 | SICoreConnection createConnection ( SICoreConnectionFactory factory , String name , String password , Map properties , String busName ) throws SIException , SIErrorException , Exception { final String methodName = "createConnection" ; if ( TraceComponent . isAnyTracingEnabled ( ) && TRACE . isEntryEnabled ( ) ) { SibTr . entry ( this , TRACE , methodName , new Object [ ] { factory , name , "password not traced" , properties , busName } ) ; } SICoreConnection result ; if ( TraceComponent . isAnyTracingEnabled ( ) && TRACE . isDebugEnabled ( ) ) { SibTr . debug ( this , TRACE , "Creating connection with Userid and password" ) ; } result = factory . createConnection ( name , password , properties ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && TRACE . isEntryEnabled ( ) ) { SibTr . exit ( this , TRACE , "createConnection" , result ) ; } return result ; } | Creates this connection using either the Auth Alias supplied or if the property is set the WAS server subject . | 220 | 22 |
160,283 | private String getUnavailableServices ( ) { StringBuilder missingServices = new StringBuilder ( ) ; if ( tokenService . getReference ( ) == null ) { missingServices . append ( "tokenService, " ) ; } if ( tokenManager . getReference ( ) == null ) { missingServices . append ( "tokenManager, " ) ; } if ( authenticationService . getReference ( ) == null ) { missingServices . append ( "authenticationService, " ) ; } if ( authorizationService . getReference ( ) == null ) { missingServices . append ( "authorizationService, " ) ; } if ( userRegistry . getReference ( ) == null ) { missingServices . append ( "userRegistry, " ) ; } if ( userRegistryService . getReference ( ) == null ) { missingServices . append ( "userRegistryService, " ) ; } if ( missingServices . length ( ) == 0 ) { return null ; } else { // Return everything but the last ", " return missingServices . substring ( 0 , missingServices . length ( ) - 2 ) ; } } | Construct a String that lists all of the missing services . This is very useful for debugging . | 231 | 18 |
160,284 | private void updateSecurityReadyState ( ) { if ( ! activated ) { return ; } String unavailableServices = getUnavailableServices ( ) ; if ( unavailableServices == null ) { Tr . info ( tc , "SECURITY_SERVICE_READY" ) ; securityReady = true ; Dictionary < String , Object > props = new Hashtable < String , Object > ( ) ; props . put ( "service.vendor" , "IBM" ) ; reg = cc . getBundleContext ( ) . registerService ( SecurityReadyService . class , this , props ) ; } else { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEventEnabled ( ) ) { Tr . event ( tc , "The following required security services are not available: " + unavailableServices ) ; } securityReady = false ; if ( reg != null ) { reg . unregister ( ) ; reg = null ; } } } | Security is ready when all of these required services have been registered . | 196 | 13 |
160,285 | private void parseDirectoryFiles ( WsResource directory , ServerConfiguration configuration ) throws ConfigParserException , ConfigValidationException { if ( directory != null ) { File [ ] defaultFiles = getChildXMLFiles ( directory ) ; if ( defaultFiles == null ) return ; Arrays . sort ( defaultFiles , new AlphaComparator ( ) ) ; for ( int i = 0 ; i < defaultFiles . length ; i ++ ) { File file = defaultFiles [ i ] ; if ( ! file . isFile ( ) ) continue ; WsResource defaultFile = directory . resolveRelative ( file . getName ( ) ) ; if ( defaultFile == null ) { // This should never happen, but it's conceivable that someone could remove a file // after listFiles and before getChild if ( tc . isDebugEnabled ( ) ) { Tr . debug ( tc , file . getName ( ) + " was not found in directory " + directory . getName ( ) + ". Ignoring. " ) ; } continue ; } Tr . audit ( tc , "audit.dropin.being.processed" , defaultFile . asFile ( ) ) ; try { parser . parseServerConfiguration ( defaultFile , configuration ) ; } catch ( ConfigParserException ex ) { parser . handleParseError ( ex , null ) ; if ( ErrorHandler . INSTANCE . fail ( ) ) { // if onError=FAIL, bubble the exception up the stack throw ex ; } else { // Mark the last update for the configuration so that we don't try to load it again configuration . updateLastModified ( configRoot . getLastModified ( ) ) ; } } } } } | Parse all of the config files in a directory in platform insensitive alphabetical order | 350 | 16 |
160,286 | public ServletContext findContext ( String path ) { WebGroup g = ( WebGroup ) requestMapper . map ( path ) ; if ( g != null ) return g . getContext ( ) ; else return null ; } | Method findContext . | 47 | 4 |
160,287 | private void addWlpInformation ( Asset asset ) { WlpInformation wlpInfo = asset . getWlpInformation ( ) ; if ( wlpInfo == null ) { wlpInfo = new WlpInformation ( ) ; asset . setWlpInformation ( wlpInfo ) ; } if ( wlpInfo . getAppliesToFilterInfo ( ) == null ) { wlpInfo . setAppliesToFilterInfo ( new ArrayList < AppliesToFilterInfo > ( ) ) ; } } | For historic reasons when an asset is read back from the repository the wlpInformation and ATFI should always be present . This method does that . | 105 | 29 |
160,288 | public Discriminator getDiscriminator ( ) { if ( tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "getDiscriminator" ) ; if ( tc . isEntryEnabled ( ) ) SibTr . exit ( this , tc , "getDiscriminator" , discriminator ) ; return discriminator ; } | Returns the discriminator for this channel . | 75 | 8 |
160,289 | private Object getResult ( ) throws InterruptedException , ExecutionException { if ( ivCancelled ) { // F743-11774 if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { Tr . exit ( tc , "getResult: throwing CancellationException" ) ; } throw new CancellationException ( ) ; // F743-11774 } // Method ended with an exception if ( ivException != null ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { Tr . exit ( tc , "getResult: " + ivException ) ; } throw new ExecutionException ( ivException ) ; } // F743-609CodRev // If the result object is itself a Future object, we need to call "get" on it // so that we unwrap the results and place them in this Future object. This // is done to support asynchronous method calls that return results wrapped // in Future objects, and also to support nested asynchronous method calls. // Also, note that "null" is an acceptable result. // F743-16193 // Remove instanceof check for Future object. Return type validation check // moved to EJBMDOrchestrator.java Object resultToReturn = null ; if ( ivFuture != null ) { resultToReturn = ivFuture . get ( ) ; // d650178 } return ( resultToReturn ) ; } | This get method returns the result of the async method call . This method must not be called unless ivGate indicates that results are available . | 307 | 27 |
160,290 | private Object getResult ( long timeout , TimeUnit unit ) throws InterruptedException , ExecutionException , TimeoutException { if ( ivCancelled ) { // F743-11774 if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { Tr . exit ( tc , "getResult: throwing CancellationException" ) ; } throw new CancellationException ( ) ; // F743-11774 } // Method ended with an exception if ( ivException != null ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { Tr . exit ( tc , "getResult: " + ivException ) ; } throw new ExecutionException ( ivException ) ; } // F743-609CodRev // If the result object is itself a Future object, we need to call "get" on it // so that we unwrap the results and place them in this Future object. This // is done to support asynchronous method calls that return results wrapped // in Future objects, and also to support nested asynchronous method calls. // Also, note that "null" is an acceptable result. // F743-16193 // Remove instanceof check for Future object. Return type validation check // moved to EJBMDOrchestrator.java Object resultToReturn = null ; if ( ivFuture != null ) { // AsyncResult EJB3.2 API just throws IllegalStateExceptions for everything but .get(). // Even in EJB3.1 API get(timeout, unit) just immediately returned. In a long nested // chain of futures, only the last one will be AsyncResult so we won't need to pass // down the remaining timeout anyway. if ( ivFuture instanceof AsyncResult ) { resultToReturn = ivFuture . get ( ) ; } else { resultToReturn = ivFuture . get ( timeout , unit ) ; // d650178 } } return ( resultToReturn ) ; } | This get method returns the result of the asynch method call . This method must not be called unless ivGate indicates that results are available . | 419 | 29 |
160,291 | @ Override public boolean isCancelled ( ) { //F743-609CodRev - read volatile variable only once boolean cancelled = ivCancelled ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "isCancelled: " + cancelled + " Future object: " + this ) ; } return ( cancelled ) ; } | This method allows clients to check the Future object to see if the asynch method was canceled before it got a chance to execute . | 88 | 27 |
160,292 | void setResult ( Future < ? > theFuture ) { // d650178 if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "setResult: " + Util . identity ( theFuture ) + " Future object: " + this ) ; } // set result, we are done ivFuture = theFuture ; done ( ) ; // F743-11774 } | did not throw an exception . | 95 | 6 |
160,293 | void setException ( Throwable theException ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "setException - Future object: " + this , theException ) ; } // set exception, we are done ivException = theException ; done ( ) ; // F743-11774 } | The async method ended with an exception | 79 | 7 |
160,294 | public Object saveState ( FacesContext context ) { if ( ! initialStateMarked ( ) ) { Object values [ ] = new Object [ 2 ] ; values [ 0 ] = _maximum ; values [ 1 ] = _minimum ; return values ; } return null ; } | RESTORE & SAVE STATE | 56 | 7 |
160,295 | public void logout ( Subject subject ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , CLASS_NAME + "logout" ) ; } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . exit ( tc , CLASS_NAME + "logout" ) ; } } | Logout method is used only for auditing purpose | 92 | 10 |
160,296 | public void setMessagingAuthenticationService ( MessagingAuthenticationService messagingAuthenticationService ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , CLASS_NAME + "setMessagingAuthenticationService" , messagingAuthenticationService ) ; } this . messagingAuthenticationService = messagingAuthenticationService ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . exit ( tc , CLASS_NAME + "setMessagingAuthenticationService" ) ; } } | Set the MessagingAuthenticationService | 128 | 7 |
160,297 | public void deactivate ( ComponentContext cc ) throws IOException { ConfigProviderResolver . setInstance ( null ) ; shutdown ( ) ; scheduledExecutorServiceRef . deactivate ( cc ) ; } | Deactivate a context and set the instance to null | 41 | 10 |
160,298 | public void shutdown ( ) { synchronized ( configCache ) { Set < ClassLoader > allClassLoaders = new HashSet <> ( ) ; allClassLoaders . addAll ( configCache . keySet ( ) ) ; //create a copy of the keys so that we avoid a ConcurrentModificationException for ( ClassLoader classLoader : allClassLoaders ) { close ( classLoader ) ; } //caches should be empty now but clear them anyway configCache . clear ( ) ; appClassLoaderMap . clear ( ) ; } } | Close down all the configs | 113 | 6 |
160,299 | private void close ( ClassLoader classLoader ) { synchronized ( configCache ) { ConfigWrapper config = configCache . remove ( classLoader ) ; if ( config != null ) { Set < String > applicationNames = config . getApplications ( ) ; for ( String app : applicationNames ) { appClassLoaderMap . remove ( app ) ; } config . close ( ) ; } } } | Completely close a config for a given classloader | 80 | 10 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.