idx
int64
0
165k
question
stringlengths
73
5.81k
target
stringlengths
5
918
159,300
public static void initialiseAcceptListenerFactory ( AcceptListenerFactory _acceptListenerFactory ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "initialiseAcceptListenerFactory" , _acceptListenerFactory ) ; Class clientImpl = instance . getClass ( ) ; Method initial...
Sets an AcceptListenerFactory on the full implementation of the ServerConnectionManager implementation .
159,301
private void setCredential ( Subject subject , WSPrincipal principal ) throws CredentialException { String securityName = principal . getName ( ) ; Hashtable < String , ? > customProperties = getUniqueIdHashtableFromSubject ( subject ) ; if ( customProperties == null || customProperties . isEmpty ( ) ) { UserRegistrySe...
Create a WSCredential for the specified accessId . If this accessId came from the current UserRegistry create a WsCredential . If not then do nothing .
159,302
private List < String > getUniqueGroupAccessIds ( UserRegistry userRegistry , String realm , String uniqueName ) throws EntryNotFoundException , RegistryException { List < String > uniqueGroupAccessIds = new ArrayList < String > ( ) ; List < String > uniqueGroupIds = userRegistry . getUniqueGroupIdsForUser ( uniqueName...
Get a list of all of the groups the user belongs to formated as group access IDs .
159,303
private String getPrimaryGroupId ( List < String > uniqueGroupIds ) { return uniqueGroupIds . isEmpty ( ) ? null : uniqueGroupIds . get ( 0 ) ; }
Get the primary group ID . This is assumed to be the first group in the group list .
159,304
@ FFDCIgnore ( { CredentialDestroyedException . class , CredentialExpiredException . class } ) public boolean isSubjectValid ( Subject subject ) { boolean valid = false ; try { WSCredential wsCredential = getWSCredential ( subject ) ; if ( wsCredential != null ) { long credentialExpirationInMillis = wsCredential . getE...
Checks if the subject is valid . Currently a subject is REQUIRED to have a WSCredential and it is only valid if the WSCredential is not expired .
159,305
private SibRaConnection createConnection ( ConnectionRequestInfo requestInfo ) throws SIResourceException , SINotPossibleInCurrentConfigurationException , SIIncorrectCallException , SIAuthenticationException { if ( TRACE . isEntryEnabled ( ) ) { SibTr . entry ( this , TRACE , "createConnection" , requestInfo ) ; } SibR...
Creates a connection via the connection manager .
159,306
public void storeRecord ( RepositoryLogRecord record ) { if ( isClosed ) { throw new IllegalStateException ( "This instance of the exporter is already closed" ) ; } if ( ! isInitialized ) { throw new IllegalStateException ( "This instance of the exporter does not have header information yet" ) ; } String formatRecord =...
Stores a RepositoryLogRecord into the proper text format
159,307
protected boolean acceptAnnotationsFrom ( String className , boolean acceptPartial , boolean acceptExcluded ) { String methodName = "acceptAnnotationsFrom" ; if ( config . isMetadataComplete ( ) ) { if ( ! acceptPartial && ! acceptExcluded ) { return false ; } } try { WebAnnotations webAppAnnotations = getModuleContain...
Tell if annotations on a target class are to be processed . This is controlled by the metadata - complete and absolute ordering settings of the web module .
159,308
protected void createSessionContext ( DeployedModule moduleConfig ) throws Throwable { try { ArrayList sessionRelatedListeners [ ] = new ArrayList [ ] { sessionListeners , sessionAttrListeners , sessionIdListeners } ; this . sessionCtx = ( ( WebGroup ) parent ) . getSessionContext ( moduleConfig , this , sessionRelated...
Method createSessionContext .
159,309
protected void initializeTargetMappings ( ) throws Exception { if ( com . ibm . ejs . ras . TraceComponent . isAnyTracingEnabled ( ) && logger . isLoggable ( Level . FINE ) ) logger . entering ( CLASS_NAME , "initializeTargetMappings" ) ; initializeStaticFileHandler ( ) ; initializeInvokerProcessor ( ) ; if ( config . ...
Method initializeTargetMappings .
159,310
private void initializeNonDDRepresentableAnnotation ( IServletConfig servletConfig ) { if ( com . ibm . ws . webcontainer . osgi . WebContainer . isServerStopping ( ) ) return ; String methodName = "initializeNonDDRepresentableAnnotation" ; String configClassName = servletConfig . getClassName ( ) ; if ( configClassNam...
Process any annotation which could not be managed by an update to the the descriptor based configuration .
159,311
@ FFDCIgnore ( Exception . class ) protected void addStaticFilePatternMappings ( RequestProcessor proxyReqProcessor ) { String nextPattern ; ExtensionProcessor fileExtensionProcessor = getDefaultExtensionProcessor ( this , getConfiguration ( ) . getFileServingAttributes ( ) ) ; List patternList = fileExtensionProcessor...
defect 39851 needs to stop the exception from always being thrown
159,312
public IServletWrapper getServletWrapper ( String servletName , boolean addMapping ) throws Exception { IServletWrapper targetWrapper = null ; IServletConfig sconfig = config . getServletInfo ( servletName ) ; if ( sconfig != null ) { IServletWrapper existingServletWrapper = sconfig . getServletWrapper ( ) ; if ( exist...
Method getServletWrapper .
159,313
private ServletConfig loadInternalConfig ( String servletName , int internalIndex ) throws ServletException { ServletConfig sconfig = createConfig ( "InternalServlet_" + servletName , internalIndex ) ; sconfig . setServletName ( servletName ) ; sconfig . setDisplayName ( servletName ) ; sconfig . setServletContext ( th...
Method loadInternalConfig .
159,314
protected Object loadListener ( String lClassName ) throws InjectionException , Throwable { Object listener = null ; try { if ( com . ibm . ejs . ras . TraceComponent . isAnyTracingEnabled ( ) && logger . isLoggable ( Level . FINE ) ) logger . logp ( Level . FINE , CLASS_NAME , "loadListener" , "loadListener Classloade...
LIDB1234 . 2 - added method below to load a listener class
159,315
public void addToStartWeightList ( IServletConfig sc ) { if ( this . sortedServletConfigs == null ) return ; int size = this . sortedServletConfigs . size ( ) ; int pos = 0 ; boolean added = false ; if ( size == 0 || ! sc . isLoadOnStartup ( ) ) sortedServletConfigs . add ( sc ) ; else { if ( sc . isAddedToLoadOnStartu...
Method addToStartWeightList .
159,316
public void notifyStart ( ) { try { eventSource . onApplicationAvailableForService ( new ApplicationEvent ( this , this , new com . ibm . ws . webcontainer . util . IteratorEnumerator ( config . getServletNames ( ) ) ) ) ; } catch ( Exception e ) { com . ibm . wsspi . webcontainer . util . FFDCWrapper . processExceptio...
use the started method above for any started specific requirements
159,317
public void addMappingFilter ( IServletConfig sConfig , IFilterConfig config ) { IFilterMapping fmapping = new FilterMapping ( null , config , sConfig ) ; _addMapingFilter ( config , fmapping ) ; }
Adds a filter against a specified servlet config into this context
159,318
public void initialize ( ) throws ServletException , Throwable { if ( com . ibm . ejs . ras . TraceComponent . isAnyTracingEnabled ( ) && logger . isLoggable ( Level . FINE ) ) logger . entering ( CLASS_NAME , "Initialize : app = " + config . getApplicationName ( ) + ", initialized = " + initialized + ", destroyed = " ...
LIBERTY Added for delayed start .
159,319
public void setModuleContainer ( com . ibm . wsspi . adaptable . module . Container c ) { container = c ; metaInfResourceFinder = new MetaInfResourceFinder ( container ) ; }
LIBERTY add to set the Adaptable API Container
159,320
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
159,321
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
159,322
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 . modifyMessagin...
Method to activate Messaging Security component
159,323
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 . isAnyTracingEnabled ( )...
Called by OSGI framework when there is a modification in server . xml for tag associated with this component
159,324
protected void deactivate ( ComponentContext context ) { SibTr . entry ( tc , CLASS_NAME + "deactivate" , context ) ; runtimeSecurityService . modifyMessagingServices ( null ) ; queuePermissions = null ; topicPermissions = null ; temporaryDestinationPermissions = null ; sibAuthenticationService = null ; sibAuthorizatio...
Called by OSGI framework when the feature is removed from server . xml
159,325
protected void setSecurityService ( SecurityService securityService ) { SibTr . entry ( tc , CLASS_NAME + "setSecurityService" , securityService ) ; this . securityService = securityService ; SibTr . exit ( tc , CLASS_NAME + "setSecurityService" ) ; }
Binding Security Service
159,326
protected void unsetSecurityService ( SecurityService securityService ) { SibTr . entry ( tc , CLASS_NAME + "unsetSecurityService" , securityService ) ; SibTr . exit ( tc , CLASS_NAME + "unsetSecurityService" ) ; }
Unbinding Security Service
159,327
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
159,328
protected void unsetConfigAdmin ( ConfigurationAdmin configAdmin ) { SibTr . entry ( tc , CLASS_NAME + "unsetConfigAdmin" , configAdmin ) ; SibTr . exit ( tc , CLASS_NAME + "unsetConfigAdmin" ) ; }
Unbinding the Configuration Admin service
159,329
public MessagingAuthenticationService getMessagingAuthenticationService ( ) { SibTr . entry ( tc , CLASS_NAME + "getMessagingAuthenticationService" ) ; if ( sibAuthenticationService == null ) { sibAuthenticationService = new MessagingAuthenticationServiceImpl ( this ) ; } SibTr . exit ( tc , CLASS_NAME + "getMessagingA...
Get Messaging Authentication Service
159,330
public MessagingAuthorizationService getMessagingAuthorizationService ( ) { SibTr . entry ( tc , CLASS_NAME + "getMessagingAuthorizationService" ) ; if ( sibAuthorizationService == null ) { sibAuthorizationService = new MessagingAuthorizationServiceImpl ( this ) ; } SibTr . exit ( tc , CLASS_NAME + "getMessagingAuthori...
Get Messaging Authorization Service
159,331
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
159,332
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
159,333
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
159,334
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
159,335
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 .
159,336
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 .
159,337
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 .
159,338
protected void initSpecialArrays ( ) { int len = getByteArray ( ) . length ; this . bytesWithPhrase = new byte [ len + 1 + this . myPhraseBytes . length ] ; System . arraycopy ( getByteArray ( ) , 0 , this . bytesWithPhrase , 0 , len ) ; this . bytesWithPhrase [ len ] = BNFHeaders . SPACE ; System . arraycopy ( this . ...
Initialize the special arrays .
159,339
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 .
159,340
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 .
159,341
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...
159,342
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 .
159,343
private static int getAvailableProcessorsFromFilesystem ( ) { boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; Double availableProcessorsDouble = null ; int availableProcessorsInt = - 1 ; String periodFileLocation = File . separator + "sys" + File . separator + "fs" + File . separator + "cgroup" + File . ...
utility below parses cpu limits info from Docker files
159,344
public static void processAllEntryProbeExtensions ( Event event , RequestContext requestContext ) { if ( event == requestContext . getRootEvent ( ) ) { requestContext . setRequestContextIndex ( activeRequests . add ( requestContext ) ) ; } List < ProbeExtension > probeExtnList = RequestProbeService . getProbeExtensions...
Iterate through all the probe extensions and process all the entry method of the available probe extension
159,345
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 { if ( probe...
Iterate through all the probe extensions and process all the exit method of the available probe extension
159,346
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 { if ( probeExtension . invokeForCounter ...
Iterate through all the probe extensions and process the counter methods of interested probe extensions
159,347
@ Reference ( name = KEY_SECURITY_SERVICE , policy = ReferencePolicy . DYNAMIC ) protected void setSecurityService ( SecurityService securitysvc ) { securityService = securitysvc ; }
serviceReferences are bad avoid and do this instead .
159,348
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 .
159,349
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 .
159,350
public static synchronized boolean setRunAsSubject ( Subject subj ) { Subject before = null ; try { before = getRunAsSubject ( ) ; final Subject fsubj = subj ; AccessController . doPrivileged ( new PrivilegedExceptionAction < Object > ( ) { public Object run ( ) throws Exception { WSSubject . setRunAsSubject ( fsubj ) ...
set the runAsSubject . Contain any exceptions with FFDC .
159,351
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 .
159,352
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
159,353
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 .
159,354
private void addFile ( int index , String file ) { if ( maxFiles > 0 ) { int numFiles = files . size ( ) ; int maxDateFiles = getMaxDateFiles ( ) ; if ( maxDateFiles <= 0 || numFiles < maxDateFiles ) { files . add ( index , file ) ; } else { while ( files . size ( ) > index ) { removeFile ( files . size ( ) - 1 ) ; } w...
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 .
159,355
protected JsJmsMessage instantiateMessage ( ) throws Exception { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "instantiateMessage" ) ; JsJmsMessage newMsg = jmfact . createJmsMessage ( ) ; messageClass = CLASS_NONE ; newMsg . setNonNullProperty ( ApiJmsConstants...
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 .
159,356
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 .
159,357
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 .
159,358
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 .
159,359
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 .
159,360
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 .
159,361
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 .
159,362
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 .
159,363
void clearLocalProperties ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "clearLocalProperties" ) ; if ( locallyStoredPropertyValues != null ) locallyStoredPropertyValues . clear ( ) ; localJMSMessageID = null ; if ( TraceComponent . isAnyTracingEnabled ( ) ...
Clear special case properties held in this message . Invoked at send time .
159,364
void invalidateToStringCache ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "invalidateToStringCache" ) ; cachedToString = null ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( this , tc , "invalidateToStringCache" ...
Called by the sendMessage method of JmsMsgProducerImpl in order to invalidate the toString of the message when we send it .
159,365
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 .
159,366
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 ; if ( productName...
Returns the EclipseLink database platform class name based on the properties passed in or by detecting it through the connection if one is available .
159,367
@ 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 .
159,368
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
159,369
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 ( AbstractConnectionFactoryS...
Destroy this application - defined resource by removing its configuration and the configuration of all other services that were created for it .
159,370
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 .
159,371
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
159,372
private Set getDestinationLocalitySet ( BaseDestinationHandler destinationHandler , Capability capability ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "getDestinationLocalitySet" , new Object [ ] { destinationHandler , capability } ) ; Set localitySet = null ; try ...
Retrieve the Locality Set defined in Admin .
159,373
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 .
159,374
private void compareToAparList ( ExecutionContext context , CommandConsole console , Map < String , Set < String > > installedIFixes , File wlpInstallationDirectory ) { String aparListString = context . getOptionValue ( APAR_TO_COMPARE_OPTION ) ; List < String > aparList ; aparListString = aparListString . trim ( ) ; i...
Compares the current install to a list of APARs in the console arguments
159,375
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
159,376
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
159,377
private Version getProductVersion ( File wlpInstallationDirectory ) throws VersionParsingException { Map < String , ProductInfo > productProperties = VersionUtils . getAllProductInfo ( wlpInstallationDirectory ) ; ProductInfo wasProperties = productProperties . get ( "com.ibm.websphere.appserver" ) ; if ( wasProperties...
Gets the product version from the properties file for the com . ibm . websphere . appserver product
159,378
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 .
159,379
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 .
159,380
public ModuleItem find ( String name ) { if ( children == null ) return null ; else return ( ModuleItem ) children . get ( name ) ; }
Find an immediate child
159,381
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
159,382
public synchronized ModuleItem add ( String [ ] path , int index ) { if ( path == null ) return null ; if ( path . length == 0 ) return this ; ModuleItem item = find ( path [ index ] ) ; if ( item == null ) { String [ ] myPath = new String [ index + 1 ] ; System . arraycopy ( path , 0 , myPath , 0 , myPath . length ) ;...
Find and add a child in the subtree if not found - do it recursively
159,383
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?
159,384
public synchronized void remove ( ModuleItem item ) { if ( item == null || children == null ) return ; PmiModule removeInstance = item . getInstance ( ) ; if ( ! ( removeInstance instanceof PmiModuleAggregate ) ) { ModuleItem myParent = this ; PmiModule parModule = null ; while ( myParent != null ) { parModule = myPare...
Remove a child from it - synchronized
159,385
public DataDescriptor [ ] listMembers ( DataDescriptor dd , boolean jmxBased ) { SpdData [ ] dataList = null ; int dataLength = 0 ; if ( ! jmxBased ) { dataList = instance . listData ( ) ; if ( dataList != null ) dataLength = dataList . length ; } String [ ] nameList = null ; int itemLength = 0 ; ModuleItem [ ] items =...
dd is the DataDescriptor for this module
159,386
public StatsImpl getStats ( boolean recursive ) { if ( recursive ) { if ( myStatsWithChildren == null ) { ArrayList dataMembers = null ; if ( instance != null ) dataMembers = instance . listStatistics ( ) ; ArrayList colMembers = null ; ModuleItem [ ] items = children ( ) ; if ( items != null ) { colMembers = new Array...
is updated .
159,387
private void setInstanceLevel_FG ( int [ ] enabled , int [ ] enabledSync , boolean recursive ) { if ( instance != null ) { boolean action = instance . setFineGrainedInstrumentation ( enabled , enabledSync ) ; updateParent ( ) ; } if ( recursive ) { ModuleItem [ ] items = children ( ) ; if ( items == null ) return ; for...
add data to parent if the newLevel is higher
159,388
private void _cleanChildren ( ) { if ( children != null ) { Iterator values = children . values ( ) . iterator ( ) ; while ( values . hasNext ( ) ) { ModuleItem remMI = ( ModuleItem ) values . next ( ) ; remMI . getInstance ( ) . cleanup ( ) ; remMI . _cleanChildren ( ) ; remMI = null ; } children . clear ( ) ; } }
recursively remove reference to child ModuleItem from children ArrayList
159,389
protected void configureCustomizeBinding ( Client client , QName portName ) { Map < String , Object > requestContext = client . getRequestContext ( ) ; if ( null != requestContext && null != wsrInfo ) { PortComponentRefInfo portRefInfo = wsrInfo . getPortComponentRefInfo ( portName ) ; Map < String , String > wsrProps ...
Add the LibertyCustomizeBindingOutInterceptor in the out interceptor chain .
159,390
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
159,391
private void configureClientProperties ( ) throws IOException { Map < String , String > serviceRefProps = wsrInfo . getProperties ( ) ; Iterator < QName > iterator = this . getPorts ( ) ; while ( null != iterator && iterator . hasNext ( ) ) { QName portQName = iterator . next ( ) ; PortComponentRefInfo portInfo = wsrIn...
configure the http conduit properties defined in the custom binding file .
159,392
private void prepareProperties ( QName portQName , Map < String , String > serviceRefProps , Map < String , String > portProps ) throws IOException { Map < String , String > allProperties = new HashMap < String , String > ( ) ; if ( null != serviceRefProps ) { allProperties . putAll ( serviceRefProps ) ; } if ( null !=...
merge the serviceRef properties and port properties and update the merged properties in the configAdmin service .
159,393
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 .
159,394
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 .
159,395
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 .
159,396
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 .
159,397
public String getDestination ( ) { if ( tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , "getDestination" ) ; SibTr . exit ( tc , "getDestination" , destination ) ; } return destination ; }
Returns the destination .
159,398
public String getSelector ( ) { if ( tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , "getSelector" ) ; SibTr . exit ( tc , "getSelector" , selector ) ; } return selector ; }
Returns the selector .
159,399
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 .