idx int64 0 41.2k | question stringlengths 83 4.15k | target stringlengths 5 715 |
|---|---|---|
37,100 | protected Subject createBasicAuthSubject ( AuthenticationData authenticationData , Subject subject ) throws WSLoginFailedException , CredentialException { Subject basicAuthSubject = subject != null ? subject : new Subject ( ) ; String loginRealm = ( String ) authenticationData . get ( AuthenticationData . REALM ) ; Str... | Create the basic auth subject using the given authentication data |
37,101 | static RLSSuspendTokenManager getInstance ( ) { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "getInstance" ) ; if ( tc . isEntryEnabled ( ) ) Tr . exit ( tc , "getInstance" , _instance ) ; return _instance ; } | Returns the single instance of the RLSSuspendTokenManager |
37,102 | RLSSuspendToken registerSuspend ( int timeout ) { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "registerSuspend" , new Integer ( timeout ) ) ; RLSSuspendToken token = Configuration . getRecoveryLogComponent ( ) . createRLSSuspendToken ( null ) ; Alarm alarm = null ; if ( timeout > 0 ) { alarm = Configuration . getA... | Registers that a suspend call has been made on the RecoveryLogService and generates a unique RLSSuspendToken which must be passed in to registerResume to cancel this suspend operation |
37,103 | void registerResume ( RLSSuspendToken token ) throws RLSInvalidSuspendTokenException { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "registerResume" , token ) ; if ( token != null && _tokenMap . containsKey ( token ) ) { synchronized ( _tokenMap ) { Alarm alarm = ( Alarm ) _tokenMap . remove ( token ) ; if ( alarm ... | Cancels the suspend request that returned the matching RLSSuspendToken . The suspend call s alarm if there is one will also be cancelled |
37,104 | boolean isResumable ( ) { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "isResumable" ) ; boolean isResumable = true ; synchronized ( _tokenMap ) { if ( ! _tokenMap . isEmpty ( ) ) { isResumable = false ; } } if ( tc . isEntryEnabled ( ) ) Tr . exit ( tc , "isResumable" , new Boolean ( isResumable ) ) ; return isRes... | Returns true if there are no tokens in the map indicating that no active suspends exist . |
37,105 | public static String formatUniqueName ( String uniqueName ) throws InvalidUniqueNameException { String validName = getValidUniqueName ( uniqueName ) ; if ( validName == null ) { if ( tc . isErrorEnabled ( ) ) { Tr . error ( tc , WIMMessageKey . INVALID_UNIQUE_NAME_SYNTAX , WIMMessageHelper . generateMsgParms ( uniqueNa... | Formats the specified entity unique name and also check it using the LDAP DN syntax rule . The formatting including remove |
37,106 | public static String constructUniqueName ( String [ ] RDNs , Entity entity , String parentDN , boolean throwExc ) throws WIMException { boolean found = false ; String uniqueName = null ; String missingPropName = null ; for ( int i = 0 ; i < RDNs . length ; i ++ ) { String [ ] localRDNs = getRDNs ( RDNs [ i ] ) ; int si... | Returns the unique name based on the input value . |
37,107 | private static String escapeAttributeValue ( String value ) { final String escapees = ",=+<>#;\"\\" ; char [ ] chars = value . toCharArray ( ) ; StringBuffer buf = new StringBuffer ( 2 * value . length ( ) ) ; int lead ; for ( lead = 0 ; lead < chars . length ; lead ++ ) { if ( ! isWhitespace ( chars [ lead ] ) ) { bre... | Given the value of an attribute returns a string suitable for inclusion in a DN . |
37,108 | public static String unescapeSpaces ( String in ) { char [ ] chars = in . toCharArray ( ) ; int end = chars . length ; StringBuffer out = new StringBuffer ( in . length ( ) ) ; for ( int i = 0 ; i < end ; i ++ ) { boolean isSlashSpace = ( chars [ i ] == '\\' ) && ( i + 1 < end ) && ( chars [ i + 1 ] == ' ' ) ; if ( isS... | Replace any unnecessary escaped spaces from the input DN . |
37,109 | public static String getChildText ( Element elem , String childTagName ) { NodeList nodeList = elem . getElementsByTagName ( childTagName ) ; int len = nodeList . getLength ( ) ; if ( len == 0 ) { return null ; } return getElementText ( ( Element ) nodeList . item ( len - 1 ) ) ; } | Return content of child element with given tag name . If more than one children with this name are present the content of the last element is returned . |
37,110 | 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 . |
37,111 | 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 . |
37,112 | 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 . |
37,113 | 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 . |
37,114 | 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 . |
37,115 | 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 |
37,116 | 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 . |
37,117 | 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 . |
37,118 | 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 . |
37,119 | 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 . |
37,120 | 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 . |
37,121 | 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 . |
37,122 | 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 . |
37,123 | 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 . |
37,124 | 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 . |
37,125 | 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 . |
37,126 | 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 . |
37,127 | 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 . |
37,128 | 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 . |
37,129 | 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 . |
37,130 | 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 . |
37,131 | 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 . |
37,132 | 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... |
37,133 | 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 |
37,134 | 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 . |
37,135 | 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 |
37,136 | 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... |
37,137 | @ 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 |
37,138 | 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 . |
37,139 | 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 |
37,140 | 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 |
37,141 | 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 |
37,142 | 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 |
37,143 | 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 |
37,144 | 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 . |
37,145 | 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 . |
37,146 | 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 . |
37,147 | 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 |
37,148 | 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 |
37,149 | 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 |
37,150 | 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 . |
37,151 | 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 . |
37,152 | 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 . |
37,153 | 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 . |
37,154 | 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 |
37,155 | 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 |
37,156 | 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 |
37,157 | 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 |
37,158 | 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 |
37,159 | 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... |
37,160 | 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 |
37,161 | 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 |
37,162 | 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 |
37,163 | public static RequestProbeTransformDescriptor getObjForInstrumentation ( String key ) { RequestProbeTransformDescriptor requestProbeTransformDescriptor = RequestProbeBCIManagerImpl . getRequestProbeTransformDescriptors ( ) . get ( key ) ; return requestProbeTransformDescriptor ; } | getObjForInstrumentation Returns TransformDescriptor with input parameters className methodName and methodDescription |
37,164 | 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 . |
37,165 | 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 . |
37,166 | 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 . |
37,167 | 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 |
37,168 | 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 |
37,169 | 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 |
37,170 | 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 |
37,171 | 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 |
37,172 | 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 |
37,173 | public ConsumerDispatcherState getConsumerDispatcherState ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , "getConsumerDispatcherState" ) ; SibTr . exit ( tc , "getConsumerDispatcherState" , _subState ) ; } return _subState ; } | Returns the subState . |
37,174 | 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 . |
37,175 | 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 . |
37,176 | 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 . |
37,177 | 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 . |
37,178 | 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 . |
37,179 | 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 . |
37,180 | 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 . |
37,181 | 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 . |
37,182 | 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 . |
37,183 | 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 . |
37,184 | 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 |
37,185 | 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 |
37,186 | 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 . |
37,187 | 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 . |
37,188 | 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 . |
37,189 | 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 . |
37,190 | 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 . |
37,191 | 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 . |
37,192 | 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 |
37,193 | 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 |
37,194 | public boolean isRRSTransactional ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , hexId ( ) + ":isRRSTransactional()=" + true ) ; } return true ; } | Indicate whether this TranWrapper is RRS transactional |
37,195 | 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 . |
37,196 | 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 . |
37,197 | 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 |
37,198 | 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 |
37,199 | 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 . |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.