idx int64 0 165k | question stringlengths 73 4.15k | target stringlengths 5 918 | len_question int64 21 890 | len_target int64 3 255 |
|---|---|---|---|---|
159,000 | private void addAllEntries ( Set s , com . ibm . wsspi . adaptable . module . Container dir ) throws UnableToAdaptException { for ( Entry entry : dir ) { String path = entry . getPath ( ) ; com . ibm . wsspi . adaptable . module . Container possibleContainer = entry . adapt ( com . ibm . wsspi . adaptable . module . Co... | Add all entry paths from the Container into the Set | 161 | 10 |
159,001 | private void populateCache ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , "populateCache" , this ) ; } try { HashMap < String , BaseDestination > destList = _bus . getLWMMEConfig ( ) . getMessagingEngine ( ) . getDestinationList ( ) ; Iterator < Entry < String , ... | Build the cache of DestinationDefinition objects in the configuration | 581 | 10 |
159,002 | @ Activate protected void activate ( BundleContext ctx , Map < String , Object > properties ) { SibTr . entry ( tc , CLASS_NAME + "activate" , properties ) ; this . properties = properties ; this . bundleLocation = ctx . getBundle ( ) . getLocation ( ) ; populateDestinationPermissions ( ) ; runtimeSecurityService . mod... | Method to activate Messaging Security component | 102 | 7 |
159,003 | @ Modified protected void modify ( ComponentContext cc , Map < String , Object > properties ) { SibTr . entry ( tc , CLASS_NAME + "modify" , properties ) ; this . properties = properties ; populateDestinationPermissions ( ) ; runtimeSecurityService . modifyMessagingServices ( this ) ; if ( TraceComponent . isAnyTracing... | Called by OSGI framework when there is a modification in server . xml for tag associated with this component | 107 | 21 |
159,004 | @ Deactivate protected void deactivate ( ComponentContext context ) { SibTr . entry ( tc , CLASS_NAME + "deactivate" , context ) ; runtimeSecurityService . modifyMessagingServices ( null ) ; queuePermissions = null ; topicPermissions = null ; temporaryDestinationPermissions = null ; sibAuthenticationService = null ; si... | Called by OSGI framework when the feature is removed from server . xml | 107 | 15 |
159,005 | @ Reference protected void setSecurityService ( SecurityService securityService ) { SibTr . entry ( tc , CLASS_NAME + "setSecurityService" , securityService ) ; this . securityService = securityService ; SibTr . exit ( tc , CLASS_NAME + "setSecurityService" ) ; } | Binding Security Service | 64 | 4 |
159,006 | protected void unsetSecurityService ( SecurityService securityService ) { SibTr . entry ( tc , CLASS_NAME + "unsetSecurityService" , securityService ) ; SibTr . exit ( tc , CLASS_NAME + "unsetSecurityService" ) ; } | Unbinding Security Service | 57 | 4 |
159,007 | @ Reference protected void setConfigAdmin ( ConfigurationAdmin configAdmin ) { SibTr . entry ( tc , CLASS_NAME + "setConfigAdmin" , configAdmin ) ; this . configAdmin = configAdmin ; SibTr . exit ( tc , CLASS_NAME + "setConfigAdmin" ) ; } | Binding the Configuration Admin service | 64 | 6 |
159,008 | protected void unsetConfigAdmin ( ConfigurationAdmin configAdmin ) { SibTr . entry ( tc , CLASS_NAME + "unsetConfigAdmin" , configAdmin ) ; SibTr . exit ( tc , CLASS_NAME + "unsetConfigAdmin" ) ; } | Unbinding the Configuration Admin service | 57 | 6 |
159,009 | @ Override public MessagingAuthenticationService getMessagingAuthenticationService ( ) { SibTr . entry ( tc , CLASS_NAME + "getMessagingAuthenticationService" ) ; if ( sibAuthenticationService == null ) { sibAuthenticationService = new MessagingAuthenticationServiceImpl ( this ) ; } SibTr . exit ( tc , CLASS_NAME + "ge... | Get Messaging Authentication Service | 105 | 5 |
159,010 | @ Override public MessagingAuthorizationService getMessagingAuthorizationService ( ) { SibTr . entry ( tc , CLASS_NAME + "getMessagingAuthorizationService" ) ; if ( sibAuthorizationService == null ) { sibAuthorizationService = new MessagingAuthorizationServiceImpl ( this ) ; } SibTr . exit ( tc , CLASS_NAME + "getMessa... | Get Messaging Authorization Service | 105 | 5 |
159,011 | public UserRegistry getUserRegistry ( ) { SibTr . entry ( tc , CLASS_NAME + "getUserRegistry" ) ; UserRegistry userRegistry = null ; if ( getSecurityService ( ) != null ) { UserRegistryService userRegistryService = securityService . getUserRegistryService ( ) ; try { if ( userRegistryService . isUserRegistryConfigured ... | Get User Registry from the Liberty Security component | 318 | 8 |
159,012 | private void populateDestinationPermissions ( ) { SibTr . entry ( tc , CLASS_NAME + "populateDestinationPermissions" , properties ) ; pids . clear ( ) ; String [ ] roles = ( String [ ] ) properties . get ( MessagingSecurityConstants . ROLE ) ; initializeMaps ( ) ; if ( roles != null ) { checkIfRolesAreUnique ( roles ) ... | Populate the DestinationPermissions map with the destination and there access list | 384 | 14 |
159,013 | private Dictionary < String , Object > getDictionaryObject ( String input ) { SibTr . entry ( tc , CLASS_NAME + "getDictionaryObject" , input ) ; Dictionary < String , Object > dictionary = null ; Configuration config = null ; try { pids . add ( input ) ; config = configAdmin . getConfiguration ( input , bundleLocation... | Get the Dictionary object for the given String | 221 | 8 |
159,014 | private void printDestinationPermissions ( Map < String , ? > destinationPermissions ) { Set < String > destinations = destinationPermissions . keySet ( ) ; for ( String destination : destinations ) { SibTr . debug ( tc , CLASS_NAME + " Destination: " + destination ) ; Permission permission = ( Permission ) destination... | Print the Destination Permissions it will be used for debugging purpose | 269 | 12 |
159,015 | public static final RecoveryProcessor getInstance ( ) { if ( tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , "getInstance" ) ; } if ( _processor == null ) { try { Class c = Class . forName ( "com.ibm.ws.sib.processor.impl.RecoveryProcessorImpl" ) ; _processor = ( RecoveryProcessor ) c . newInstance ( ) ; } catch ( Exc... | Returns a reference to the singleton RecoveryProcessor . | 147 | 11 |
159,016 | protected void init ( int code , String phrase , boolean isError ) { this . myPhrase = phrase ; this . myPhraseBytes = HttpChannelUtils . getEnglishBytes ( phrase ) ; this . myIntCode = code ; if ( isError ) { this . myError = new HttpError ( code , this . myPhrase ) ; } initSpecialArrays ( ) ; checkForAllowedBody ( ) ... | Initialize this status code with the input information . | 93 | 10 |
159,017 | public static StatusCodes makeUndefinedValue ( int value ) { StatusCodes code = new StatusCodes ( StatusCodes . UNDEF ) ; code . name = Integer . toString ( value ) ; code . byteArray = HttpChannelUtils . getEnglishBytes ( code . getName ( ) ) ; code . myIntCode = value ; code . initSpecialArrays ( ) ; code . checkForA... | Make a new Undefined enumerated value with the given input . | 123 | 13 |
159,018 | protected void initSpecialArrays ( ) { int len = getByteArray ( ) . length ; // set up the "status code + SPACE + default reason phrase" this . bytesWithPhrase = new byte [ len + 1 + this . myPhraseBytes . length ] ; System . arraycopy ( getByteArray ( ) , 0 , this . bytesWithPhrase , 0 , len ) ; this . bytesWithPhrase... | Initialize the special arrays . | 136 | 6 |
159,019 | public static StatusCodes getByOrdinal ( int i ) { if ( 0 > i || i >= MAX_CODE ) { throw new IndexOutOfBoundsException ( "Index " + i + " is out of bounds" ) ; } return statusCodes [ i ] ; } | Query the enumerated value that exists with the specified ordinal value . | 61 | 14 |
159,020 | public synchronized static void addBundleRepository ( String installDir , String featureType ) { BundleRepositoryHolder bundleRepositoryHolder = new BundleRepositoryHolder ( installDir , cacheServerName , featureType ) ; if ( ! repositoryHolders . containsKey ( featureType ) ) repositoryHolders . put ( featureType , bu... | Add a bundle repository to the map if one for that feature type has not already been added . | 79 | 19 |
159,021 | public Object put ( Object key , Object value ) { if ( null == key ) throw new IllegalArgumentException ( "key must not be null" ) ; if ( ! ( key instanceof String ) ) throw new IllegalArgumentException ( "key must be a String" ) ; if ( ! isValidObject ( value ) ) { if ( value != null ) { throw new IllegalArgumentExcep... | Method to put a JSON able object into the instance . Note that the order of initial puts controls the order of serialization . Meaning that the first time an item is put into the object determines is position of serialization . Subsequent puts with the same key replace the existing entry value and leave serialization p... | 194 | 77 |
159,022 | public Object remove ( Object key ) { Object retVal = null ; if ( null == key ) throw new IllegalArgumentException ( "key must not be null" ) ; if ( this . containsKey ( key ) ) { retVal = super . remove ( key ) ; for ( int i = 0 ; i < this . order . size ( ) ; i ++ ) { Object obj = this . order . get ( i ) ; if ( obj ... | Method to remove an entry from the OrderedJSONObject instance . | 119 | 13 |
159,023 | private static int getAvailableProcessorsFromFilesystem ( ) { boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; Double availableProcessorsDouble = null ; int availableProcessorsInt = - 1 ; //Check for docker files String periodFileLocation = File . separator + "sys" + File . separator + "fs" + File . separ... | utility below parses cpu limits info from Docker files | 659 | 11 |
159,024 | public static void processAllEntryProbeExtensions ( Event event , RequestContext requestContext ) { if ( event == requestContext . getRootEvent ( ) ) { // Add the request to Active Request list requestContext . setRequestContextIndex ( activeRequests . add ( requestContext ) ) ; } List < ProbeExtension > probeExtnList ... | Iterate through all the probe extensions and process all the entry method of the available probe extension | 464 | 18 |
159,025 | public static void processAllExitProbeExtensions ( Event event , RequestContext requestContext ) { List < ProbeExtension > probeExtnList = RequestProbeService . getProbeExtensions ( ) ; for ( int i = 0 ; i < probeExtnList . size ( ) ; i ++ ) { ProbeExtension probeExtension = probeExtnList . get ( i ) ; try { // Exit en... | Iterate through all the probe extensions and process all the exit method of the available probe extension | 656 | 18 |
159,026 | public static void processAllCounterProbeExtensions ( Event event ) { List < ProbeExtension > probeExtnList = RequestProbeService . getProbeExtensions ( ) ; for ( int i = 0 ; i < probeExtnList . size ( ) ; i ++ ) { ProbeExtension probeExtension = probeExtnList . get ( i ) ; try { //Check if this probe extension is inte... | Iterate through all the probe extensions and process the counter methods of interested probe extensions | 249 | 16 |
159,027 | @ Reference ( name = KEY_SECURITY_SERVICE , policy = ReferencePolicy . DYNAMIC ) protected void setSecurityService ( SecurityService securitysvc ) { securityService = securitysvc ; } | serviceReferences are bad avoid and do this instead . | 45 | 10 |
159,028 | public static String getUserName ( ) throws Exception { Subject subject = getRunAsSubjectInternal ( ) ; if ( subject == null ) { return null ; } Set < Principal > principals = subject . getPrincipals ( ) ; Iterator < Principal > principalsIterator = principals . iterator ( ) ; if ( principalsIterator . hasNext ( ) ) { ... | Gets the username from the principal of the subject . | 96 | 11 |
159,029 | public static synchronized boolean pushSubject ( String username ) { if ( securityService == null || username == null ) { if ( tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "returning false because user or securityService is null," + " user= " + username + " secsvc= " + securityService ) ; } return false ; } Authentica... | Authenticate the username create it s Subject and push it on to the thread . It s up to the caller to save off the prior subject and make sure it gets restored and guard against any threading issues . | 384 | 42 |
159,030 | public static synchronized boolean setRunAsSubject ( Subject subj ) { Subject before = null ; try { before = getRunAsSubject ( ) ; final Subject fsubj = subj ; AccessController . doPrivileged ( new PrivilegedExceptionAction < Object > ( ) { @ Override public Object run ( ) throws Exception { WSSubject . setRunAsSubject... | set the runAsSubject . Contain any exceptions with FFDC . | 202 | 14 |
159,031 | public static TopicWildcardTranslation getInstance ( ) throws Exception { if ( tcInt . isEntryEnabled ( ) ) Tr . entry ( tcInt , "getInstance" ) ; if ( twt == null ) { try { Class cls = Class . forName ( UtConstants . TWT_FACTORY_CLASS ) ; twt = ( TopicWildcardTranslation ) cls . newInstance ( ) ; } catch ( Instantiati... | Obtain the singleton instance of the wildcard mapping class . | 198 | 13 |
159,032 | public static VersionRange getFilterRange ( FilterVersion minVersion , FilterVersion maxVersion ) { VersionRange vr = null ; Version vmin = minVersion == null ? Version . emptyVersion : new Version ( minVersion . getValue ( ) ) ; Version vmax = maxVersion == null ? null : new Version ( maxVersion . getValue ( ) ) ; cha... | This method creates a version range from the supplied min and max FilterVersion | 174 | 14 |
159,033 | public boolean update ( File directory , String fileName , String fileExtension , int maxFiles ) { this . maxFiles = maxFiles ; boolean updateLocation = ! directory . equals ( this . directory ) || ! fileName . equals ( this . fileName ) || ! fileExtension . equals ( this . fileExtension ) ; if ( updateLocation ) { thi... | Updates the configuration for this set of logs . | 407 | 10 |
159,034 | private void addFile ( int index , String file ) { if ( maxFiles > 0 ) { int numFiles = files . size ( ) ; int maxDateFiles = getMaxDateFiles ( ) ; // If there is no max or we have fewer than max, then we're done. if ( maxDateFiles <= 0 || numFiles < maxDateFiles ) { files . add ( index , file ) ; } else { // The file ... | Adds a file name to the files list at the specified index . If adding this file would cause the number of files to exceed the maximum remove all files after the specified index and then remove the oldest files until the number is reduced to the maximum . | 224 | 49 |
159,035 | protected JsJmsMessage instantiateMessage ( ) throws Exception { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "instantiateMessage" ) ; // Create a new message object. JsJmsMessage newMsg = jmfact . createJmsMessage ( ) ; messageClass = CLASS_NONE ; // d317373 de... | This method carries out the instantiation of the MFP message object for this JMS message class . The method is overridden by subclasses to instantiate the correct subclass and carry out any reference setting required . | 201 | 42 |
159,036 | protected JsJmsMessage getMsgReference ( ) throws JMSException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "getMsgReference" ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( this , tc , "getMsgReference" , msg ) ; ... | Get a Jetstream message representing the content of this JMS message . Used during the sending of messages . | 98 | 21 |
159,037 | protected void setDestReference ( Destination d ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "setDestReference" , d ) ; dest = d ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "setDestReference" ) ; } | Update the destination cache reference without setting any data into the core message . | 91 | 14 |
159,038 | protected void checkBodyWriteable ( String callingMethodName ) throws JMSException { if ( bodyReadOnly ) { throw ( javax . jms . MessageNotWriteableException ) JmsErrorUtils . newThrowable ( javax . jms . MessageNotWriteableException . class , "READ_ONLY_MESSAGE_BODY_CWSIA0107" , new Object [ ] { callingMethodName } , ... | If the message body is read - only throw a MessageNotWriteableException . | 100 | 16 |
159,039 | protected void checkBodyReadable ( String callingMethodName ) throws MessageNotReadableException { if ( ! bodyReadOnly ) { throw ( javax . jms . MessageNotReadableException ) JmsErrorUtils . newThrowable ( javax . jms . MessageNotReadableException . class , "WRITE_ONLY_MESSAGE_BODY_CWSIA0109" , new Object [ ] { calling... | If the message body is write - only throw a MessageNotReadableException . | 104 | 16 |
159,040 | protected void checkPropertiesWriteable ( String callingMethodName ) throws JMSException { if ( propertiesReadOnly ) { throw ( javax . jms . MessageNotWriteableException ) JmsErrorUtils . newThrowable ( javax . jms . MessageNotWriteableException . class , "READ_ONLY_MESSAGE_PROPERTY_CWSIA0108" , new Object [ ] { callin... | If the message properties are read - only throw a MessageNotWriteableException . | 102 | 16 |
159,041 | public Reliability getReliability ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "getReliability" ) ; Reliability r = msg . getReliability ( ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( this , tc , "getReliabl... | This method retrieves the underlying reliability that is set for this message . The outgoing value can also be determined by examining the persistence and NPM properties however inbound cannot be found in this way . | 105 | 39 |
159,042 | protected void setBodyReadOnly ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "setBodyReadOnly" ) ; bodyReadOnly = true ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( this , tc , "setBodyReadOnly" ) ; } | Mark the body of the message as read only . Needed for the reset methods of Bytes and Stream messages . | 94 | 23 |
159,043 | void clearLocalProperties ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "clearLocalProperties" ) ; if ( locallyStoredPropertyValues != null ) locallyStoredPropertyValues . clear ( ) ; // d255144 Also clear the local version of the messageID localJMSMessageI... | Clear special case properties held in this message . Invoked at send time . | 128 | 15 |
159,044 | void invalidateToStringCache ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "invalidateToStringCache" ) ; // Invalidate the toString cache. cachedToString = null ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( this... | Called by the sendMessage method of JmsMsgProducerImpl in order to invalidate the toString of the message when we send it . | 106 | 30 |
159,045 | static void checkPropName ( String name , String callingMethodName ) throws IllegalArgumentException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "checkPropName" , new Object [ ] { name , callingMethodName } ) ; if ( ( name == null ) || ( "" . equals ( name ) ) ) { i... | This method checks the property name to see whether it is null or empty and throws an IllegalArgumentException if it is . Note that this is used from MapMessage for the body as well as from this class for the header . | 227 | 46 |
159,046 | public String getDatabasePlatformClassName ( PUInfoImpl pui ) { SessionLog traceLogger = new TraceLog ( ) ; Properties properties = pui . getProperties ( ) ; String productName = properties . getProperty ( PersistenceUnitProperties . SCHEMA_DATABASE_PRODUCT_NAME ) ; String vendorNameAndVersion = null ; // check persist... | Returns the EclipseLink database platform class name based on the properties passed in or by detecting it through the connection if one is available . | 268 | 26 |
159,047 | @ FFDCIgnore ( SQLException . class ) private Boolean supportsUnicodeStaticCheck ( DataSource ds ) { Boolean res = null ; try { Connection conn = ds . getConnection ( ) ; String product = null ; try { DatabaseMetaData dmd = conn . getMetaData ( ) ; product = dmd . getDatabaseProductName ( ) ; if ( tc . isDebugEnabled (... | Consults the static collections contained within this class and attempts to determine whether the provided DataSource supports unicode . | 323 | 22 |
159,048 | public void setMessagingAuthorizationService ( MessagingAuthorizationService messagingAuthorizationService ) { SibTr . entry ( tc , CLASS_NAME + "setMessagingAuthorizationService" , messagingAuthorizationService ) ; this . messagingAuthorizationService = messagingAuthorizationService ; SibTr . exit ( tc , CLASS_NAME + ... | Set the Messaging Authorization Service | 82 | 6 |
159,049 | @ Override public void destroy ( ) throws Exception { final boolean trace = TraceComponent . isAnyTracingEnabled ( ) ; if ( trace && tc . isEntryEnabled ( ) ) Tr . entry ( this , tc , "destroy" , id ) ; tracker . close ( ) ; StringBuilder filter = new StringBuilder ( FilterUtils . createPropertyFilter ( AbstractConnect... | Destroy this application - defined resource by removing its configuration and the configuration of all other services that were created for it . | 144 | 23 |
159,050 | public void addMPDestinationChangeListener ( MPDestinationChangeListener destinationChangeListener ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "addMPDestinationChangeListener" , new Object [ ] { destinationChangeListener } ) ; _destinationChangeListeners . add ( d... | This method is used internal to MP only and is used to register additional destination change listeners that are need as well as the main MP listener registered at startup . | 125 | 31 |
159,051 | public void removeMPDestinationChangeListener ( MPDestinationChangeListener destinationChangeListener ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "removeMPDestinationChangeListener" , new Object [ ] { destinationChangeListener } ) ; _destinationChangeListeners . r... | This method is used internal to MP only and is used to remove a destination change listener that was registered . This method will only remove a destinationLocationChangeListener that was registered via addMPDestinationChangeListener | 125 | 42 |
159,052 | private Set getDestinationLocalitySet ( BaseDestinationHandler destinationHandler , Capability capability ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "getDestinationLocalitySet" , new Object [ ] { destinationHandler , capability } ) ; // Check if the localisation ... | Retrieve the Locality Set defined in Admin . | 244 | 10 |
159,053 | private void cleanupDestination ( PtoPMessageItemStream ptoPMessageItemStream , BaseDestinationHandler destinationHandler , SIBUuid8 meUuid , Capability capability ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "cleanupDestination" , new Object [ ] { ptoPMessageItemS... | Cleanup destinations unknown to both WLM and WCCM . | 273 | 13 |
159,054 | private void compareToAparList ( ExecutionContext context , CommandConsole console , Map < String , Set < String > > installedIFixes , File wlpInstallationDirectory ) { // console.printlnInfoMessage("WLP Directory [ " + wlpInstallationDirectory.getPath() + " ]"); // console.printlnInfoMessage("Installed IFixes [ " + in... | Compares the current install to a list of APARs in the console arguments | 795 | 16 |
159,055 | private void compareToInstallLocation ( ExecutionContext context , CommandConsole console , Map < String , Set < String > > aparToIFixMap , File wlpInstallationDirectory ) { String installToCompareToLocation = context . getOptionValue ( INSTALL_LOCATION_TO_COMPARE_TO_OPTION ) ; File installToCompareToFile = new File ( ... | Compares the current install to one supplied in the console arguments | 773 | 12 |
159,056 | private void printAparIFixInfo ( CommandConsole console , Map < String , Set < String > > aparToIFixMap ) { for ( Map . Entry < String , Set < String > > aparIFixInfo : aparToIFixMap . entrySet ( ) ) { console . printlnInfoMessage ( getMessage ( "compare.ifix.apar.info" , aparIFixInfo . getKey ( ) , aparIFixInfo . getV... | This will print the map of APARs to iFixes by giving a line to each APAR listing which iFixes it is in | 109 | 29 |
159,057 | private Version getProductVersion ( File wlpInstallationDirectory ) throws VersionParsingException { // First get the properties Map < String , ProductInfo > productProperties = VersionUtils . getAllProductInfo ( wlpInstallationDirectory ) ; // Get the properties for WAS ProductInfo wasProperties = productProperties . ... | Gets the product version from the properties file for the com . ibm . websphere . appserver product | 134 | 23 |
159,058 | private String readLine ( InputStream stream ) throws IOException { BufferedReader reader = new BufferedReader ( new InputStreamReader ( stream ) ) ; return reader . readLine ( ) ; } | This will read a single line from the input stream as a string . | 41 | 14 |
159,059 | public void service ( ServletRequest req , ServletResponse resp ) throws ServletException , IOException { try { TimedServletPoolElement e = _pool . getNextElement ( ) ; e . getServlet ( ) . service ( req , resp ) ; _pool . returnElement ( e ) ; _pool . removeExpiredElements ( ) ; } catch ( Throwable th ) { com . ibm . ... | Overloaded by subclasses to perform the servlet s request handling operation . | 150 | 15 |
159,060 | public ModuleItem find ( String name ) { if ( children == null ) return null ; else return ( ModuleItem ) children . get ( name ) ; /* * for(int i=0; i<children.size(); i++) * { * ModuleItem item = (ModuleItem)children.get(i); * if(item.instance != null) * { * if(item.instance.getName().equals(name)) * return item; * }... | Find an immediate child | 105 | 4 |
159,061 | public ModuleItem find ( String [ ] path , int index ) { if ( path == null ) return null ; if ( path . length == 0 ) return this ; ModuleItem item = find ( path [ index ] ) ; if ( item == null ) return null ; if ( index == path . length - 1 ) return item ; else return item . find ( path , index + 1 ) ; } | Find a child in the subtree - do it recursively | 82 | 13 |
159,062 | public synchronized ModuleItem add ( String [ ] path , int index ) { if ( path == null ) return null ; if ( path . length == 0 ) return this ; ModuleItem item = find ( path [ index ] ) ; // custom module shouldn't go inside if{} if ( item == null ) { // Create Aggregate Module String [ ] myPath = new String [ index + 1... | Find and add a child in the subtree if not found - do it recursively | 292 | 18 |
159,063 | public ModuleItem [ ] children ( ) { if ( children == null ) return null ; ModuleItem [ ] members = new ModuleItem [ children . size ( ) ] ; children . values ( ) . toArray ( members ) ; return members ; } | Return an array of children - synchronized? | 51 | 8 |
159,064 | public synchronized void remove ( ModuleItem item ) { if ( item == null || children == null ) return ; // remove from all the parents which have links to it due to aggregate data PmiModule removeInstance = item . getInstance ( ) ; if ( ! ( removeInstance instanceof PmiModuleAggregate ) ) { // recursively remove aggrega... | Remove a child from it - synchronized | 260 | 7 |
159,065 | public DataDescriptor [ ] listMembers ( DataDescriptor dd , boolean jmxBased ) { // take care of data members SpdData [ ] dataList = null ; int dataLength = 0 ; if ( ! jmxBased ) { dataList = instance . listData ( ) ; if ( dataList != null ) dataLength = dataList . length ; } // take care of non-data members String [ ]... | dd is the DataDescriptor for this module | 330 | 10 |
159,066 | public StatsImpl getStats ( boolean recursive ) { // DO THIS METHOD NEED SYNCHRONIZED ACCESS? // When multiple threads get inside the method and stats tree is updated if ( recursive ) { /* * // if leaf then do not create myStatsWithChildren. Instead return myStats * if (children == null && !bStatsTreeNeedsUpdate) * { *... | is updated . | 643 | 3 |
159,067 | private void setInstanceLevel_FG ( int [ ] enabled , int [ ] enabledSync , boolean recursive ) { if ( instance != null ) { // Fine grained instrumentation overrides the old level // First call setFineGrainedInstrumentation. // If fine grained level is undefined called old setInstrumentationLevel boolean action = instan... | add data to parent if the newLevel is higher | 294 | 10 |
159,068 | private void _cleanChildren ( ) { //bStatsTreeNeedsUpdate = true; if ( children != null ) { Iterator values = children . values ( ) . iterator ( ) ; while ( values . hasNext ( ) ) { ModuleItem remMI = ( ModuleItem ) values . next ( ) ; remMI . getInstance ( ) . cleanup ( ) ; //_cleanMBean(remMI); remMI . _cleanChildren... | recursively remove reference to child ModuleItem from children ArrayList | 109 | 13 |
159,069 | protected void configureCustomizeBinding ( Client client , QName portName ) { //put all properties defined in ibm-ws-bnd.xml into the client request context Map < String , Object > requestContext = client . getRequestContext ( ) ; if ( null != requestContext && null != wsrInfo ) { PortComponentRefInfo portRefInfo = wsr... | Add the LibertyCustomizeBindingOutInterceptor in the out interceptor chain . | 445 | 17 |
159,070 | private WebServiceFeature [ ] getWebServiceFeaturesOnPortComponentRef ( Class serviceEndpointInterface ) { WebServiceFeature [ ] returnArray = { } ; if ( serviceEndpointInterface != null && wsrInfo != null ) { String seiName = serviceEndpointInterface . getName ( ) ; PortComponentRefInfo pcr = wsrInfo . getPortComponen... | Gets an array of features possibly enabled on client s port - component - ref in the deployment descriptor | 334 | 20 |
159,071 | private void configureClientProperties ( ) throws IOException { Map < String , String > serviceRefProps = wsrInfo . getProperties ( ) ; Iterator < QName > iterator = this . getPorts ( ) ; //wsrInfo.getBindingPortComponentRefInfoList(); while ( null != iterator && iterator . hasNext ( ) ) { QName portQName = iterator . ... | configure the http conduit properties defined in the custom binding file . | 178 | 13 |
159,072 | private void prepareProperties ( QName portQName , Map < String , String > serviceRefProps , Map < String , String > portProps ) throws IOException { // Merge the properties form port and service. Map < String , String > allProperties = new HashMap < String , String > ( ) ; if ( null != serviceRefProps ) { allPropertie... | merge the serviceRef properties and port properties and update the merged properties in the configAdmin service . | 354 | 20 |
159,073 | protected Map < String , String > extract ( String propertyPrefix , Map < String , String > properties , boolean removeProps ) { if ( null == properties || properties . isEmpty ( ) ) { return Collections . < String , String > emptyMap ( ) ; } Map < String , String > extractProps = new HashMap < String , String > ( ) ; ... | Extract the properties according to the property prefix . | 226 | 10 |
159,074 | protected Map < String , String > extract ( String propertyPrefix , Map < String , String > properties ) { return extract ( propertyPrefix , properties , true ) ; } | Extract the properties according to the property prefix will remove the extracted properties from original properties . | 36 | 18 |
159,075 | private boolean isKnownArgument ( String arg ) { final String argName = getArgName ( arg ) ; for ( String key : knownArgs ) { if ( key . equalsIgnoreCase ( argName ) ) { return true ; } } return false ; } | Checks if the argument is a known argument to the task . | 55 | 13 |
159,076 | protected String getTaskHelp ( String desc , String usage , String optionKeyPrefix , String optionDescPrefix , String addonKey , String footer , Object ... args ) { StringBuilder scriptHelp = new StringBuilder ( ) ; scriptHelp . append ( NL ) ; scriptHelp . append ( getOption ( "global.description" ) ) ; scriptHelp . a... | Generate the formatted task help . | 343 | 7 |
159,077 | public String getDestination ( ) { if ( tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , "getDestination" ) ; SibTr . exit ( tc , "getDestination" , destination ) ; } return destination ; } | Returns the destination . | 56 | 4 |
159,078 | public String getSelector ( ) { if ( tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , "getSelector" ) ; SibTr . exit ( tc , "getSelector" , selector ) ; } return selector ; } | Returns the selector . | 56 | 4 |
159,079 | public int getSelectorDomain ( ) { if ( tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , "getSelectorDomain" ) ; SibTr . exit ( tc , "getSelectorDomain" , new Integer ( selectorDomain ) ) ; } return selectorDomain ; } | Returns the messaging domain in which the selector was sspecified . | 65 | 12 |
159,080 | public String getUser ( ) { if ( tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , "getUser" ) ; SibTr . exit ( tc , "getUser" , user ) ; } return user ; } | Returns the user . | 53 | 4 |
159,081 | public void setDestination ( String destination ) { if ( tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "setDestination" , destination ) ; this . destination = destination ; if ( tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "setDestination" ) ; } | Sets the destination . | 69 | 5 |
159,082 | public void setSelector ( String selector ) { if ( tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "setSelector" , selector ) ; this . selector = selector ; if ( tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "setSelector" ) ; } | Sets the selector . | 69 | 5 |
159,083 | public void setTopic ( String topic ) { if ( tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "setTopic" , topic ) ; this . topic = topic ; if ( tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "setTopic" ) ; } | Sets the topic . | 66 | 5 |
159,084 | public boolean isNoLocal ( ) { if ( tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , "isNoLocal" ) ; SibTr . exit ( tc , "isNoLocal" , new Boolean ( noLocal ) ) ; } return noLocal ; } | Returns the noLocal . | 62 | 5 |
159,085 | public void setNoLocal ( boolean noLocal ) { if ( tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "setNoLocal" , new Boolean ( noLocal ) ) ; this . noLocal = noLocal ; if ( tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "setNoLocal" ) ; } | Sets the noLocal . | 77 | 6 |
159,086 | @ FFDCIgnore ( URISyntaxException . class ) public static String namespaceURIToPackage ( String namespaceURI ) { try { return nameSpaceURIToPackage ( new URI ( namespaceURI ) ) ; } catch ( URISyntaxException ex ) { return null ; } } | Generates a Java package name from a URI according to the algorithm outlined in JAXB 2 . 0 . | 62 | 22 |
159,087 | public static String nameToIdentifier ( String name , IdentifierType type ) { if ( null == name || name . length ( ) == 0 ) { return name ; } // algorithm will not change an XML name that is already a legal and // conventional (!) Java class, method, or constant identifier boolean legalIdentifier = false ; StringBuilde... | Converts an XML name to a Java identifier according to the mapping algorithm outlined in the JAXB specification | 370 | 21 |
159,088 | public static String getDefaultSSLSocketFactory ( ) { if ( defaultSSLSocketFactory == null ) { defaultSSLSocketFactory = AccessController . doPrivileged ( new PrivilegedAction < String > ( ) { @ Override public String run ( ) { return Security . getProperty ( "ssl.SocketFactory.provider" ) ; } } ) ; } return defaultSSL... | Get the default SSLSocketFactory from Security . | 85 | 10 |
159,089 | public static String getDefaultSSLServerSocketFactory ( ) { if ( defaultSSLServerSocketFactory == null ) { defaultSSLServerSocketFactory = AccessController . doPrivileged ( new PrivilegedAction < String > ( ) { @ Override public String run ( ) { return Security . getProperty ( "ssl.ServerSocketFactory.provider" ) ; } }... | Get the default SSLServerSocketFactory class from Security . | 90 | 12 |
159,090 | public static String getKeyManagerFactoryAlgorithm ( ) { if ( keyManagerFactoryAlgorithm == null ) { keyManagerFactoryAlgorithm = AccessController . doPrivileged ( new PrivilegedAction < String > ( ) { @ Override public String run ( ) { return Security . getProperty ( "ssl.KeyManagerFactory.algorithm" ) ; } } ) ; } ret... | Get the key manager factory algorithm default from Security . | 86 | 10 |
159,091 | public static String getTrustManagerFactoryAlgorithm ( ) { if ( trustManagerFactoryAlgorithm == null ) { trustManagerFactoryAlgorithm = AccessController . doPrivileged ( new PrivilegedAction < String > ( ) { @ Override public String run ( ) { return Security . getProperty ( "ssl.TrustManagerFactory.algorithm" ) ; } } )... | Get the trust manager factory algorithm default from Security . | 86 | 10 |
159,092 | public static void initializeIBMCMSProvider ( ) throws Exception { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "initializeIBMCMSProvider" ) ; Provider provider = Security . getProvider ( Constants . IBMCMS_NAME ) ; if ( provider != null ) { if ( TraceComponent . isAnyTra... | Initialize the IBM CMS provider . | 295 | 7 |
159,093 | public static void insertProviderAt ( Provider newProvider , int slot ) { Provider [ ] provider_list = Security . getProviders ( ) ; if ( null == provider_list || 0 == provider_list . length ) { return ; } // add the new provider to the new list at the correct slot #. Provider [ ] newList = new Provider [ provider_list... | Insert a provider into Security at the provided slot number . | 334 | 11 |
159,094 | public static void removeAllProviders ( ) { Provider [ ] provider_list = Security . getProviders ( ) ; for ( int i = 0 ; i < provider_list . length ; i ++ ) { if ( provider_list [ i ] != null ) { String name = provider_list [ i ] . getName ( ) ; if ( name != null ) { Security . removeProvider ( name ) ; } } } } | Remove all providers from Security . | 90 | 6 |
159,095 | static void validateAsyncOnInterfaces ( Class < ? > [ ] ifaces , TraceComponent tc ) { if ( ifaces != null ) { for ( Class < ? > iface : ifaces ) { // d645943 - Modified the fix integrated for d618337 to include both // the class-level and method-level checks. Since no-interface view // beans are the interface, we need... | F743 - 13921 | 266 | 6 |
159,096 | @ Modified protected void modified ( ComponentContext context ) throws Exception { processProperties ( context . getProperties ( ) ) ; deregisterJavaMailMBean ( ) ; registerJavaMailMBean ( ) ; } | The Modified method is how the properties that are defined in the mailSession object of the server . xml are extracted and stored in the sessionProperties . | 46 | 30 |
159,097 | @ Override public Object createResource ( ResourceInfo info ) throws Exception { Properties propertyNames = createPropertyNames ( ) ; Properties props = createProperties ( propertyNames ) ; // The listOfPropMap is how the nested properties (name, value pairs) are // pulled from the Nester class. This iterates the map a... | The createResource uses the sessionProperties to create a javax . mail . Session object and return it to the caller . The caller uses JNDI look up with the JNDI name defined in the server . xml . | 142 | 47 |
159,098 | private Properties createProperties ( Properties propertyNames ) { Properties props = new Properties ( ) ; for ( String key : propertiesArray ) { if ( sessionProperties . get ( key ) != null ) { if ( ! key . equalsIgnoreCase ( STOREPROTOCOLCLASSNAME ) && ! key . equalsIgnoreCase ( TRANSPORTPROTOCOLCLASSNAME ) ) { props... | The createProperties method will iterate through the sessionProperties and put them into the props object so that it can be used to create the javax . mail . Session | 235 | 36 |
159,099 | private Properties createPropertyNames ( ) { Properties propertyNames = new Properties ( ) ; propertyNames . setProperty ( HOST , "mail.host" ) ; propertyNames . setProperty ( USER , "mail.user" ) ; propertyNames . setProperty ( FROM , "mail.from" ) ; propertyNames . setProperty ( TRANSPORTPROTOCOL , "mail.transport.pr... | The createPropertyName method sets a property for five special strings that can be set in a different method such as mail . host . These are different way to set certain property values and are unique to these five | 117 | 41 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.