idx int64 0 165k | question stringlengths 73 5.81k | target stringlengths 5 918 |
|---|---|---|
160,800 | public static List getChildTextList ( Element elem , String childTagName ) { NodeList nodeList = elem . getElementsByTagName ( childTagName ) ; int len = nodeList . getLength ( ) ; if ( len == 0 ) { return Collections . EMPTY_LIST ; } List list = new ArrayList ( len ) ; for ( int i = 0 ; i < len ; i ++ ) { list . add (... | Return list of content Strings of all child elements with given tag name . |
160,801 | public void sendNackMessage ( SIBUuid8 upstream , SIBUuid12 destUuid , SIBUuid8 busUuid , long startTick , long endTick , int priority , Reliability reliability , SIBUuid12 stream ) throws SIResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "sendNackMess... | Called by one of our input stream data structures when we don t have any info for a tick and need to nack upstream . |
160,802 | private void processAckExpected ( ControlAckExpected ackExpMsg ) throws SIResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "processAckExpected" , ackExpMsg ) ; SIBUuid12 streamID = ackExpMsg . getGuaranteedStreamUUID ( ) ; int priority = ackExpMsg . get... | Process an AckExpected message . |
160,803 | private long processNackWithReturnValue ( ControlNack nackMsg ) throws SIResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "processNackWithReturnValue" , nackMsg ) ; long returnValue = - 1 ; SIBUuid12 stream = nackMsg . getGuaranteedStreamUUID ( ) ; if (... | Process a nack from a PubSubOutputHandler . |
160,804 | private void remotePut ( MessageItem msg , SIBUuid8 sourceMEUuid ) throws SIResourceException , SIDiscriminatorSyntaxException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "remotePut" , new Object [ ] { msg , sourceMEUuid } ) ; SIBUuid12 stream = msg . getMessage ( )... | The remote put method is driven when the producer is remote to this PubSub Input handler . |
160,805 | protected void remoteToLocalPutSilence ( MessageItem msgItem ) throws SIResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "remoteToLocalPutSilence" , new Object [ ] { msgItem } ) ; _targetStreamManager . handleSilence ( msgItem ) ; if ( TraceComponent . ... | This is a put message that has oringinated from another ME When there are no matching local consumers we need to write Silence into the stream instead |
160,806 | private MessageProcessorSearchResults matchMessage ( MessageItem msg ) throws SIDiscriminatorSyntaxException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "matchMessage" , new Object [ ] { msg } ) ; JsMessage jsMsg = msg . getMessage ( ) ; TopicAuthorization topicAuth... | Returns a list of matching OutputHandlers for a particular message . Note that this method takes a MessageProcessorSearchResults object from a pool . This object must be returned by the caller when it is finished with . |
160,807 | private boolean restoreFanOut ( MessageItemReference ref , boolean commitInsert ) throws SIDiscriminatorSyntaxException , SIResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "restoreFanOut" , new Object [ ] { ref , new Boolean ( commitInsert ) } ) ; bool... | Restore fan out of the given message to subscribers . |
160,808 | private MessageItemReference addProxyReference ( MessageItem msg , MessageProcessorSearchResults matchingPubsubOutputHandlers , TransactionCommon tran ) throws SIResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "addProxyReference" , new Object [ ] { msg... | Add a msg reference to the proxy subscription reference stream . |
160,809 | public void setPropertiesInMessage ( JsMessage jsMsg , SIBUuid12 destinationUuid , SIBUuid12 producerConnectionUuid ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "setPropertiesInMessage" , new Object [ ] { jsMsg , destinationUuid , producerConnectionUuid } ) ; SIMPU... | Sets properties in the message that are common to both links and non - links . |
160,810 | public void validate ( ) { String target = getTargetName ( ) ; if ( value ( ) < 1 ) { throw new FaultToleranceDefinitionException ( Tr . formatMessage ( tc , "bulkhead.parameter.invalid.value.CWMFT5016E" , "value " , value ( ) , target ) ) ; } if ( waitingTaskQueue ( ) < 1 ) { throw new FaultToleranceDefinitionExceptio... | Validate Bulkhead configure and make sure the value and waitingTaskQueue must be greater than or equal to 1 . |
160,811 | public void updateCacheSizes ( long max , long current ) { final String methodName = "updateCacheSizes()" ; if ( tc . isDebugEnabled ( ) && null != _maxInMemoryCacheEntryCount && null != _inMemoryCacheEntryCount ) { if ( max != _maxInMemoryCacheEntryCount . getCount ( ) && _inMemoryCacheEntryCount . getCount ( ) != cur... | Updates statistics using two supplied arguments - maxInMemoryCacheSize and currentInMemoryCacheSize . |
160,812 | public void onCacheHit ( String template , int locality ) { final String methodName = "onCacheHit()" ; CacheStatsModule csm = null ; if ( ( csm = getCSM ( template ) ) == null ) { return ; } if ( tc . isDebugEnabled ( ) ) Tr . debug ( tc , methodName + " cacheName=" + _sCacheName + " template=" + template + " locality=... | Updates statistics for the cache hit case . |
160,813 | public void onCacheMiss ( String template , int locality ) { final String methodName = "onCacheMiss()" ; CacheStatsModule csm = null ; if ( ( csm = getCSM ( template ) ) == null ) { return ; } if ( tc . isDebugEnabled ( ) ) Tr . debug ( tc , methodName + " cacheName=" + _sCacheName + " template=" + template + " localit... | Updates statistics for the cache miss case . |
160,814 | public void onEntryCreation ( String template , int source ) { final String methodName = "onEntryCreation()" ; CacheStatsModule csm = null ; if ( ( csm = getCSM ( template ) ) == null ) { return ; } if ( tc . isDebugEnabled ( ) ) Tr . debug ( tc , methodName + " cacheName=" + _sCacheName + " template=" + template + " s... | Updates statistics for the cache entry creation case . |
160,815 | private static void applyElement ( Annotated member , Schema property ) { final XmlElementWrapper wrapper = member . getAnnotation ( XmlElementWrapper . class ) ; if ( wrapper != null ) { final XML xml = getXml ( property ) ; xml . setWrapped ( true ) ; if ( ! "##default" . equals ( wrapper . name ( ) ) && ! wrapper . ... | Puts definitions for XML element . |
160,816 | private static void applyAttribute ( Annotated member , Schema property ) { final XmlAttribute attribute = member . getAnnotation ( XmlAttribute . class ) ; if ( attribute != null ) { final XML xml = getXml ( property ) ; xml . setAttribute ( true ) ; setName ( attribute . namespace ( ) , attribute . name ( ) , propert... | Puts definitions for XML attribute . |
160,817 | private static boolean setName ( String ns , String name , Schema property ) { boolean apply = false ; final String cleanName = StringUtils . trimToNull ( name ) ; final String useName ; if ( ! isEmpty ( cleanName ) && ! cleanName . equals ( ( ( SchemaImpl ) property ) . getName ( ) ) ) { useName = cleanName ; apply = ... | Puts name space and name for XML node or attribute . |
160,818 | private static boolean isAttributeAllowed ( Schema property ) { if ( property . getType ( ) == SchemaType . ARRAY || property . getType ( ) == SchemaType . OBJECT ) { return false ; } if ( ! StringUtils . isBlank ( property . getRef ( ) ) ) { return false ; } return true ; } | Checks whether the passed property can be represented as node attribute . |
160,819 | public static Attribute getInstance ( Object o ) { if ( o == null || o instanceof Attribute ) { return ( Attribute ) o ; } if ( o instanceof ASN1Sequence ) { return new Attribute ( ( ASN1Sequence ) o ) ; } throw new IllegalArgumentException ( "unknown object in factory" ) ; } | return an Attribute object from the given object . |
160,820 | synchronized void unregister ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "unregister" , this ) ; } if ( registration != null ) { registration . unregister ( ) ; registration = null ; } } | Remove the service registration Package private . |
160,821 | public void printStackTrace ( PrintWriter p ) { if ( wrapped == null ) { p . println ( "none" ) ; } else { StackTraceElement [ ] stackElements = getStackTraceEliminatingDuplicateFrames ( ) ; p . println ( wrapped ) ; for ( int i = 0 ; i < stackElements . length ; i ++ ) { StackTraceElement stackTraceElement = stackElem... | This method will print a trimmed stack trace to stderr . |
160,822 | public StackTraceElement [ ] getStackTraceEliminatingDuplicateFrames ( ) { if ( parentFrames == null ) { return getStackTrace ( ) ; } if ( noduplicatesStackTrace == null ) { List < StackTraceElement > list = new ArrayList < StackTraceElement > ( ) ; StackTraceElement [ ] stackElements = getStackTrace ( ) ; int numberTo... | Useful for exceptions which are the causes of other exceptions . Gets the stack frames but not only does it eliminate internal classes it eliminates frames which are redundant with the parent exception . In the case where the exception is not a cause it returns a normal exception . If duplicate frames are stripped it w... |
160,823 | public void record ( CircuitBreakerStateImpl . CircuitBreakerResult result ) { boolean isFailure = ( result == FAILURE ) ; if ( resultCount < size ) { resultCount ++ ; } else { boolean oldestResultIsFailure = results . get ( nextResultIndex ) ; if ( oldestResultIsFailure ) { failures -- ; } } results . set ( nextResult... | Record a result in the rolling window |
160,824 | protected MetadataViewKey deriveViewKey ( FacesContext facesContext , UIViewRoot root ) { MetadataViewKey viewKey ; if ( ! facesContext . getResourceLibraryContracts ( ) . isEmpty ( ) ) { String [ ] contracts = new String [ facesContext . getResourceLibraryContracts ( ) . size ( ) ] ; contracts = facesContext . getReso... | Generates an unique key according to the metadata information stored in the passed UIViewRoot instance that can affect the way how the view is generated . By default the view params are the viewId the locale the renderKit and the contracts associated to the view . |
160,825 | public void modified ( List < String > newSources ) { if ( collectorMgr == null || isInit == false ) { this . sourcesList = newSources ; return ; } try { ArrayList < String > oldSources = new ArrayList < String > ( sourcesList ) ; ArrayList < String > sourcesToRemove = new ArrayList < String > ( oldSources ) ; sourcesT... | Without osgi this modified method is called explicility from the update method in JsonTrService |
160,826 | public void writingState ( ) { if ( ! this . writtenState ) { this . writtenState = true ; this . writtenStateWithoutWrapper = false ; this . fast = new FastWriter ( this . initialSize ) ; this . out = this . fast ; } } | Mark that state is about to be written . Contrary to what you d expect we cannot and should not assume that this location is really going to have state ; it is perfectly legit to have a ResponseWriter that filters out content and ignores an attempt to write out state at this point . So we have to check after the fact t... |
160,827 | @ Reference ( name = "extensionProvider" , service = ExtensionProvider . class , policy = ReferencePolicy . DYNAMIC , cardinality = ReferenceCardinality . MULTIPLE ) protected void registerExtensionProvider ( ExtensionProvider provider ) { LibertyApplicationBusFactory . getInstance ( ) . registerExtensionProvider ( pro... | Register a new extension provier |
160,828 | private String dumpMap ( Map < String , String [ ] > m ) { StringBuffer sb = new StringBuffer ( ) ; sb . append ( " --- request parameters: ---\n" ) ; Iterator < String > it = m . keySet ( ) . iterator ( ) ; while ( it . hasNext ( ) ) { String key = it . next ( ) ; String [ ] values = m . get ( key ) ; sb . append ( ke... | dump parameter map for trace . |
160,829 | private void forwardMessage ( AbstractMessage aMessage , SIBUuid8 targetMEUuid ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "forwardMessage" , new Object [ ] { aMessage , targetMEUuid } ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && UserTrace . tc_mt . isDebu... | Forwards a message onto a foreign bus |
160,830 | private boolean attachAndLockMsg ( SIMPMessage msgItem , boolean isOnItemStream ) throws SIResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "attachAndLockMsg" , new Object [ ] { msgItem , Boolean . valueOf ( isOnItemStream ) , this } ) ; if ( _msgAttach... | Attach and lock a message to this LCP |
160,831 | SIMPMessage getAttachedMessage ( ) throws SIResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "getAttachedMessage" , this ) ; SIMPMessage msg = null ; if ( _msgAttached ) { if ( _msgOnItemStream && ! _msgLocked ) { msg = getEligibleMsgLocked ( null ) ; }... | If a message has been attached to this LCP detach it and return it |
160,832 | private boolean checkReceiveAllowed ( ) throws SISessionUnavailableException , SIResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "checkReceiveAllowed" ) ; boolean allowed = _destinationAttachedTo . isReceiveAllowed ( ) ; if ( ! allowed ) { _stoppedForR... | Checks the destination allows receive |
160,833 | private void checkReceiveState ( ) throws SIIncorrectCallException , SISessionUnavailableException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "checkReceiveState" ) ; checkNotClosed ( ) ; if ( _asynchConsumerRegistered ) { if ( TraceComponent . isAnyTracingEnabled (... | Checks the state for the synchronous consumer |
160,834 | private SIMPMessage getEligibleMsgLocked ( TransactionCommon tranImpl ) throws SIResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "getEligibleMsgLocked" , new Object [ ] { this , tranImpl } ) ; SIMPMessage msg = null ; boolean msgAccepted = prepareAddAc... | Retrieves the next eligible message for delivery to this consumer . Performs a check for noLocal and takes this into account when retrieving the next eligible message . If any messages are not eligible for delivery they are deleted from the itemstream before the first eligble one is returned . |
160,835 | protected void waitingNotify ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "waitingNotify" ) ; this . lock ( ) ; try { if ( _waiting ) _waiter . signal ( ) ; } finally { this . unlock ( ) ; } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( )... | Wakeup our thread if we re waiting on a receive . This method is normally called as part of remoteDurable when we need to resubmit a get because a previous get caused a noLocal discard . |
160,836 | private SIMPMessage retrieveMsgLocked ( ) throws SIResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "retrieveMsgLocked" , new Object [ ] { this } ) ; SIMPMessage msg = null ; try { msg = _consumerKey . getMessageLocked ( ) ; if ( msg != null ) msg . eve... | Attempt to retrieve a message from the CD s itemStream in a locked state . |
160,837 | private void checkParams ( int maxActiveMessages , long messageLockExpiry , int maxBatchSize ) throws SIIncorrectCallException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "checkParams" , new Object [ ] { Integer . valueOf ( maxActiveMessages ) , Long . valueOf ( mes... | Checks that the maxBatchSize is > 0 Checks that messasgeLockExpiry > = 0 Checks that maxActiveMessages > = 0 |
160,838 | boolean processAttachedMsgs ( ) throws SIResourceException , SISessionDroppedException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "processAttachedMsgs" , this ) ; SIMPMessage msg = null ; this . lock ( ) ; try { msg = getAttachedMessage ( ) ; } finally { this . unl... | Try to asynchronously deliver any attached messages |
160,839 | void runAsynchConsumer ( boolean isolatedRun ) throws SIResourceException , SISessionDroppedException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "runAsynchConsumer" , new Object [ ] { this , Boolean . valueOf ( isolatedRun ) } ) ; JSLocalConsumerPoint nextConsumer ... | Go and look for both attached messages and messages on the QP . If any are found then deliver them via the asynch callback |
160,840 | public void close ( ) throws SIResourceException , SINotPossibleInCurrentConfigurationException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "close" , this ) ; _interruptConsumer = true ; synchronized ( _asynchConsumerBusyLock ) { if ( _closed || _closing ) { if ( Tr... | Closes the LocalConsumerPoint . |
160,841 | public boolean isClosed ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , "isClosed" , this ) ; SibTr . exit ( tc , "isClosed" , Boolean . valueOf ( _closed ) ) ; } return _closed ; } | Returns true if this LCP is closed . |
160,842 | public void start ( boolean deliverImmediately ) throws SISessionUnavailableException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "start" , new Object [ ] { Boolean . valueOf ( deliverImmediately ) , this } ) ; _stoppedByRequest = false ; internalStart ( deliverImme... | Start this LCP . If there are any synchronous receives waiting wake them up If there is a AsynchConsumerCallback registered look on the QP for messages for asynch delivery . If deliverImmediately is set this Thread is used to deliver any initial messages rather than starting up a new Thread . |
160,843 | public void checkForMessages ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "checkForMessages" , this ) ; try { _messageProcessor . startNewThread ( new AsynchThread ( this , false ) ) ; } catch ( InterruptedException e ) { FFDCFilter . processException ( e , "com.... | Spin off a thread that checks for any stored messages . This is called by a consumerKeyGroup to try to kick a group back into life after a stopped member detaches and makes the group ready again . |
160,844 | public void unlockAll ( ) throws SISessionUnavailableException , SIResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "unlockAll" , this ) ; synchronized ( _asynchConsumerBusyLock ) { this . lock ( ) ; try { checkNotClosed ( ) ; try { _allLockedMessages .... | Unlock all messages which have been locked to this LCP but not consumed |
160,845 | private void setBaseRecoverability ( Reliability unrecoverableReliability ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "setBaseRecoverability" , new Object [ ] { this , unrecoverableReliability } ) ; setUnrecoverability ( unrecoverableReliability ) ; _baseUnrecover... | Set the consumerSession s recoverability |
160,846 | private void resetBaseUnrecoverability ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "resetBaseUnrecoverability" , this ) ; _unrecoverableOptions = _baseUnrecoverableOptions ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ... | Restore the original unrecoverability of the session |
160,847 | private void setReady ( ) throws SINotPossibleInCurrentConfigurationException { Reliability unrecoverable = Reliability . ASSURED_PERSISTENT ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "setReady" , this ) ; if ( _transacted ) unrecoverable = _unrecoverableOptions ; ... | Change the Ready state to true |
160,848 | protected void unsetReady ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "unsetReady" , this ) ; _ready = false ; if ( _keyGroup != null ) _keyGroup . groupNotReady ( ) ; if ( _consumerKey != null ) { _consumerKey . notReady ( ) ; } if ( TraceComponent . isAnyTraci... | Change the Ready state to false |
160,849 | protected TransactionCommon getAutoCommitTransaction ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , "getAutoCommitTransaction" , this ) ; } TransactionCommon tran = _messageProcessor . getTXManager ( ) . createAutoCommitTransaction ( ) ; if ( TraceComponent . isA... | An autocommit transaction is not threadsafe therefore any users must either prevent concurrent use or use separate transactions . All references in JSLocalConsumerPoint to _autoCommitTransaction are threadsafe so the cached transaction is ok . However callers to this method are not so a new transaction is returned each... |
160,850 | public int getMaxActiveMessages ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , "getMaxActiveMessages" ) ; SibTr . exit ( tc , "getMaxActiveMessages" , Integer . valueOf ( _maxActiveMessages ) ) ; } return _maxActiveMessages ; } | Gets the max active message count Currently only used by the unit tests to be sure that the max active count has been updated |
160,851 | public void setMaxActiveMessages ( int maxActiveMessages ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "setMaxActiveMessages" , Integer . valueOf ( maxActiveMessages ) ) ; synchronized ( _asynchConsumerBusyLock ) { this . lock ( ) ; try { synchronized ( _maxActiveMe... | Update the max active messages field |
160,852 | public boolean contextInfoRequired ( String eventType , long requestNumber ) { boolean needContextInfo = false ; List < ProbeExtension > probeExtnList = RequestProbeService . getProbeExtensions ( ) ; for ( int i = 0 ; i < probeExtnList . size ( ) ; i ++ ) { ProbeExtension probeExtension = probeExtnList . get ( i ) ; if... | This method will check if context information is required or not by processing through each active ProbeExtensions available in PE List |
160,853 | public static RequestProbeTransformDescriptor getObjForInstrumentation ( String key ) { RequestProbeTransformDescriptor requestProbeTransformDescriptor = RequestProbeBCIManagerImpl . getRequestProbeTransformDescriptors ( ) . get ( key ) ; return requestProbeTransformDescriptor ; } | getObjForInstrumentation Returns TransformDescriptor with input parameters className methodName and methodDescription |
160,854 | boolean addHandle ( SIMessageHandle handle , Map ctxInfo , final boolean canBeDeleted ) { final String methodName = "addHandle" ; if ( TraceComponent . isAnyTracingEnabled ( ) && TRACE . isEntryEnabled ( ) ) { SibTr . entry ( this , TRACE , methodName , new Object [ ] { handle , ctxInfo , canBeDeleted } ) ; } boolean a... | Attemts to add the supplied message handle to the token . This is only done if the context information matches and both messages are BENP or both are not BENP . |
160,855 | boolean matches ( Map ctxInfo , boolean canBeDeleted ) { final String methodName = "matches" ; if ( TraceComponent . isAnyTracingEnabled ( ) && TRACE . isEntryEnabled ( ) ) { SibTr . entry ( this , TRACE , methodName , new Object [ ] { ctxInfo , canBeDeleted } ) ; } if ( TraceComponent . isAnyTracingEnabled ( ) && TRAC... | This method checks to see if the supplied information from a message handle matches the information that this token is using . |
160,856 | private void updateBufferManager ( Map < String , Object > properties ) { if ( properties . isEmpty ( ) ) { return ; } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEventEnabled ( ) ) { Tr . event ( this , tc , "Ignoring runtime changes to WSBB config; " + properties ) ; } } | This is used to provide the runtime configuration changes to an existing pool manager which is a small subset of the possible creation properties . |
160,857 | private synchronized static void initConfigs ( ) { for ( int i = 0 ; i < moduleIDs . length ; i ++ ) { getConfigFromXMLFile ( getXmlFileName ( modulePrefix + moduleIDs [ i ] ) , true , false ) ; } } | Init moduleConfigs with array moduleIDs - use modulePrefix because they are all websphere default PMI modules |
160,858 | public static PmiModuleConfig getConfig ( String moduleID ) { if ( moduleID == null ) return null ; PmiModuleConfig config = ( PmiModuleConfig ) moduleConfigs . get ( moduleID ) ; if ( config == null ) { int hasDot = moduleID . indexOf ( '.' ) ; if ( hasDot == - 1 ) { String preDefinedMod = DEFAULT_MODULE_PREFIX + modu... | return PmiModuleConfig for a given moduleID |
160,859 | public static PmiModuleConfig findConfig ( PmiModuleConfig [ ] configs , String moduleID ) { if ( moduleID == null ) return null ; for ( int i = 0 ; i < configs . length ; i ++ ) { if ( configs [ i ] . getUID ( ) . equals ( moduleID ) ) return configs [ i ] ; } return null ; } | return the config for the moduleID |
160,860 | public synchronized static PmiModuleConfig getConfigFromXMLFile ( String xmlFilePath , boolean bFromCache , boolean bValidate ) { PmiModuleConfig config = null ; String modUID = getModuleUID ( xmlFilePath ) ; config = ( PmiModuleConfig ) moduleConfigs . get ( modUID ) ; if ( bFromCache ) { if ( config != null ) { retur... | will parsed one more time |
160,861 | public static String getDataName ( String moduleName , int dataId ) { PmiModuleConfig config = PerfModules . getConfig ( moduleName ) ; if ( config == null ) return null ; PmiDataInfo info = config . getDataInfo ( dataId ) ; if ( info == null ) return null ; else return info . getName ( ) ; } | Convert data id to data name |
160,862 | public static int getDataId ( String moduleName , String dataName ) { PmiModuleConfig config = PerfModules . getConfig ( moduleName ) ; if ( dataName . indexOf ( '.' ) < 0 ) dataName = moduleName + "." + dataName ; if ( config != null ) return config . getDataId ( dataName ) ; else return - 1 ; } | Convert data name to dataId |
160,863 | public ConsumerDispatcherState getConsumerDispatcherState ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , "getConsumerDispatcherState" ) ; SibTr . exit ( tc , "getConsumerDispatcherState" , _subState ) ; } return _subState ; } | Returns the subState . |
160,864 | private void deleteDurableSubscription ( boolean callProxyCode ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "deleteDurableSubscription" , new Object [ ] { new Boolean ( callProxyCode ) } ) ; HashMap durableSubsTable = _destinationManager . getDurableSubscriptionsTa... | Deletes the durable subscription from the list of durable subscriptions and calls through to the consumer dispatcher to remove the subscription from the MatchSpace . |
160,865 | public static TraceComponent register ( Class < ? > aClass , String group ) { return register ( aClass , group , null ) ; } | Register the provided class with the trace service and assign it to the provided group name . |
160,866 | public static final void dump ( TraceComponent tc , String msg , Object obj ) { if ( obj != null && obj instanceof Object [ ] ) { com . ibm . websphere . ras . Tr . dump ( tc , msg , ( Object [ ] ) obj ) ; } else { com . ibm . websphere . ras . Tr . dump ( tc , msg , obj ) ; } } | Print the provided message if the input trace component allows dump level messages . |
160,867 | public static final void entry ( TraceComponent tc , String methodName , Object obj ) { if ( obj != null && obj instanceof Object [ ] ) { com . ibm . websphere . ras . Tr . entry ( tc , methodName , ( Object [ ] ) obj ) ; } else { com . ibm . websphere . ras . Tr . entry ( tc , methodName , obj ) ; } } | Print the provided message if the input trace component allows entry level messages . |
160,868 | public static final void error ( TraceComponent tc , String msg ) { com . ibm . websphere . ras . Tr . error ( tc , msg ) ; } | Print the provided message if the input trace component allows error level messages . |
160,869 | public static final void exit ( TraceComponent tc , String methodName , Object obj ) { com . ibm . websphere . ras . Tr . exit ( tc , methodName , obj ) ; } | Print the provided message if the input trace component allows exit level messages . |
160,870 | public String getID ( ) { byte [ ] genBytes = new byte [ this . outputSize ] ; synchronized ( this . generator ) { this . generator . nextBytes ( genBytes ) ; } String id = convertSessionIdBytesToSessionId ( genBytes , this . idLength ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr .... | Request the next random ID field from the generator . |
160,871 | public MatchResponse merge ( MatchResponse matchResponse ) { if ( matchResponse == null || matchResponse == this ) { return this ; } else { boolean mergedSSLRequired = mergeSSLRequired ( matchResponse . isSSLRequired ( ) ) ; boolean mergedAccessPrecluded = mergeAccessPrecluded ( matchResponse . isAccessPrecluded ( ) ) ... | Merges the roles sslRequired and accessPrecluded fields according to the Servlet 2 . 3 and 3 . 0 specifications . |
160,872 | protected boolean mergeSSLRequired ( boolean otherSSLRequired ) { boolean mergedSSLRequired = false ; if ( collectionMatch . isExactMatch ( ) ) { mergedSSLRequired = sslRequired && otherSSLRequired ; } else if ( collectionMatch . isPathMatch ( ) || collectionMatch . isExtensionMatch ( ) ) { mergedSSLRequired = sslRequi... | Merges the sslRequired fields . |
160,873 | private void _publishManagedBeanDestroyerListener ( FacesContext facesContext ) { ExternalContext externalContext = facesContext . getExternalContext ( ) ; Map < String , Object > applicationMap = externalContext . getApplicationMap ( ) ; applicationMap . put ( ManagedBeanDestroyerListener . APPLICATION_MAP_KEY , _detr... | Publishes the ManagedBeanDestroyerListener instance in the application map . This allows the FacesConfigurator to access the instance and to set the correct ManagedBeanDestroyer instance on it . |
160,874 | public void setFacesInitializer ( FacesInitializer facesInitializer ) { if ( _facesInitializer != null && _facesInitializer != facesInitializer && _servletContext != null ) { _facesInitializer . destroyFaces ( _servletContext ) ; } _facesInitializer = facesInitializer ; if ( _servletContext != null ) { facesInitializer... | configure the faces initializer |
160,875 | private void dispatchInitializationEvent ( ServletContextEvent event , int operation ) { if ( operation == FACES_INIT_PHASE_PREINIT ) { if ( ! loadFacesInitPluginsJDK6 ( ) ) { loadFacesInitPluginsJDK5 ( ) ; } } List < StartupListener > pluginEntries = ( List < StartupListener > ) _servletContext . getAttribute ( FACES_... | the central initialisation event dispatcher which calls our listeners |
160,876 | public void unsetAsynchConsumer ( boolean stoppable ) throws SISessionUnavailableException , SISessionDroppedException , SIConnectionUnavailableException , SIConnectionDroppedException , SIErrorException , SIIncorrectCallException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entr... | Sends a request to unset the asynchronous consumer . |
160,877 | public void setAsynchConsumer ( AsynchConsumerCallback consumer , int maxActiveMessages , long messageLockExpiry , int maxBatchSize , OrderingContext orderContext , int maxSequentialFailures , long hiddenMessageDelay , boolean stoppable ) throws SISessionUnavailableException , SISessionDroppedException , SIConnectionUn... | Sends a request to set the asynchronous consumer . |
160,878 | public void exchangeStop ( ) throws SISessionUnavailableException , SISessionDroppedException , SIConnectionUnavailableException , SIConnectionDroppedException , SIResourceException , SIConnectionLostException , SIErrorException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ... | Sends a request to stop the session . |
160,879 | public void deleteMessages ( SIMessageHandle [ ] msgHandles , SITransaction tran , int priority ) throws SISessionUnavailableException , SISessionDroppedException , SIConnectionUnavailableException , SIConnectionDroppedException , SIResourceException , SIConnectionLostException , SILimitExceededException , SIIncorrectC... | Deletes a set of messages based on their IDs in the scope of a specific transaction . |
160,880 | public void setSessionId ( short sessionId ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "setSessionId" , "" + sessionId ) ; if ( this . sessionId == 0 && sessionId != 0 ) { this . sessionId = sessionId ; } else { SIErrorException e = new SIErrorException ( n... | This method will set the ID of the session that we will flow to the server to identify us . |
160,881 | public void get ( Object rootVal , MatchSpaceKey msg , EvalCache cache , Object contextValue , SearchResults result ) throws MatchingException , BadMessageFormatMatchingException { if ( tc . isEntryEnabled ( ) ) tc . entry ( this , cclass , "get" , new Object [ ] { rootVal , msg , cache , result } ) ; if ( result insta... | get delegates and also caches and reports whether there are any tests below this point in the tree . |
160,882 | public ContentMatcher remove ( Conjunction selector , MatchTarget object , InternTable subExpr , OrdinalPosition parentId ) throws MatchingException { if ( tc . isEntryEnabled ( ) ) tc . entry ( this , cclass , "remove" , "selector: " + selector + ", object: " + object ) ; vacantChild = vacantChild . remove ( selector ... | Remove just delegates |
160,883 | public int shrink ( ) { byte [ ] old = buf ; if ( pos == 0 ) { return 0 ; } int n = old . length - pos ; int m ; int p ; int s ; int l ; if ( n < origsize ) { buf = new byte [ origsize ] ; p = pos ; s = origsize - n ; l = old . length - p ; m = old . length - origsize ; pos = s ; } else { buf = new byte [ n ] ; p = pos... | Shrink the buffer . This will reclaim currently unused space in the buffer reducing memory but potentially increasing the cost of resizing the buffer |
160,884 | public boolean isRRSTransactional ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , hexId ( ) + ":isRRSTransactional()=" + true ) ; } return true ; } | Indicate whether this TranWrapper is RRS transactional |
160,885 | protected Compiler createCompiler ( FacesContext context ) { Compiler compiler = new SAXCompiler ( ) ; compiler . setDevelopmentProjectStage ( context . isProjectStage ( ProjectStage . Development ) ) ; loadLibraries ( context , compiler ) ; loadDecorators ( context , compiler ) ; loadOptions ( context , compiler ) ; r... | Creates the Facelet page compiler . |
160,886 | protected FaceletFactory createFaceletFactory ( FacesContext context , Compiler compiler ) { ExternalContext eContext = context . getExternalContext ( ) ; long refreshPeriod ; if ( context . isProjectStage ( ProjectStage . Production ) ) { refreshPeriod = WebConfigParamUtils . getLongInitParameter ( eContext , PARAMS_R... | Creates a FaceletFactory instance using the specified compiler . |
160,887 | protected String getResponseContentType ( FacesContext context , String orig ) { String contentType = orig ; Map < Object , Object > m = context . getAttributes ( ) ; if ( m . containsKey ( "facelets.ContentType" ) ) { contentType = ( String ) m . get ( "facelets.ContentType" ) ; if ( log . isLoggable ( Level . FINEST ... | Generate the content type |
160,888 | protected String getResponseEncoding ( FacesContext context , String orig ) { String encoding = orig ; Map < Object , Object > m = context . getAttributes ( ) ; Map < String , Object > sm = context . getExternalContext ( ) . getSessionMap ( ) ; if ( m . containsKey ( PARAM_ENCODING ) ) { encoding = ( String ) m . get (... | Generate the encoding |
160,889 | protected void initialize ( FacesContext context ) { log . finest ( "Initializing" ) ; Compiler compiler = createCompiler ( context ) ; _faceletFactory = createFaceletFactory ( context , compiler ) ; ExternalContext eContext = context . getExternalContext ( ) ; _initializeBuffer ( eContext ) ; _initializeMode ( eContex... | Initialize the ViewHandler during its first request . |
160,890 | private Facelet _getFacelet ( FacesContext context , String viewId ) throws IOException { FaceletFactory . setInstance ( _faceletFactory ) ; try { return _faceletFactory . getFacelet ( context , viewId ) ; } finally { FaceletFactory . setInstance ( null ) ; } } | Gets the Facelet representing the specified view identifier . |
160,891 | protected void retrieveBundleContext ( ) { BundleContext bc = TxBundleTools . getBundleContext ( ) ; if ( tc . isDebugEnabled ( ) ) Tr . debug ( tc , "retrieveBundleContext from TxBundleTools, bc " + bc ) ; if ( bc == null ) { bc = EmbeddableTxBundleTools . getBundleContext ( ) ; if ( tc . isDebugEnabled ( ) ) Tr . deb... | This method retrieves bundle context from the 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 Service Registry . |
160,892 | public synchronized void setRequestBufferSize ( int size ) { if ( size <= 0 ) { throw new IllegalArgumentException ( "request buffer size must be greater than zero" ) ; } if ( this . requestBuffer . size ( ) != 0 ) { throw new IllegalStateException ( "cannot resize non-empty ThreadPool request buffer" ) ; } this . requ... | Sets the size of the request buffer . If work has been dispatched on this thread pool the behavior of this method and all subsequent calls to this pool are undefined . |
160,893 | protected void addThread ( Runnable command ) { Worker worker ; if ( _isDecoratedZOS ) worker = new DecoratedZOSWorker ( command , threadid ++ ) ; else worker = new Worker ( command , threadid ++ ) ; if ( contextClassLoader != null && THREAD_CONTEXT_ACCESSOR . getContextClassLoader ( worker ) != contextClassLoader ) { ... | Create and start a thread to handle a new command . Call only when holding lock . |
160,894 | public int createThreads ( int numberOfThreads ) { int ncreated = 0 ; for ( int i = 0 ; i < numberOfThreads ; ++ i ) { synchronized ( this ) { if ( poolSize_ < maximumPoolSize_ ) { addThread ( null ) ; ++ ncreated ; } else break ; } } return ncreated ; } | Create and start up to numberOfThreads threads in the pool . Return the number created . This may be less than the number requested if creating more would exceed maximum pool size bound . |
160,895 | protected synchronized void workerDone ( Worker w , boolean taskDied ) { threads_ . remove ( w ) ; if ( taskDied ) { -- activeThreads ; -- poolSize_ ; } if ( poolSize_ == 0 && shutdown_ ) { maximumPoolSize_ = minimumPoolSize_ = 0 ; notifyAll ( ) ; } fireThreadDestroyed ( poolSize_ ) ; } | Cleanup method called upon termination of worker thread . |
160,896 | protected Runnable getTask ( boolean oldThread ) throws InterruptedException { long waitTime ; Runnable r = null ; boolean firstTime = true ; while ( true ) { synchronized ( this ) { if ( firstTime ) { -- activeThreads ; if ( oldThread ) { requestBuffer . incrementWaitingThreads ( ) ; } } if ( poolSize_ > maximumPoolSi... | Get a task from the handoff queue or null if shutting down . |
160,897 | public void setDecoratedZOS ( ) { if ( xMemSetupThread == null ) { try { final Class xMemCRBridgeClass = Class . forName ( "com.ibm.ws390.xmem.XMemCRBridgeImpl" ) ; xMemSetupThread = xMemCRBridgeClass . getMethod ( "setupThreadStub" , new Class [ ] { java . lang . Object . class } ) ; } catch ( Throwable t ) { if ( tc ... | sets this thread pool to create threads which are decorated via setupThreadStub |
160,898 | public void executeOnDaemon ( Runnable command ) { int id = 0 ; final Runnable commandToRun = command ; synchronized ( this ) { this . daemonId ++ ; id = this . daemonId ; } final String runId = name + " : DMN" + id ; Thread t = ( Thread ) AccessController . doPrivileged ( new PrivilegedAction ( ) { public Object run (... | Dispatch work on a daemon thread . This thread is not accounted for in the pool . There are no corresponding ThreadPoolListener events . There is no MonitorPlugin support . |
160,899 | public void execute ( Runnable command , int blockingMode ) throws InterruptedException , ThreadPoolQueueIsFullException , IllegalStateException { execute ( command , blockingMode , 0 ) ; } | Arrange for the given command to be executed by a thread in this pool . The call s behavior when the pool and its internal request queue are at full capacity is determined by the blockingMode . |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.