idx
int64
0
41.2k
question
stringlengths
83
4.15k
target
stringlengths
5
715
35,600
public final void start ( ) throws XAException { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "start" , new Object [ ] { _resource , printState ( _state ) } ) ; if ( tcSummary . isDebugEnabled ( ) ) Tr . debug ( tcSummary , "xa_start" , this ) ; int rc = - 1 ; try { int flags ; switch ( _state ) { case NOT_ASSOCIAT...
Associate the underlying XAResource with a transaction .
35,601
public final void end ( int flag ) throws XAException { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "end" , new Object [ ] { _resource , Util . printFlag ( flag ) , printState ( _state ) } ) ; if ( tcSummary . isDebugEnabled ( ) ) Tr . debug ( tcSummary , "xa_end" , new Object [ ] { this , "flags = " + Util . prin...
Terminate the association of the XAResource with this transaction .
35,602
protected void activate ( ComponentContext context , Map < String , Object > properties ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , CLASS_NAME + "activate" , new Object [ ] { context , properties } ) ; } try { service = new JsMainAdminServiceImpl ( ) ; configAdm...
This method is call by the declarative service when the feature is activated
35,603
protected void modified ( ComponentContext context , Map < String , Object > properties ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , CLASS_NAME + "modified" , new Object [ ] { context , properties } ) ; } try { if ( service . getMeState ( ) . equals ( ME_STATE . ...
This method is call by the declarative service when there is configuration change
35,604
@ Reference ( name = KEY_MESSAGE_STORE , service = MessageStore . class ) protected void setMessageStore ( ServiceReference < MessageStore > ref ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) SibTr . entry ( tc , "setMessageStore" , ref ) ; messageStoreRef . setReference ( ref ) ; if ( T...
Declarative Services method for setting the MessageStore service reference .
35,605
protected void unsetMessageStore ( ServiceReference < MessageStore > ref ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) SibTr . entry ( tc , "unsetMessageStore" , ref ) ; messageStoreRef . unsetReference ( ref ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) )...
Declarative Services method for unsetting the MessageStore service reference .
35,606
@ Reference ( name = KEY_DESTINATION_ADDRESS_FACTORY , service = SIDestinationAddressFactory . class ) protected void setDestinationAddressFactory ( ServiceReference < SIDestinationAddressFactory > ref ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) SibTr . entry ( tc , "setDestinationAdd...
Declarative Services method for setting the DestinationAddressFactory service reference .
35,607
protected void unsetDestinationAddressFactory ( ServiceReference < SIDestinationAddressFactory > ref ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) SibTr . entry ( tc , "unsetDestinationAddressFactory" , ref ) ; destinationAddressFactoryRef . setReference ( ref ) ; if ( TraceComponent . ...
Declarative Services method for unsetting the DestinationAddressFactory service reference .
35,608
@ Reference ( name = KEY_JS_ADMIN_SERVICE , service = JsAdminService . class ) protected void setJsAdminService ( ServiceReference < JsAdminService > ref ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) SibTr . entry ( tc , "setJsAdminService" , ref ) ; jsAdminServiceref . setReference ( r...
Declarative Services method for setting the JsAdminService service reference .
35,609
protected void unsetJsAdminService ( ServiceReference < JsAdminService > ref ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) SibTr . entry ( tc , "unsetJsAdminService" , ref ) ; jsAdminServiceref . setReference ( ref ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled...
Declarative Services method for unsetting the JsAdminService service reference .
35,610
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 .
35,611
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 .
35,612
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 .
35,613
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 .
35,614
@ 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 .
35,615
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 .
35,616
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
35,617
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 .
35,618
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 .
35,619
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 .
35,620
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 .
35,621
@ 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
35,622
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 .
35,623
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 .
35,624
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
35,625
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 .
35,626
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
35,627
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
35,628
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 .
35,629
public void setModuleContainer ( com . ibm . wsspi . adaptable . module . Container c ) { container = c ; metaInfResourceFinder = new MetaInfResourceFinder ( container ) ; }
LIBERTY add to set the Adaptable API Container
35,630
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
35,631
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
35,632
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
35,633
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
35,634
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
35,635
protected void setSecurityService ( SecurityService securityService ) { SibTr . entry ( tc , CLASS_NAME + "setSecurityService" , securityService ) ; this . securityService = securityService ; SibTr . exit ( tc , CLASS_NAME + "setSecurityService" ) ; }
Binding Security Service
35,636
protected void unsetSecurityService ( SecurityService securityService ) { SibTr . entry ( tc , CLASS_NAME + "unsetSecurityService" , securityService ) ; SibTr . exit ( tc , CLASS_NAME + "unsetSecurityService" ) ; }
Unbinding Security Service
35,637
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
35,638
protected void unsetConfigAdmin ( ConfigurationAdmin configAdmin ) { SibTr . entry ( tc , CLASS_NAME + "unsetConfigAdmin" , configAdmin ) ; SibTr . exit ( tc , CLASS_NAME + "unsetConfigAdmin" ) ; }
Unbinding the Configuration Admin service
35,639
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
35,640
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
35,641
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
35,642
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
35,643
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
35,644
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
35,645
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 .
35,646
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 .
35,647
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 .
35,648
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 .
35,649
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 .
35,650
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 .
35,651
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...
35,652
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 .
35,653
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
35,654
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
35,655
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
35,656
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
35,657
@ Reference ( name = KEY_SECURITY_SERVICE , policy = ReferencePolicy . DYNAMIC ) protected void setSecurityService ( SecurityService securitysvc ) { securityService = securitysvc ; }
serviceReferences are bad avoid and do this instead .
35,658
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 .
35,659
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 .
35,660
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 .
35,661
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 .
35,662
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
35,663
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 .
35,664
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 .
35,665
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 .
35,666
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 .
35,667
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 .
35,668
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 .
35,669
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 .
35,670
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 .
35,671
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 .
35,672
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 .
35,673
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 .
35,674
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 .
35,675
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 .
35,676
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 .
35,677
@ 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 .
35,678
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
35,679
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 .
35,680
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 .
35,681
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
35,682
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 .
35,683
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 .
35,684
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
35,685
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
35,686
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
35,687
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
35,688
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 .
35,689
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 .
35,690
public ModuleItem find ( String name ) { if ( children == null ) return null ; else return ( ModuleItem ) children . get ( name ) ; }
Find an immediate child
35,691
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
35,692
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
35,693
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?
35,694
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
35,695
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
35,696
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 .
35,697
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
35,698
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
35,699
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 .