idx
int64
0
165k
question
stringlengths
73
4.15k
target
stringlengths
5
918
len_question
int64
21
890
len_target
int64
3
255
164,200
private boolean pruneData ( ThroughputDistribution priorStats , double forecast ) { boolean prune = false ; // if forecast tput is much greater or much smaller than priorStats, we suspect // priorStats is no longer relevant, so prune it double tputRatio = forecast / priorStats . getMovingAverage ( ) ; if ( tputRatio > ...
Evaluates a ThroughputDistribution for possible removal from the historical dataset .
184
16
164,201
private Integer getSmallestValidPoolSize ( Integer poolSize , Double forecast ) { Integer smallestPoolSize = threadStats . firstKey ( ) ; Integer nextPoolSize = threadStats . higherKey ( smallestPoolSize ) ; Integer pruneSize = - 1 ; boolean validSmallData = false ; while ( ! validSmallData && nextPoolSize != null ) { ...
Returns the smallest valid poolSize in the current historical dataset .
204
12
164,202
private Integer getLargestValidPoolSize ( Integer poolSize , Double forecast ) { Integer largestPoolSize = - 1 ; // find largest poolSize with valid data boolean validLargeData = false ; while ( ! validLargeData ) { largestPoolSize = threadStats . lastKey ( ) ; ThroughputDistribution largestPoolSizeStats = getThroughpu...
Returns the largest valid poolSize in the current historical dataset .
139
12
164,203
private boolean leanTowardShrinking ( Integer smallerPoolSize , int largerPoolSize , double smallerPoolTput , double largerPoolTput ) { boolean shouldShrink = false ; double poolRatio = largerPoolSize / smallerPoolSize ; double tputRatio = largerPoolTput / smallerPoolTput ; double poolTputRatio = poolRatio / tputRatio ...
Evaluate current poolSize against farthest poolSize to decide whether it makes sense to shrink . The final outcome is probabilistic not deterministic .
382
31
164,204
protected void setConfigurationProvider ( ConfigurationProvider p ) { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "setConfigurationProvider" , p ) ; try { ConfigurationProviderManager . setConfigurationProvider ( p ) ; // in an osgi environment we may get unconfigured and then reconfigured as bundles are // starte...
Called by DS to inject reference to Config Provider
227
10
164,205
protected void setXaResourceFactory ( ServiceReference < ResourceFactory > ref ) { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "setXaResourceFactory, ref " + ref ) ; _xaResourceFactoryReady = true ; if ( ableToStartRecoveryNow ( ) ) { // Can start recovery now try { startRecovery ( ) ; } catch ( Exception e ) { FF...
Called by DS to inject reference to XaResource Factory
156
12
164,206
public void setRecoveryLogFactory ( RecoveryLogFactory fac ) { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "setRecoveryLogFactory, factory: " + fac , this ) ; _recoveryLogFactory = fac ; _recoveryLogFactoryReady = true ; if ( ableToStartRecoveryNow ( ) ) { // Can start recovery now try { startRecovery ( ) ; } catc...
Called by DS to inject reference to RecoveryLog Factory
167
11
164,207
public void setRecoveryLogService ( ServiceReference < RecLogServiceImpl > ref ) { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "setRecoveryLogService" , ref ) ; _recoveryLogServiceReady = true ; if ( ableToStartRecoveryNow ( ) ) { // Can start recovery now try { startRecovery ( ) ; } catch ( Exception e ) { FFDCFi...
Called by DS to inject reference to RecoveryLog Service
158
11
164,208
public void shutdown ( ConfigurationProvider cp ) throws Exception { final int shutdownDelay ; if ( cp != null ) { shutdownDelay = cp . getDefaultMaximumShutdownDelay ( ) ; } else { shutdownDelay = 0 ; } shutdown ( false , shutdownDelay ) ; }
Used by liberty
60
3
164,209
protected void retrieveBundleContext ( ) { BundleContext bc = TxBundleTools . getBundleContext ( ) ; if ( tc . isDebugEnabled ( ) ) Tr . debug ( tc , "retrieveBundleContext, bc " + bc ) ; _bc = bc ; }
This method retrieves bundle context . There is a requirement to lookup the DS Services Registry during recovery . Any bundle context will do for the lookup - this method is overridden in the ws . tx . embeddable bundle so that if that bundle has started before the tx . jta bundle then we are still able to access the S...
61
70
164,210
protected void enqueue ( final AbstractInvocation invocation ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "enqueue" , invocation ) ; barrier . pass ( ) ; // Block until allowed to pass // We need to ensure that the thread processing this queue does not chang...
Enqueue an invocation by adding it to the end of the queue
595
13
164,211
private AbstractInvocation dequeue ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "dequeue" ) ; AbstractInvocation invocation ; synchronized ( barrier ) { invocation = queue . remove ( 0 ) ; } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnab...
Dequeue an invocation by removing it from the front of the queue
109
13
164,212
private void unlockBarrier ( final int size , final Conversation . ConversationType conversationType ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "unlockBarrier" , new Object [ ] { Integer . valueOf ( size ) , conversationType } ) ; synchronized ( barrier ) ...
Unlock the barrier .
433
5
164,213
protected boolean isEmpty ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "isEmpty" ) ; boolean rc ; synchronized ( barrier ) { rc = queue . isEmpty ( ) ; } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( this , tc , ...
Return true if the queue is empty
105
7
164,214
protected int getDepth ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "getDepth" ) ; int depth ; synchronized ( barrier ) { depth = queue . size ( ) ; } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( this , tc , "ge...
Return the depth of the queue
104
6
164,215
protected boolean doesQueueContainConversation ( final Conversation conversation ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "doesQueueContainConversation" , conversation ) ; boolean rc = false ; synchronized ( barrier ) { for ( int i = 0 ; i < queue . size...
Return true if a conversation is already in this queue
175
10
164,216
public void sweep ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "Sweep : Stateful Beans = " + ivStatefulBeanList . size ( ) ) ; for ( Enumeration < TimeoutElement > e = ivStatefulBeanList . elements ( ) ; e . hasMoreElements ( ) ; ) { TimeoutElement elt = e . nextEle...
Go through the list of bean ids and cleanup beans which have timed out .
276
16
164,217
public void finalSweep ( StatefulPassivator passivator ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "finalSweep : Stateful Beans = " + ivStatefulBeanList . size ( ) ) ; for ( Enumeration < TimeoutElement > e = ivStatefulBeanList . elements ( ) ; e . hasMoreElements ( ...
This method is invoked just before container termination to clean up stateful beans which have been passivated .
330
20
164,218
public boolean beanDoesNotExistOrHasTimedOut ( TimeoutElement elt , BeanId beanId ) { if ( elt == null ) { // Not in the reaper list, but it might be in local // failover cache if not in reaper list. So check it if // there is a local SfFailoverCache object (e.g. when SFSB // failover is enabled to use failover cache)....
LIDB2018 - 1 renamed old beanTimedOut method and clarified description .
238
17
164,219
public void add ( StatefulBeanO beanO ) { BeanId id = beanO . beanId ; TimeoutElement elt = beanO . ivTimeoutElement ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "add " + beanO . beanId + ", " + elt . timeout ) ; // LIDB2775-23.4 Begins Object obj = ivStatefulBeanList ....
Add a new bean to the list of beans to be checked for timeouts
250
15
164,220
public boolean remove ( BeanId id ) // d129562 { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "remove (" + id + ")" ) ; TimeoutElement elt = null ; elt = ivStatefulBeanList . remove ( id ) ; synchronized ( this ) { if ( elt != null ) { numObjects -- ; numRemoves ++ ; if (...
Remove a bean from the list and return true if the bean was in the list and removed successfully ; otherwise return false .
185
24
164,221
public synchronized Iterator < BeanId > getPassivatedStatefulBeanIds ( J2EEName homeName ) { ArrayList < BeanId > beanList = new ArrayList < BeanId > ( ) ; for ( Enumeration < TimeoutElement > e = ivStatefulBeanList . elements ( ) ; e . hasMoreElements ( ) ; ) { TimeoutElement elt = e . nextElement ( ) ; if ( homeName ...
d103404 . 1
148
5
164,222
public long getBeanTimeoutTime ( BeanId beanId ) { TimeoutElement elt = ivStatefulBeanList . get ( beanId ) ; long timeoutTime = 0 ; if ( elt != null ) { if ( elt . timeout != 0 ) { timeoutTime = elt . lastAccessTime + elt . timeout ; if ( timeoutTime < 0 ) { // F743-6605.1 timeoutTime = Long . MAX_VALUE ; // F743-6605...
LIDB2775 - 23 . 4 Begins
115
10
164,223
public void dump ( ) { if ( dumped ) { return ; } try { Tr . dump ( tc , "-- StatefulBeanReaper Dump -- " , this ) ; synchronized ( this ) { Tr . dump ( tc , "Number of objects: " + this . numObjects ) ; Tr . dump ( tc , "Number of adds: " + this . numAdds ) ; Tr . dump ( tc , "Number of removes: " + this . numRemoves ...
Dump the internal state of the cache
155
8
164,224
public synchronized void cancel ( ) // d583637 { ivIsCanceled = true ; stopAlarm ( ) ; // F743-33394 - Wait for the sweep to finish. while ( ivIsRunning ) { try { wait ( ) ; } catch ( InterruptedException ex ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) Tr . debug ( tc , "interrupted" ,...
Cancel this alarm
117
4
164,225
private String getServerId ( ) { UUID fullServerId = null ; WsLocationAdmin locationService = this . wsLocationAdmin ; if ( locationService != null ) { fullServerId = locationService . getServerId ( ) ; } if ( fullServerId == null ) { fullServerId = UUID . randomUUID ( ) ; // shouldn't get here, but be careful just in ...
Derives a unique identifier for the current server . The result of this method is used to create a cloneId .
119
23
164,226
private void initialize ( ) { if ( this . initialized ) { return ; } if ( LoggingUtil . SESSION_LOGGER_CORE . isLoggable ( Level . INFO ) ) { if ( this . sessionStoreService == null ) { LoggingUtil . SESSION_LOGGER_CORE . logp ( Level . INFO , methodClassName , "initialize" , "SessionMgrComponentImpl.noPersistence" ) ;...
Delay initialization until a public method of this service is called
680
12
164,227
public boolean startInactivityTimer ( Transaction t , InactivityTimer iat ) { if ( t != null ) return ( ( EmbeddableTransactionImpl ) t ) . startInactivityTimer ( iat ) ; return false ; }
Start an inactivity timer and call alarm method of parameter when timeout expires . Returns false if transaction is not active .
48
23
164,228
public void registerSynchronization ( UOWCoordinator coord , Synchronization sync ) throws RollbackException , IllegalStateException , SystemException { registerSynchronization ( coord , sync , EmbeddableWebSphereTransactionManager . SYNC_TIER_NORMAL ) ; }
Method to register synchronization object with JTA tran via UOWCoordinator for improved performance .
59
20
164,229
void setDestName ( String destName ) throws JMSException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "setDestName" , destName ) ; if ( ( null == destName ) || ( "" . equals ( destName ) ) ) { // d238447 FFDC review. More likely to be an external rather than i...
setDestName Set the destName for this Destination .
245
11
164,230
void setDestDiscrim ( String destDiscrim ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "setDestDiscrim" , destDiscrim ) ; updateProperty ( DEST_DISCRIM , destDiscrim ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit (...
setDestDiscrim Set the destDiscrim for this Destination .
110
13
164,231
protected Reliability getReplyReliability ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "getReplyReliability" ) ; Reliability result = null ; if ( replyReliabilityByte != - 1 ) { result = Reliability . getReliability ( replyReliabilityByte ) ; } if ( TraceC...
Get the reply reliability to use for reply mesages on a replyTo destination
127
15
164,232
protected void setReplyReliability ( Reliability replyReliability ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "setReplyReliability" , replyReliability ) ; this . replyReliabilityByte = replyReliability . toByte ( ) ; if ( TraceComponent . isAnyTracingEnable...
Set the reliability to use for reply messages on a replyTo destination
113
13
164,233
protected boolean isProducerTypeCheck ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "isProducerTypeCheck" ) ; boolean checking = true ; // We can carry out checking if there is no FRP, or the FRP has 0 size. StringArrayWrapper frp = ( StringArrayWrapper ) p...
This method informs us whether we can carry out type checking on the producer connect call .
198
17
164,234
protected String getProducerDestName ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "getProducerDestName" ) ; String pDestName = null ; // Get the forward routing path. StringArrayWrapper frp = ( StringArrayWrapper ) properties . get ( FORWARD_ROUTING_PATH )...
This method returns the name of the destination to which producers should attach when sending messages via this JMS destination .
444
22
164,235
protected String getConsumerDestName ( ) throws JMSException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "getConsumerDestName" ) ; String cDestName = getDestName ( ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( t...
This method returns the name of the destination to which consumers should attach when receiving messages using this JMS destination .
112
22
164,236
Map < String , Object > getCopyOfProperties ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "getCopyOfProperties" ) ; Map < String , Object > temp = null ; // Make sure no-one changes the properties underneath us. synchronized ( properties ) { temp = new Hash...
Creates a new Map object and duplicates the properties into the new Map . Note that it does not _copy_ the parameter keys and values so if the map contains objects which are mutable you may get strange behaviour . In short - only use immutable objects for keys and values!
142
57
164,237
protected List getConvertedFRP ( ) { List theList = null ; StringArrayWrapper saw = ( StringArrayWrapper ) properties . get ( FORWARD_ROUTING_PATH ) ; if ( saw != null ) { // This list is the forward routing path for the message. theList = saw . getMsgForwardRoutingPath ( ) ; } return theList ; }
This method returns the List containing SIDestinationAddress form of the forward routing path that will be set into the message .
81
25
164,238
protected List getConvertedRRP ( ) { List theList = null ; StringArrayWrapper saw = ( StringArrayWrapper ) properties . get ( REVERSE_ROUTING_PATH ) ; if ( saw != null ) theList = saw . getCorePath ( ) ; return theList ; }
This method returns the List containing SIDestinationAddress form of the reverse routing path .
65
18
164,239
protected SIDestinationAddress getProducerSIDestinationAddress ( ) throws JMSException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "getProducerSIDestinationAddress" ) ; if ( producerDestinationAddress == null ) { if ( TraceComponent . isAnyTracingEnabled ( ) ...
This method provides access to the cached SIDestinationAddress object for this JmsDestination .
453
20
164,240
protected boolean isLocalOnly ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "isLocalOnly" ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( this , tc , "isLocalOnly" , false ) ; return false ; }
Determines whether SIDestinationAddress objects created for this destination object should have the localOnly flag set or not .
90
25
164,241
static JmsDestinationImpl checkNativeInstance ( Destination destination ) throws InvalidDestinationException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "checkNativeInstance" , destination ) ; JmsDestinationImpl castDest = null ; // if the supplied destination is se...
Check that the supplied destination is a native JMS destination object . If it is then exit quietly . If it is not then throw an exception .
829
29
164,242
static void checkBlockedStatus ( JmsDestinationImpl dest ) throws JMSException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "checkBlockedStatus" , dest ) ; // get the status of the destinations blocked attribute Integer code = dest . getBlockedDestinationCode ( ) ; /...
This method takes a JmsDestinationImpl object and checks the blocked destination code . If the code signals that the destination is blocked a suitable JMSException will be thrown tailored to the code received .
309
40
164,243
static JmsDestinationImpl getJMSReplyToInternal ( JsJmsMessage _msg , List < SIDestinationAddress > rrp , SICoreConnection _siConn ) throws JMSException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "getJMSReplyToInternal" , new Object [ ] { _msg , rrp , _siConn } ) ;...
Static method that allows a replyTo destination to be obtained from a JsJmsMessage a ReverseRoutingPath and an optional JMS Core Connection object .
820
32
164,244
String fullEncode ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "fullEncode" ) ; String encoded = null ; // If we have a cached version of the string, use it. if ( cachedEncodedString != null ) { encoded = cachedEncodedString ; } // Otherwise, encode it els...
This method is used to encode the JMS Destination information for transmission with the message and subsequent recreation on the other side . The format of the string is as follows ;
239
33
164,245
String partialEncode ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "partialEncode()" ) ; String encoded = null ; // If we have a cached version of the string, use it. if ( cachedPartialEncodedString != null ) { encoded = cachedPartialEncodedString ; } else ...
A variant of the fullEncode method that is used for URI - encoding for the purposes of setting it into the jmsReplyTo field of the core message .
396
33
164,246
void configureDestinationFromRoutingPath ( List fwdPath ) throws JMSException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "configureDestinationFromRoutingPath" , fwdPath ) ; // Clear the cache of the encoding string since we are changing properties. clearCach...
configureReplyDestinationFromRoutingPath Configure the ReplyDestination from the ReplyRoutingPath . The RRP from the message is used as the FRP for this Reply Destination so most of the function is performed by configureDestinationFromRoutingPath . This method keeps hold of the bus names as well as the destination name...
592
69
164,247
private void clearCachedEncodings ( ) { cachedEncodedString = null ; cachedPartialEncodedString = null ; for ( int i = 0 ; i < cachedEncoding . length ; i ++ ) cachedEncoding [ i ] = null ; }
This method should be called by all setter methods if they alter the state information of this destination . Doing so will cause the string encoded version of this destination to be recreated when necessary .
55
38
164,248
public void initialiseNonPersistent ( MessageProcessor messageProcessor , SIMPTransactionManager txManager ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "initialiseNonPersistent" , messageProcessor ) ; //Release 1 has no Link Bundle IDs for this Neighbour // Cache t...
Called to recover Neighbours from the MessageStore .
266
12
164,249
public void initalised ( ) throws SIResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "initalised" ) ; try { _lockManager . lockExclusive ( ) ; // Flag that we are in a started state. _started = true ; // If the Neighbour Listener hasn't been created, cr...
When initialised is called each of the neighbours are sent the set of subscriptions .
186
16
164,250
public void stop ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "stop" ) ; try { _lockManager . lockExclusive ( ) ; // Flag that we are in a started state. _started = false ; } finally { _lockManager . unlockExclusive ( ) ; } if ( TraceComponent . isAnyTracingEnabl...
Stops the proxy handler from processing any more messages
116
10
164,251
public void removeUnusedNeighbours ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "removeUnusedNeighbours" ) ; final Enumeration neighbourList = _neighbours . getAllRecoveredNeighbours ( ) ; LocalTransaction transaction = null ; try { _lockManager . lockExclusive (...
removeUnusedNeighbours is called once all the Neighbours are defined from Admin .
580
19
164,252
public void subscribeEvent ( ConsumerDispatcherState subState , Transaction transaction ) throws SIResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "subscribeEvent" , new Object [ ] { subState , transaction } ) ; try { // Get the lock Manager lock // mu...
Forwards a subscription to all Neighbouring ME s
449
11
164,253
public void topicSpaceCreatedEvent ( DestinationHandler destination ) throws SIResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "topicSpaceCreatedEvent" , destination ) ; try { _lockManager . lockExclusive ( ) ; _neighbours . topicSpaceCreated ( destina...
When a topic space is created there may be proxy subscriptions already registered that need to attach to this topic space .
134
22
164,254
public void topicSpaceDeletedEvent ( DestinationHandler destination ) throws SIResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "topicSpaceDeletedEvent" , destination ) ; try { _lockManager . lockExclusive ( ) ; _neighbours . topicSpaceDeleted ( destina...
When a topic space is deleted there may be proxy subscriptions that need removing from the match space and putting into limbo until the delete proxy subscriptions request is made
138
30
164,255
public void linkStarted ( String busId , SIBUuid8 meUuid ) throws SIIncorrectCallException , SIErrorException , SIDiscriminatorSyntaxException , SISelectorSyntaxException , SIResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "linkStarted" , new Object [ ...
When a Link is started we want to send a reset message to the neighbouring bus .
244
17
164,256
public void cleanupLinkNeighbour ( String busName ) throws SIRollbackException , SIConnectionLostException , SIIncorrectCallException , SIResourceException , SIErrorException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "cleanupLinkNeighbour" ) ; Neighbour neighbour ...
When a link is deleted we need to clean up any neighbours that won t be deleted at restart time .
200
21
164,257
public void deleteNeighbourForced ( SIBUuid8 meUUID , String busId , Transaction transaction ) throws SIResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "deleteNeighbourForced" , new Object [ ] { meUUID , busId , transaction } ) ; try { _lockManager . l...
Removes a Neighbour by taking a brutal approach to remove all the proxy Subscriptions on this ME pointing at other Neighbours .
175
28
164,258
public void deleteAllNeighboursForced ( Transaction transaction ) throws SIResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "deleteAllNeighboursForced" , new Object [ ] { transaction } ) ; try { _lockManager . lockExclusive ( ) ; Enumeration neighbs = _...
This is purely for unittests . Many unittests dont cleanup their neighbours so we now need this to ensure certain tests are clean before starting .
304
30
164,259
public void recoverNeighbours ( ) throws SIResourceException , MessageStoreException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "recoverNeighbours" ) ; try { // Lock the manager exclusively _lockManager . lockExclusive ( ) ; // Indicate that we are now reconciling ...
Recovers the Neighbours from the MessageStore .
157
11
164,260
Enumeration reportAllNeighbours ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "reportAllNeighbours" ) ; // Call out to the Neighbours class to get the list of Neighbours. final Enumeration neighbours = _neighbours . getAllNeighbours ( ) ; if ( TraceComponent . isA...
Method reports all currently known ME s in a Enumeration format
129
13
164,261
void addMessageHandler ( SubscriptionMessageHandler messageHandler ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "addMessageHandler" , messageHandler ) ; final boolean inserted = _subscriptionMessagePool . add ( messageHandler ) ; // If the message wasn't inserted, ...
Adds a message back into the Pool of available messages .
162
11
164,262
SubscriptionMessageHandler getMessageHandler ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "getMessageHandler" ) ; SubscriptionMessageHandler messageHandler = ( SubscriptionMessageHandler ) _subscriptionMessagePool . remove ( ) ; if ( messageHandler == null ) { if...
Returns the Message Handler to be used for this operation
182
10
164,263
private void createProxyListener ( ) throws SIResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "createProxyListener" ) ; // Create the proxy listener instance _proxyListener = new NeighbourProxyListener ( _neighbours , this ) ; /* * Now we can create ou...
Method that creates the NeighbourProxyListener instance for reading messages from the Neighbours . It then registers the listener to start receiving messages
413
27
164,264
public final Neighbour getNeighbour ( SIBUuid8 neighbourUUID , boolean includeRecovered ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "getNeighbour" , new Object [ ] { neighbourUUID , Boolean . valueOf ( includeRecovered ) } ) ; Neighbour neighbour = _neighbours . g...
Returns the neighbour for the given UUID
171
8
164,265
public void getSharedLock ( int requestId ) { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "getSharedLock" , new Object [ ] { this , new Integer ( requestId ) } ) ; Thread currentThread = Thread . currentThread ( ) ; Integer count = null ; synchronized ( this ) { // If this thread does not have any existing shared ...
This method is called to request a shared lock . There are conditions under which a shared lock cannot be granted and this method will block until no such conditions apply . When the method returns the thread has been granted an additional shared lock . A single thread may hold any number of shared locks but the number...
662
71
164,266
public void releaseSharedLock ( int requestId ) throws NoSharedLockException { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "releaseSharedLock" , new Object [ ] { this , new Integer ( requestId ) } ) ; Thread currentThread = Thread . currentThread ( ) ; int newValue = 0 ; synchronized ( this ) { Integer count = ( I...
Releases a single shared lock from thread .
332
9
164,267
public boolean handleHTTP2AlpnConnect ( HttpInboundLink link ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "handleHTTP2AlpnConnect entry" ) ; } initialHttpInboundLink = link ; Integer streamID = new Integer ( 0 ) ; H2VirtualConnectionImpl h2VC = new H2VirtualConnecti...
Handle a connection initiated via ALPN h2
343
9
164,268
protected void updateHighestStreamId ( int proposedHighestStreamId ) throws ProtocolException { if ( ( proposedHighestStreamId & 1 ) == 0 ) { // even number, server-initialized stream if ( proposedHighestStreamId > highestLocalStreamId ) { highestLocalStreamId = proposedHighestStreamId ; if ( TraceComponent . isAnyTrac...
Keep track of the highest - valued local and remote stream IDs for this connection
323
15
164,269
@ Override public void destroy ( ) { httpInboundChannel . stop ( 50 ) ; initialVC = null ; frameReadProcessor = null ; h2MuxReadCallback = null ; h2MuxTCPConnectionContext = null ; h2MuxTCPReadContext = null ; h2MuxTCPWriteContext = null ; localConnectionSettings = null ; remoteConnectionSettings = null ; readContextTa...
A GOAWAY frame has been received ; start shutting down this connection
104
14
164,270
public void incrementConnectionWindowUpdateLimit ( int x ) throws FlowControlException { if ( ! checkIfGoAwaySendingOrClosing ( ) ) { writeQ . incrementConnectionWindowUpdateLimit ( x ) ; H2StreamProcessor stream ; for ( Integer i : streamTable . keySet ( ) ) { stream = streamTable . get ( i ) ; if ( stream != null ) {...
Increment the connection window limit but the given amount
96
10
164,271
public void closeStream ( H2StreamProcessor p ) { // only place that should be dealing with the closed stream table, // be called by multiple stream objects at the same time, so sync access synchronized ( streamOpenCloseSync ) { if ( p . getId ( ) != 0 ) { writeQ . removeNodeFromQ ( p . getId ( ) ) ; this . closedStrea...
Remove the stream matching the given ID from the write tree and decrement the number of open streams .
219
20
164,272
public H2StreamProcessor getStream ( int streamID ) { H2StreamProcessor streamProcessor = null ; streamProcessor = streamTable . get ( streamID ) ; return streamProcessor ; }
Get the stream processor for a given stream ID if it exists
44
12
164,273
public void remove ( BeanId beanId , boolean removeFromFailoverCache ) throws RemoteException //LIDB2018-1 { // LIDB2018-1 begins if ( ivStatefulFailoverCache == null || ! ivStatefulFailoverCache . beanExists ( beanId ) ) { //PK69093 - beanStore.remove will access a file, as such lets synch this call //such that only o...
Version of remove which can be used with only a beanId passed in as input .
233
17
164,274
private byte [ ] getCompressedBytes ( Object sb , long lastAccessTime , Object exPC ) throws IOException // d367572.7 { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "getCompressedBytes" , sb ) ; // Serialize SessionBean to a byte[]. B...
LIDB2018 - 1 added entire method .
329
10
164,275
public Map < String , Map < String , Field > > getPassivatorFields ( final BeanMetaData bmd ) // d648122 { // Volatile data race. We do not care if multiple threads do the work // since they will all get the same result. Map < String , Map < String , Field > > result = bmd . ivPassivatorFields ; if ( result == null ) {...
Get the passivator fields for the specified bean .
268
11
164,276
public Token removeFirst ( Transaction transaction ) throws ObjectManagerException { Iterator iterator = entrySet ( ) . iterator ( ) ; List . Entry entry = ( List . Entry ) iterator . next ( transaction ) ; iterator . remove ( transaction ) ; return entry . getValue ( ) ; }
Remove the first element in the list .
59
8
164,277
public void postProcessMatches ( DestinationHandler topicSpace , String topic , Object [ ] results , int index ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "postProcessMatches" , "results: " + Arrays . toString ( results ) + ";index: " + index + ";topic" + topic ) ...
Complete processing of results for this handler after completely traversing MatchSpace .
475
14
164,278
private static void createInstance ( ) throws Exception { if ( tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "createInstance" , null ) ; try { Class cls = Class . forName ( JsConstants . JS_ADMIN_FACTORY_CLASS ) ; _instance = ( JsAdminFactory ) cls . newInstance ( ) ; } catch ( Exception e ) { com . ibm . ws . ffdc . ...
Create the singleton instance of this factory class
199
9
164,279
public SIBusMessage [ ] readSet ( SIMessageHandle [ ] msgHandles ) throws SISessionUnavailableException , SISessionDroppedException , SIConnectionUnavailableException , SIConnectionDroppedException , SIResourceException , SIConnectionLostException , SIIncorrectCallException , SIMessageNotLockedException , SIErrorExcept...
This method is used to read a set of locked messages held by the message processor . This call will simply be passed onto the server who will call the method on the real bifurcated consumer session residing on the server .
612
46
164,280
public SIBusMessage [ ] readAndDeleteSet ( SIMessageHandle [ ] msgHandles , SITransaction tran ) throws SISessionUnavailableException , SISessionDroppedException , SIConnectionUnavailableException , SIConnectionDroppedException , SIResourceException , SIConnectionLostException , SILimitExceededException , SIIncorrectCa...
This method is used to read and then delete a set of locked messages held by the message processor . This call will simply be passed onto the server who will call the method on the real bifurcated consumer session residing on the server .
421
49
164,281
private SIBusMessage [ ] _readAndDeleteSet ( SIMessageHandle [ ] msgHandles , SITransaction tran ) throws SISessionUnavailableException , SISessionDroppedException , SIConnectionUnavailableException , SIConnectionDroppedException , SIResourceException , SIConnectionLostException , SILimitExceededException , SIIncorrect...
Actually performs the read and delete .
681
7
164,282
public static Object [ ] generateMsgParms ( Object parm1 , Object parm2 , Object parm3 , Object parm4 , Object parm5 , Object parm6 , Object parm7 ) { Object parms [ ] = new Object [ 7 ] ; parms [ 0 ] = parm1 ; parms [ 1 ] = parm2 ; parms [ 2 ] = parm3 ; parms [ 3 ] = parm4 ; parms [ 4 ] = parm5 ; parms [ 5 ] = parm6 ;...
Create an object array to be used as parameters to be passed to a message .
133
16
164,283
private void scan ( ) { if ( ivScanned ) { return ; } ivScanned = true ; final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; for ( Class < ? > klass = ivClass ; klass != null && klass != Object . class ; klass = klass . getSuperclass ( ) ) { if ( isTraceOn && ( tc . isDebugEnabled ( ) || tcMetaData . i...
Scan the bytecode of all classes in the hierarchy unless already done .
548
14
164,284
public Method getBridgeMethodTarget ( Method method ) { scan ( ) ; if ( ivBridgeMethodMetaData == null ) { return null ; } BridgeMethodMetaData md = ivBridgeMethodMetaData . get ( getNonPrivateMethodKey ( method ) ) ; return md == null ? null : md . ivTarget ; }
Get the target method of a bridge method or null if not found
67
13
164,285
public boolean isInElementSet ( Set < String > skipList , Class < ? > excClass ) throws ClassNotFoundException { //String mName = "isInElementSet(Set<String> skipList, Class<?> excClass)"; boolean retVal = false ; ClassLoader tccl = Thread . currentThread ( ) . getContextClassLoader ( ) ; for ( String value : skipList ...
Determines if the given exception is a subclass of an element
134
13
164,286
public void updated ( Dictionary < ? , ? > props ) { String value = ( String ) props . get ( PROP_IDNAME ) ; if ( null != value ) { this . idName = value . trim ( ) ; } value = ( String ) props . get ( PROP_USE_URLS ) ; if ( null != value && Boolean . parseBoolean ( value . trim ( ) ) ) { this . urlRewritingMarker = ";...
Session configuration has been updated with the provided properties .
616
10
164,287
@ Trivial @ Override public synchronized void run ( ) { clientSupport = null ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "run : cached ClientSupport reference cleared" ) ; } }
Scheduled Runnable implementation to reset the ClientSupport so that it will be obtained again later in case the server is restarted .
60
28
164,288
public boolean isProtected ( ) { List < String > requiredRoles = null ; return ! webRequest . isUnprotectedURI ( ) && webRequest . getMatchResponse ( ) != null && ( requiredRoles = webRequest . getRequiredRoles ( ) ) != null && ! requiredRoles . isEmpty ( ) ; }
The request is protected if there are required roles or it s not mapped everyones role
70
17
164,289
@ Override protected Object performInvocation ( Exchange exchange , Object serviceObject , Method m , Object [ ] paramArray ) throws Exception { paramArray = insertExchange ( m , paramArray , exchange ) ; return this . libertyJaxRsServerFactoryBean . performInvocation ( exchange , serviceObject , m , paramArray ) ; }
using LibertyJaxRsServerFactoryBean . performInvocation to support POJO EJB CDI resource
71
22
164,290
@ FFDCIgnore ( value = { SecurityException . class , IllegalAccessException . class , IllegalArgumentException . class , InvocationTargetException . class } ) private void callValidationMethod ( String methodName , Object [ ] paramValues , Object theProvider ) { if ( theProvider == null ) { return ; } Method m = cxfBea...
call validation method ignore the exception to pass the FAT
445
10
164,291
public static < T > T findFirstNextByType ( FaceletHandler nextHandler , Class < T > type ) { if ( type . isAssignableFrom ( nextHandler . getClass ( ) ) ) { return ( T ) nextHandler ; } else if ( nextHandler instanceof javax . faces . view . facelets . CompositeFaceletHandler ) { for ( FaceletHandler handler : ( ( jav...
Find the first occurence of a tag handler that is instanceof T
145
15
164,292
public static boolean tryToClose ( Closeable closeable ) { Object token = ThreadIdentityManager . runAsServer ( ) ; try { if ( closeable != null ) { try { closeable . close ( ) ; return true ; } catch ( IOException e ) { // ignore } } } finally { ThreadIdentityManager . reset ( token ) ; } return false ; }
Close the closeable object
79
5
164,293
private static void setDefaultDiscoveryProperties ( ) { defaultDiscoveryProperties . put ( KEY_OIDC_RESPONSE_TYPES_SUPP , new String [ ] { "code" , "token" , "id_token token" } ) ; defaultDiscoveryProperties . put ( KEY_OIDC_SUB_TYPES_SUPP , new String [ ] { "public" } ) ; defaultDiscoveryProperties . put ( KEY_OIDC_ID...
Should model what is set as default in the oidc . server metatype . xml
552
19
164,294
public void populateCustomRequestParameterMap ( ConfigurationAdmin configAdmin , HashMap < String , String > paramMapToPopulate , String [ ] configuredCustomRequestParams , String configAttrName , String configAttrValue ) { if ( configuredCustomRequestParams == null ) { return ; } for ( String configuredParameter : con...
Populates a map of custom request parameter names and values to add to a certain OpenID Connect request type .
172
22
164,295
public void stopModule ( EJBModuleMetaDataImpl mmd ) { try { //210058 uninstall ( mmd , false ) ; } catch ( Throwable t ) { //210058 FFDCFilter . processException ( t , CLASS_NAME + ".stop" , "3059" , this ) ; throw new ContainerEJBException ( "Failed to stop - caught Throwable" , t ) ; } }
Stops an EJB module .
89
7
164,296
protected void bindInterfaces ( NameSpaceBinder < ? > binder , BeanMetaData bmd ) throws Exception { HomeWrapperSet homeSet = null ; EJSHome home = bmd . homeRecord . getHome ( ) ; if ( home != null ) { homeSet = home . getWrapperSet ( ) ; } int numRemoteInterfaces = countInterfaces ( bmd , false ) ; int numLocalInterf...
Bind all local and remote interfaces for a bean to all binding locations .
173
14
164,297
private int countInterfaces ( BeanMetaData bmd , boolean local ) // F743-23167 { // Note that these variables must be kept in sync with bindInterfaces. String homeInterfaceClassName = local ? bmd . localHomeInterfaceClassName : bmd . homeInterfaceClassName ; boolean hasLocalBean = local && bmd . ivLocalBean ; String [ ...
Determine the number of remote or local interfaces exposed by a bean .
210
15
164,298
private void bindInterfaces ( NameSpaceBinder < ? > binder , BeanMetaData bmd , HomeWrapperSet homeSet , boolean local , int numInterfaces , boolean singleGlobalInterface ) // F743-23167 throws NamingException , RemoteException , CreateException { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ...
Bind all interfaces for a bean to all binding locations .
569
11
164,299
private < T > void bindInterface ( NameSpaceBinder < T > binder , HomeRecord hr , HomeWrapperSet homeSet , int numInterfaces , boolean singleGlobalInterface , String interfaceName , int interfaceIndex , boolean local ) throws NamingException , RemoteException , CreateException { final boolean isTraceOn = TraceComponent...
Bind a single interface to all binding locations .
382
9