idx int64 0 165k | question stringlengths 73 4.15k | target stringlengths 5 918 | len_question int64 21 890 | len_target int64 3 255 |
|---|---|---|---|---|
164,000 | public String getSubscriberID ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( this , tc , "getSubscriberID" ) ; SibTr . exit ( this , tc , "getSubscriberID" , subscriptionID ) ; } return subscriptionID ; } | Returns the subscriberID . | 79 | 5 |
164,001 | public String [ ] getTopics ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( this , tc , "getTopics" ) ; SibTr . exit ( this , tc , "getTopics" , topics ) ; } return topics ; } | Returns the array of topics . | 70 | 6 |
164,002 | public void removeTopic ( String topic ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "removeTopic" , topic ) ; SelectionCriteria [ ] tmp = selectionCriteriaList ; // Loop through the selectionCriteriaList for ( int i = 0 ; i < selectionCriteriaList . length ;... | Remove a topic from the array of topics | 397 | 8 |
164,003 | public void setTopicSpaceUuid ( SIBUuid12 topicSpace ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "setTopicSpaceUuid" , topicSpace ) ; this . topicSpaceUuid = topicSpace ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exi... | Sets the topic space . | 111 | 6 |
164,004 | public void setSubscriberID ( String subscriptionID ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "setSubscriberID" , subscriptionID ) ; this . subscriptionID = subscriptionID ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr ... | Sets the subscriberID . | 105 | 6 |
164,005 | public boolean isSIBServerSubject ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( this , tc , "isSIBServerSubject" ) ; SibTr . exit ( this , tc , "isSIBServerSubject" , Boolean . valueOf ( isSIBServerSubject ) ) ; } return isSIBServerSubject ; } | Returns the isSIBServerSubject . | 91 | 8 |
164,006 | protected boolean isDurable ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( this , tc , "isDurable" ) ; SibTr . exit ( this , tc , "isDurable" , Boolean . valueOf ( durable ) ) ; } return durable ; // F001333-14610 } | Is this a durable subscription state | 85 | 6 |
164,007 | public void setDurable ( boolean isDurable ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "setDurable" , Boolean . valueOf ( isDurable ) ) ; durable = isDurable ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( this , ... | time for a durable subscription . | 105 | 6 |
164,008 | public boolean equalUser ( ConsumerDispatcherState subState ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "equalUser" ) ; /* Check user */ boolean equal = equalUser ( subState . getUser ( ) , subState . isSIBServerSubject ( ) ) ; if ( TraceComponent . isAnyTr... | Returns whether this object has the same values as the given object | 130 | 12 |
164,009 | public void setReady ( boolean ready ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "setReady" , Boolean . valueOf ( ready ) ) ; this . ready = ready ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( this , tc , "setRe... | Sets the ready flag . | 98 | 6 |
164,010 | public boolean isNoLocal ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( this , tc , "isNoLocal" ) ; SibTr . exit ( this , tc , "isNoLocal" , Boolean . valueOf ( noLocal ) ) ; } return noLocal ; } | Returns the noLocal flag . | 79 | 6 |
164,011 | public void setNoLocal ( boolean noLocal ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "setNoLocal" , Boolean . valueOf ( noLocal ) ) ; this . noLocal = noLocal ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( this ,... | Sets the noLocal flag . | 105 | 7 |
164,012 | public void setDurableHome ( String val ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "setDurableHome" , val ) ; durableHome = val ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( this , tc , "setDurableHome" ) ; } | Set durableHome . | 97 | 4 |
164,013 | public void setIsCloned ( boolean isCloned ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "setIsCloned" , Boolean . valueOf ( isCloned ) ) ; this . isCloned = isCloned ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( ... | Sets the isCloned . | 112 | 7 |
164,014 | public void setTopicSpaceName ( String name ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "setTopicSpaceName" , name ) ; topicSpaceName = name ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( this , tc , "setTopicSpa... | Sets the name of the topicspace that the subscription was made through | 98 | 14 |
164,015 | public String getTopicSpaceBusName ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( this , tc , "getTopicSpaceBusName" ) ; SibTr . exit ( this , tc , "getTopicSpaceBusName" , topicSpaceBusName ) ; } return topicSpaceBusName ; } | Gets the busname of the topicspace that the subscription was made through | 83 | 15 |
164,016 | public void setTopicSpaceBusName ( String busname ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "setTopicSpaceBusName" , busname ) ; topicSpaceBusName = busname ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( this ,... | Sets the busname of the topicspace that the subscription was made through | 105 | 15 |
164,017 | public SIBUuid8 getRemoteMEUuid ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( this , tc , "getRemoteMEUuid" ) ; SibTr . exit ( this , tc , "getRemoteMEUuid" , remoteMEUuid ) ; } return remoteMEUuid ; } | Retrieve the UUID of the ME that homes a remote durable subscription | 87 | 14 |
164,018 | public void setRemoteMEUuid ( SIBUuid8 remoteMEUuid ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "setRemoteMEUuid" , remoteMEUuid ) ; this . remoteMEUuid = remoteMEUuid ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit... | Set the UUID of the ME that homes a remote durable subscription | 117 | 13 |
164,019 | static Map < String , List < Method > > getBusinessMethodsByName ( BeanMetaData bmd ) { Map < String , List < Method > > methodsByName = new HashMap < String , List < Method > > ( ) ; collectBusinessMethodsByName ( methodsByName , bmd . methodInfos ) ; collectBusinessMethodsByName ( methodsByName , bmd . localMethodInf... | Returns a map of method name to list of business methods . | 93 | 12 |
164,020 | static Method findMatchingMethod ( Map < String , List < Method > > methodsByName , com . ibm . ws . javaee . dd . ejb . Method me ) { List < Method > methods = methodsByName . get ( me . getMethodName ( ) ) ; if ( methods == null ) { return null ; } List < String > meParms = me . getMethodParamList ( ) ; if ( meParms ... | Finds the first matching method in a map of method name to list of methods . | 150 | 17 |
164,021 | public static final boolean methodsEqual ( Method remoteMethod , Method beanMethod ) { if ( ( remoteMethod == null ) || ( beanMethod == null ) ) { return false ; } //---------------------- // Compare method names //---------------------- if ( ! remoteMethod . getName ( ) . equals ( beanMethod . getName ( ) ) ) { return... | This utility method compares a method on the bean s remote interface with a method on the bean and returns true iff they are equal for the purpose of determining if the control descriptor associated with the bean method applies to the remote interface method . Equality in this case means the methods are identical excep... | 250 | 67 |
164,022 | public static final boolean homeMethodEquals ( Method homeMethod , Properties beanMethodProps ) { if ( ( homeMethod == null ) || ( beanMethodProps == null ) ) { return false ; } //---------------------- // Compare method names //---------------------- String homeMethodName = homeMethod . getName ( ) ; String beanMethod... | This utility method compares a method on the bean s home interface with a method on the bean and returns true iff they are equal for the purpose of determining if the control descriptor associated with the bean method applies to the remote interface method . Equality in this case means that the bean method has the same... | 292 | 71 |
164,023 | public static long timeUnitToMillis ( long value , TimeUnit unit , boolean annotation , BeanMetaData bmd ) throws EJBConfigurationException { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) { Tr . entry ( tc , "timeUnitToMillis: " + value + unit ) ; } // ... | F743 - 6605 . 1 streamlined method . | 555 | 11 |
164,024 | protected UserTransaction getUserTransaction ( boolean injection , Object injectionContext ) throws NamingException { final UserTransaction ut = AccessController . doPrivileged ( new PrivilegedAction < UserTransaction > ( ) { @ Override public UserTransaction run ( ) { return userTranSvcRef . getBundle ( ) . getBundleC... | Helper method for use with injection TransactionObjectFactoruy . | 139 | 11 |
164,025 | private < T , V > boolean addToMap ( Map < Class < ? > , Map < T , V > > proxyMap , T f , V proxy ) { Map < T , V > proxies = proxyMap . get ( serviceClass ) ; if ( proxies == null ) { proxies = new HashMap < T , V > ( ) ; proxyMap . put ( serviceClass , proxies ) ; } if ( ! proxies . containsKey ( f ) ) { proxies . pu... | Liberty code change start defect 182967 | 113 | 9 |
164,026 | public TrustManagerFactory getTrustManagerFactoryInstance ( String trustMgr , String ctxtProvider ) throws NoSuchAlgorithmException , NoSuchProviderException { String mgr = trustMgr ; String provider = ctxtProvider ; if ( mgr . indexOf ( ' ' ) != - 1 ) { String [ ] trustManagerArray = mgr . split ( "\\|" ) ; if ( trust... | Get the trust manager factory instance using the provided information . | 192 | 11 |
164,027 | public KeyManagerFactory getKeyManagerFactoryInstance ( String keyMgr , String ctxtProvider ) throws NoSuchAlgorithmException , NoSuchProviderException { String mgr = keyMgr ; String provider = ctxtProvider ; if ( mgr . indexOf ( ' ' ) != - 1 ) { String [ ] keyManagerArray = mgr . split ( "\\|" ) ; if ( keyManagerArray... | Get the key manager factory instance using the provided information . | 193 | 11 |
164,028 | public URLStreamHandler getHandler ( ) throws Exception { String handlerString = getSSLProtocolPackageHandler ( ) + ".https.Handler" ; URLStreamHandler streamHandler = null ; try { ClassLoader cl = AccessController . doPrivileged ( getCtxClassLoader ) ; if ( cl != null ) { streamHandler = ( URLStreamHandler ) cl . load... | Query the default handler for this provider using HTTPS . | 242 | 10 |
164,029 | private X509KeyManager loadCustomKeyManager ( String kmClass ) throws Exception { X509KeyManager km = null ; try { ClassLoader cl = AccessController . doPrivileged ( getCtxClassLoader ) ; if ( cl != null ) { try { km = ( X509KeyManager ) cl . loadClass ( kmClass ) . newInstance ( ) ; } catch ( Exception e ) { // no ffd... | this loads the KeyManager class if present | 250 | 8 |
164,030 | public static void clearSSLContextCache ( ) { if ( sslContextCacheJAVAX != null && sslContextCacheJAVAX . size ( ) > 0 ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) Tr . debug ( tc , "Clearing standard javax.net.ssl.SSLContext cache." ) ; sslContextCacheJAVAX . clear ( ) ; } } | Clear the contents of the SSLContext cache . | 96 | 9 |
164,031 | public static void clearSSLContextCache ( Collection < File > modifiedFiles ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) Tr . debug ( tc , "Clearing standard javax.net.ssl.SSLContext cached object containing keystores: " + new Object [ ] { modifiedFiles } ) ; for ( File modifiedKeystor... | Clear the contents of the SSLContext cache if it uses the files passed in | 170 | 15 |
164,032 | public static void removeEntryFromSSLContextMap ( String keyStorePath ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) Tr . debug ( tc , "removeEntryFromSSLContextMap: " + new Object [ ] { keyStorePath } ) ; List < SSLConfig > removeList = new ArrayList < SSLConfig > ( ) ; for ( Entry < SS... | Give a keyStoreFile location look for the SSLContexts that reference it as either a keystore or truststore then remove those SSLContexts from the cache . | 429 | 33 |
164,033 | public synchronized Entry next ( ) { if ( tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "next" ) ; // can only do anything if the cursor is still pointing in to a list checkEntryParent ( ) ; Entry nextEntry = null ; synchronized ( parentList ) { //get the next entry in the list nextEntry = getNextEntry ( ) ; //if the ... | Synchronized . Move the cursor down to the next entry in the list and return it . | 380 | 19 |
164,034 | public synchronized Entry previous ( ) { if ( tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "previous" ) ; // can only do anything if the cursor is still pointing in to a list checkEntryParent ( ) ; Entry previousEntry = null ; synchronized ( parentList ) { //get the previous entry previousEntry = getPreviousEntry ( )... | Synchronized . Move the cursor up to the previous entry in the list and return it . | 385 | 19 |
164,035 | public synchronized Entry current ( ) { if ( tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "current" ) ; checkEntryParent ( ) ; if ( tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "current" , current ) ; return current ; } | Synchronized . Get the entry currently pointed to by this cursor . | 65 | 14 |
164,036 | public synchronized void moveToTop ( ) { if ( tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "moveToTop" ) ; checkEntryParent ( ) ; //record the reference to the parent list because the call to forceRemove //will nullify it. LinkedList list = parentList ; synchronized ( list ) { //remove the cursor from it's current po... | Synchronized . Move the cursor to the top of the list . | 213 | 14 |
164,037 | public synchronized void moveToBottom ( ) { if ( tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "moveToBottom" ) ; checkEntryParent ( ) ; //record the parent list LinkedList list = parentList ; synchronized ( list ) { //remove the cursor from it current position forceRemove ( ) ; //reset the parent list parentList = li... | Synchronized . Move the cursor to the bottom of the list . | 170 | 14 |
164,038 | public synchronized void moveCursor ( Entry newEntry ) { if ( tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "moveCursor" , new Object [ ] { newEntry } ) ; checkEntryParent ( ) ; //if the entry is the same as the current one //then we don't need to bother doing anything if ( newEntry != current ) { //make sure we can f... | Synchronized . Move this cursor to point at a different entry in the same list . | 409 | 18 |
164,039 | public synchronized void moveCursor ( Cursor cursor ) { if ( tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "moveCursor" , new Object [ ] { cursor } ) ; checkEntryParent ( ) ; synchronized ( parentList ) { //make sure that the cursor is pointing to an entry in the same list if ( cursor != null && cursor . parentList ==... | Synchronized . Move this cursor to point at the same one as a given cursor . | 544 | 18 |
164,040 | Entry forceRemove ( ) { Entry removedEntry = null ; checkEntryParent ( ) ; if ( atTop ) { //if we are at the top of the list and we are the first top cursor if ( parentList . firstTopCursor == this ) { //set the first top cursor to be the next one in the list parentList . firstTopCursor = ( Cursor ) next ; } //mark us ... | Not Synchronized . | 273 | 5 |
164,041 | public synchronized void finished ( ) { if ( tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "finished" ) ; checkEntryParent ( ) ; synchronized ( parentList ) { //remove the cursor from the list //this will set the parent list reference to null and make the //cursor seubsequently unusable forceRemove ( ) ; } if ( tc . i... | Synchronized . Indicate that this cursor is finished with . This call will remove this cursor from the list and make it subsequently unusable . | 100 | 29 |
164,042 | @ Override public JsMessage getMessageIfAvailable ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "getMessageIfAvailable" ) ; //If message is not available in the message store do not throw exception boolean throwExceptionIfNotAvailable = false ; JsMessage lo... | Get the underlying message object only if the message is available in the message store | 141 | 15 |
164,043 | @ Override public int getInMemoryDataSize ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "getInMemoryDataSize" ) ; JsMessage localMsg = getJSMessage ( true ) ; int msgSize = localMsg . getInMemorySize ( ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc... | Returns an estimated in memory size for the Message that we have . | 135 | 13 |
164,044 | @ Override public Reliability getReliability ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "getReliability" ) ; if ( msgReliability == null ) { JsMessage localMsg = getJSMessage ( true ) ; msgReliability = localMsg . getReliability ( ) ; } if ( TraceCompone... | Get the message s Reliability | 135 | 6 |
164,045 | public void setReliability ( Reliability reliability ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "setReliability" , reliability ) ; JsMessage localMsg = getJSMessage ( true ) ; msgReliability = reliability ; localMsg . setReliability ( msgReliability ) ; if... | Sets both the cached version of the reliability and the reliability in the underlying message . | 122 | 17 |
164,046 | @ Override public long getMaximumTimeInStore ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "getMaximumTimeInStore" ) ; JsMessage localMsg = getJSMessage ( true ) ; long timeToLive = localMsg . getTimeToLive ( ) . longValue ( ) ; long maxTime = NEVER_EXPIRES... | Return the maximum time this message should spend in the ItemStream . | 180 | 13 |
164,047 | @ Override public SIBUuid12 getProducerConnectionUuid ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( this , tc , "getProducerConnectionUuid" ) ; } if ( producerConnectionUuid == null ) { JsMessage localMsg = getJSMessage ( true ) ; producerConnectionUuid = localMsg . ... | Returns the producerConnectionUuid . Please note this value may be null in the case of a p2p message . | 156 | 24 |
164,048 | public void setProducerConnectionUuid ( SIBUuid12 producerConnectionUuid ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "setProducerConnectionUuid" , producerConnectionUuid ) ; this . producerConnectionUuid = producerConnectionUuid ; if ( TraceComponent . isAn... | Sets the producerConnectionUuid . | 120 | 8 |
164,049 | @ Override public boolean isTransacted ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( this , tc , "isTransacted" ) ; SibTr . exit ( this , tc , "isTransacted" , Boolean . valueOf ( transacted ) ) ; } return transacted ; } | Was this message put transactionally | 82 | 6 |
164,050 | public void setMaxStorageStrategy ( int requestedMaxStrategy ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "setMaxStorageStrategy" , Integer . valueOf ( requestedMaxStrategy ) ) ; maxStorageStrategy = requestedMaxStrategy ; if ( TraceComponent . isAnyTracingE... | Set the maximum storage strategy permitted | 117 | 6 |
164,051 | public void setPriority ( int newPriority ) { JsMessage localMsg = getJSMessage ( true ) ; msgPriority = newPriority ; localMsg . setPriority ( newPriority ) ; } | Set the message priority and cache it | 47 | 7 |
164,052 | public void addPersistentRef ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "addPersistentRef" ) ; // We have at least one durable reference so the message // must maintain its level of persistence maintainPersistence = 1 ; if ( TraceComponent . isAnyTracing... | Note the existence of a persistent reference | 112 | 7 |
164,053 | private void setOriginatingBus ( String busName ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "setOriginatingBus" , busName ) ; _busName = busName ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( this , tc , "setOrig... | Sets the previous hop Bus name | 101 | 7 |
164,054 | public String getOriginatingBus ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( this , tc , "getOriginatingBus" ) ; SibTr . exit ( this , tc , "getOriginatingBus" , _busName ) ; } return _busName ; } | Gets the bus that the message was previously at . | 78 | 11 |
164,055 | public void forceCurrentMEArrivalTimeToJsMessage ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "forceCurrentMEArrivalTimeToJsMessage" ) ; if ( ! arrivalTimeStored ) { JsMessage localMsg = getJSMessage ( true ) ; localMsg . setCurrentMEArrivalTimestamp ( cur... | Forces the local messageItem currentMEArrivalTime value to be set to the JsMessage rather than wait till the data has been spilled to the db . | 154 | 33 |
164,056 | @ Override public void unlockMsg ( long lockID , Transaction transaction , boolean incrementUnlock ) throws MessageStoreException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "unlockMsg" , new Object [ ] { Long . valueOf ( lockID ) , transaction , Boolean . valueOf (... | unlockMsg - call any registered callbacks before we unlock the message N . B All MP unlocking should go through this method | 556 | 25 |
164,057 | public void setRegisterForPostEvents ( boolean registerEvents ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( this , tc , "setRegisterForPostEvents" , Boolean . valueOf ( registerEvents ) ) ; SibTr . exit ( this , tc , "setRegisterForPostEvents" ) ; } this . registerEven... | sets whether event listeners has to be registered for post events | 92 | 11 |
164,058 | @ Trivial public void addAll ( PriorityConverterMap convertersToAdd ) { for ( PriorityConverter converter : convertersToAdd . converters . values ( ) ) { _addConverter ( converter ) ; } } | Add all of the converters from the given map to this one ... if they have a higher priority as above | 52 | 22 |
164,059 | public PriorityConverter getConverter ( Type type ) { PriorityConverter converter = converters . get ( type ) ; return converter ; } | Get a converter for the given type | 32 | 7 |
164,060 | public static Version stringToVersion ( String str ) { if ( str == null || str . isEmpty ( ) || str . equals ( "0" ) ) { return Version . emptyVersion ; } if ( str . equals ( "1" ) || str . equals ( "1.0" ) || str . equals ( "1.0.0" ) ) return VERSION_1_0 ; return new Version ( str ) ; } | Convert a string into a Version reusing common Version objects if we can . | 92 | 16 |
164,061 | public static final VersionRange stringToVersionRange ( String str ) { if ( str == null || str . isEmpty ( ) || "0" . equals ( str ) ) return EMPTY_RANGE ; if ( "[1,1.0.100)" . equals ( str ) || "[1.0,1.0.100)" . equals ( str ) || "[1.0.0,1.0.100)" . equals ( str ) ) return INITIAL_RANGE ; return new VersionRange ( str... | Convert a string into a VersionRange reusing common VersionRange objects if we can . | 113 | 18 |
164,062 | public void setAttribute ( String name , String value ) { this . myAttrs . put ( name . toLowerCase ( ) , value ) ; } | Set a generic attribute on this cookie . | 32 | 8 |
164,063 | public String getServletURI ( HttpServletRequest req ) { String uriName = req . getServletPath ( ) ; String pathInfo = req . getPathInfo ( ) ; if ( pathInfo != null ) uriName = uriName . concat ( pathInfo ) ; if ( uriName == null || uriName . length ( ) == 0 ) uriName = "/" ; uriName = WSUtil . resolveURI ( uriName ) ;... | Return the full servlet path including any additional path info . | 211 | 12 |
164,064 | void fireProgressEvent ( int state , int progress , String message ) { try { fireProgressEvent ( state , progress , message , false ) ; } catch ( InstallException e ) { } } | Creates a Progress event message . | 40 | 7 |
164,065 | void fireProgressEvent ( int state , int progress , String message , boolean allowCancel ) throws InstallException { log ( Level . FINEST , message ) ; if ( enableEvent ) { try { eventManager . fireProgressEvent ( state , progress , message ) ; } catch ( CancelException ce ) { if ( allowCancel ) throw ce ; else log ( L... | Creates a Progress event message that can handle cancel exceptions . | 132 | 12 |
164,066 | void log ( Level level , String msg , Exception e ) { if ( e != null ) logger . log ( level , msg , e ) ; } | Logs a message with an exception . | 31 | 8 |
164,067 | boolean isEmpty ( Map < String , List < List < RepositoryResource > > > installResources ) { if ( installResources == null ) return true ; for ( List < List < RepositoryResource > > targetList : installResources . values ( ) ) { for ( List < RepositoryResource > mrList : targetList ) { if ( ! mrList . isEmpty ( ) ) ret... | Checks if installResources map contains any resources | 92 | 9 |
164,068 | boolean isEmpty ( List < List < RepositoryResource > > installResources ) { if ( installResources == null ) return true ; for ( List < RepositoryResource > mrList : installResources ) { if ( ! mrList . isEmpty ( ) ) return false ; } return true ; } | Checks if installResources contains any resources | 64 | 8 |
164,069 | boolean containFeature ( Map < String , ProvisioningFeatureDefinition > installedFeatures , String feature ) { if ( installedFeatures . containsKey ( feature ) ) return true ; for ( ProvisioningFeatureDefinition pfd : installedFeatures . values ( ) ) { String shortName = InstallUtils . getShortName ( pfd ) ; if ( short... | Checks if the feature is in installedFeatures | 94 | 9 |
164,070 | Collection < String > getFeaturesToInstall ( Collection < String > requiredFeatures , boolean download ) { Collection < String > featuresToInstall = new ArrayList < String > ( requiredFeatures . size ( ) ) ; if ( ! requiredFeatures . isEmpty ( ) ) { Map < String , ProvisioningFeatureDefinition > installedFeatures = pro... | Creates a collection of features that still need to be installed | 116 | 12 |
164,071 | boolean containScript ( List < File > filesInstalled ) { for ( File f : filesInstalled ) { String path = f . getAbsolutePath ( ) . toLowerCase ( ) ; if ( path . contains ( "/bin/" ) || path . contains ( "\\bin\\" ) ) { return true ; } } return false ; } | Checks if filesInstalled includes scripts in a bin folder . | 74 | 13 |
164,072 | public static String getNameOfReferenceableItem ( Object annotation ) { if ( annotation == null ) { return "" ; } String name = "" , ref = "" ; if ( annotation instanceof org . eclipse . microprofile . openapi . annotations . headers . Header ) { name = ( ( org . eclipse . microprofile . openapi . annotations . headers... | Retrieve the name | 350 | 4 |
164,073 | public int getExactSubsSize ( String topicExpression ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "getExactSubsSize" , topicExpression ) ; int numSubs = 0 ; // Test whether table is now empty if ( ! _registeredExactConsumerMonitors . isEmpty ( ) ) { if ( _registere... | Methods for integrity checks - used in unit testing | 241 | 9 |
164,074 | @ FFDCIgnore ( value = { Exception . class } ) public void setSimpleDateFormat ( String formatString ) { if ( formatString == null ) { if ( tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "Null format string provided; date format will not be changed" ) ; } return ; } try { simpleDateFormat = new SimpleDateFormat ( format... | Set the SimpleDateFormat string that should be used to format date strings created by this class . | 145 | 19 |
164,075 | public void cleanUpMaybeDiscriminatorState ( ) { if ( this . dp != null ) { Discriminator d ; Iterator < Discriminator > it = this . dp . getDiscriminators ( ) . iterator ( ) ; int i = 0 ; while ( it . hasNext ( ) ) { d = it . next ( ) ; if ( Discriminator . MAYBE == this . discStatus [ i ++ ] ) { d . cleanUpState ( th... | Clean up potential state information left in this VC from any of the discriminators in the group which resulted in MAYBE during the discrimination process . | 107 | 28 |
164,076 | public void cleanUpAllDiscriminatorState ( ) { if ( this . dp != null ) { Iterator < Discriminator > it = this . dp . getDiscriminators ( ) . iterator ( ) ; while ( it . hasNext ( ) ) { it . next ( ) . cleanUpState ( this ) ; } } } | Clean up potential state information left in this VC from any of the discriminators in the group . | 73 | 19 |
164,077 | public ContextualStorage getContextualStorage ( BeanManager beanManager , String flowClientWindowId ) { ContextualStorage contextualStorage = storageMap . get ( flowClientWindowId ) ; if ( contextualStorage == null ) { synchronized ( this ) { contextualStorage = storageMap . get ( flowClientWindowId ) ; if ( contextual... | This method will return the ContextualStorage or create a new one if no one is yet assigned to the current flowClientWindowId . | 111 | 27 |
164,078 | @ PreDestroy public void destroyBeansOnPreDestroy ( ) { Map < String , ContextualStorage > oldWindowContextStorages = forceNewStorage ( ) ; if ( ! oldWindowContextStorages . isEmpty ( ) ) { FacesContext facesContext = FacesContext . getCurrentInstance ( ) ; ServletContext servletContext = null ; if ( facesContext == nu... | See description on ViewScopeBeanHolder for details about how this works | 342 | 15 |
164,079 | private void printValueIntro ( String text ) { if ( text != null ) { ffdcLog . print ( text ) ; ffdcLog . print ( EQUALS ) ; } } | Print the introductory text for a value | 41 | 7 |
164,080 | @ Sensitive public static String getCookieValue ( Cookie [ ] cookies , String cookieName ) { if ( cookies == null ) { return null ; } String retVal = null ; for ( int i = 0 ; i < cookies . length ; ++ i ) { if ( cookieName . equalsIgnoreCase ( cookies [ i ] . getName ( ) ) ) { retVal = cookies [ i ] . getValue ( ) ; br... | Retrieve the value of the first instance of the specified Cookie name from the array of Cookies . Note name matching ignores case . | 99 | 25 |
164,081 | public static String [ ] getCookieValues ( Cookie [ ] cookies , String cookieName ) { if ( cookies == null ) { return null ; } Vector < String > retValues = new Vector < String > ( ) ; for ( int i = 0 ; i < cookies . length ; ++ i ) { if ( cookieName . equalsIgnoreCase ( cookies [ i ] . getName ( ) ) ) { retValues . ad... | Retrieve the value of the all instances of the specified Cookie name from the array of Cookies . Note name matching ignores case . | 142 | 25 |
164,082 | public static void addCookiesToResponse ( List < Cookie > cookieList , HttpServletResponse resp ) { Iterator < Cookie > iterator = cookieList . listIterator ( ) ; while ( iterator . hasNext ( ) ) { Cookie cookie = iterator . next ( ) ; if ( cookie != null ) { resp . addCookie ( cookie ) ; } } } | Given a list of Cookie objects set them into the HttpServletResponse . This method does not alter the cookies in any way . | 77 | 27 |
164,083 | public void setLogHandler ( String id , LogHandler ref ) { if ( id != null && ref != null ) { logHandlerServices . put ( id , ref ) ; } } | Add the LogHandler ref . 1 or more LogHandlers may be set . | 38 | 16 |
164,084 | public synchronized void modified ( Properties props ) { for ( Object key : props . keySet ( ) ) { String msgId = ( String ) key ; String logHandlerIds = props . getProperty ( msgId ) ; Set < String > logHandlerIdSet = getOrCreateLogHandlerIdSet ( msgId ) ; // "logHandlerIds" is a comma-separated list of LogHandlers ID... | Process the MessageRouter . properties file contents given by the Properties parm . | 388 | 16 |
164,085 | protected void addMsgToLogHandler ( String msgId , String handlerId ) { Set < String > logHandlerIdSet = getOrCreateLogHandlerIdSet ( msgId ) ; logHandlerIdSet . add ( handlerId ) ; } | Add the specified log handler to the message ID s routing list . | 50 | 13 |
164,086 | protected void removeMsgFromLogHandler ( String msgId , String handlerId ) { Set < String > logHandlerIdSet = getOrCreateLogHandlerIdSet ( msgId ) ; logHandlerIdSet . remove ( handlerId ) ; } | Remove the specified log handler from the message ID s routing list . | 50 | 13 |
164,087 | private String [ ] filter ( String [ ] candidateCipherSuites , String [ ] requested , OptionsKey options ) { List < String > candidates = Arrays . asList ( candidateCipherSuites ) ; EnumSet < Options > supports = toOptions ( options . supports , true ) ; EnumSet < Options > requires = toOptions ( options . requires , f... | This method will warn if any requested cipher suites appear to not match the options | 196 | 15 |
164,088 | protected void markStepForFailure ( ) { StopLock stopLock = getStopLock ( ) ; // Store in local variable to facilitate Ctrl+Shift+G search in Eclipse synchronized ( stopLock ) { updateStepBatchStatus ( BatchStatus . FAILED ) ; if ( ! issuedFailureMessageToJobLog ) { stepThreadHelper . logFailedMessage ( ) ; issuedFailu... | Updates in - memory status and issues message to job log but does not persist final status . | 90 | 19 |
164,089 | protected boolean wasStopIssuedOnJob ( ) { StopLock stopLock = getStopLock ( ) ; // Store in local variable to facilitate Ctrl+Shift+G search in Eclipse synchronized ( stopLock ) { if ( runtimeWorkUnitExecution . getBatchStatus ( ) . equals ( BatchStatus . STOPPING ) ) { return true ; } else { return false ; } } } | We need this because the stop can come in at the job level while the step - level constructs are still getting set up . | 82 | 25 |
164,090 | protected StepThreadExecutionEntity createStepExecutionIfStepShouldBeExecuted ( ) throws DoNotRestartStepThreadException { StepThreadExecutionEntity newStepExecution = null ; StepThreadInstanceKey stepThreadInstanceKey = getStepThreadInstanceKey ( ) ; stepThreadInstance = getPersistenceManagerService ( ) . getStepThrea... | stepThreadInstance and stepThreadExecution are either retrieved from the DB or if they don t exist yet they re created . | 340 | 25 |
164,091 | public Selector parseWholeSelector ( String selector ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) tc . entry ( cclass , "parseWholeSelector" , "selector: " + selector ) ; // Need to set the domain to XPATH1.0 Identifier ident = new IdentifierImpl ( selector ) ; // Set the full name int... | This method retains the behaviour of the first implementation of XPath support where the entire expression is wrapped in a single identifier . | 463 | 24 |
164,092 | private void parseSelector ( String selector ) throws InvalidXPathSyntaxException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) tc . entry ( cclass , "parseSelector" , "selector: " + selector ) ; // Set the locationStep to -1 locationStep = - 1 ; int start = 0 ; // find number of path sep... | Parse the XPath Selector expression . | 708 | 9 |
164,093 | private IdentifierImpl createIdentifierForSubExpression ( String subExpression , String fullExpression , boolean isLocationStep , boolean isLastStep ) throws InvalidXPathSyntaxException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) tc . entry ( cclass , "createIdentifierForSubExpression" ... | When we ve isolated a subexpression we wrap it in an Identifier . | 303 | 15 |
164,094 | private IdentifierImpl createIdentifierForWildExpression ( String selector ) throws InvalidXPathSyntaxException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) tc . entry ( cclass , "createIdentifierForWildExpression" , "selector: " + selector ) ; IdentifierImpl wildIdentifier = new Identif... | Wrap a selector with a multilevel wildcard in an Identifier . | 158 | 16 |
164,095 | private void setXPathCharacteristics ( IdentifierImpl identifier ) throws InvalidXPathSyntaxException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) tc . entry ( cclass , "setXPathCharacteristics" , "identifier: " + identifier ) ; // Need to set the domain to XPATH1.0 identifier . setSelec... | Configure the Identifier with appropriate XPath parameters . | 403 | 11 |
164,096 | private Selector parsePredicate ( String predicate , String fullPath ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) tc . entry ( cclass , "parsePredicate" , "predicate: " + predicate ) ; Selector parsed = null ; try { // Preprocess predicate for special characters String parserInput = pr... | Attempt to parse an isolated predicate using the MatchParser . | 367 | 11 |
164,097 | private String preProcessForSpecials ( String predicate ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) tc . entry ( cclass , "preProcessForSpecials" , "predicate: " + predicate ) ; String processed = predicate ; String replace = replaceSpecialsWithSub ( predicate ) ; if ( replace != null... | Locate and replace any special characters that are going to cause problems fr the MatchParser . | 131 | 18 |
164,098 | private void postProcessSelectorTree ( Selector parsed , String fullPath ) throws InvalidXPathSyntaxException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) tc . entry ( cclass , "postProcessSelectorTree" , "parsed: " + parsed + ", fullPath: " + fullPath ) ; // Walk the selector tree looki... | Handle special character substitution . | 729 | 5 |
164,099 | private void postProcessOperands ( OperatorImpl opImpl , String fullPath ) throws InvalidXPathSyntaxException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) tc . entry ( cclass , "postProcessOperands" , "opImpl: " + opImpl + ", fullPath: " + fullPath ) ; // Check for Identifiers with amper... | Traverse an Operator tree handling special character substitution . | 176 | 10 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.