idx int64 0 165k | question stringlengths 73 4.15k | target stringlengths 5 918 | len_question int64 21 890 | len_target int64 3 255 |
|---|---|---|---|---|
163,600 | protected void readyOutboundPostHandshake ( WsByteBuffer netBuffer , WsByteBuffer decryptedNetBuffer , WsByteBuffer encryptedAppBuffer , HandshakeStatus hsStatus , boolean async ) throws IOException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { Tr . entry ( tc , "readyOutboundPostHandsh... | This method is called to handle the results of an SSL handshake . This may be called by a callback or in the same thread as the connect request . | 678 | 30 |
163,601 | private void handleRedundantConnect ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { Tr . entry ( tc , "handleRedundantConnect, vc=" + getVCHash ( ) ) ; } // This conn link has already been connected. // Need to shut get a new SSL engine. cleanup ( ) ; // PK46069 - use engine that allo... | This method is called if connect or connectAsync are called redundantly after the connection is already established . It cleans up the SSL engine . The connect methods will then pass the connect on down the chain where eventually a new socket will be established with this virtual connection . | 254 | 52 |
163,602 | public void setAlpnProtocol ( String protocol ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "setAlpnProtocol: " + protocol + " " + this ) ; } this . alpnProtocol = protocol ; this . sslConnectionContext . setAlpnProtocol ( protocol ) ; } | Set the ALPN protocol negotiated for this link | 84 | 9 |
163,603 | private void destroyConnLinks ( ) { synchronized ( inUse ) { int numlinks = inUse . size ( ) ; for ( int i = 0 ; i < numlinks ; i ++ ) { inUse . removeFirst ( ) . destroy ( null ) ; } } } | call the destroy on all the UDPConnLink objects related to this UDPChannel which are currently in use . | 57 | 21 |
163,604 | public boolean verifySender ( InetAddress remoteAddr ) { boolean returnValue = true ; if ( alists != null ) { returnValue = ! alists . accessDenied ( remoteAddr ) ; } return returnValue ; } | Verify whether the remote address is allowed to communicated with the channel . | 50 | 14 |
163,605 | public boolean aboveRange ( InetAddress ip ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "aboveRange, ip is " + ip ) ; Tr . debug ( tc , "aboveRange, ip is " + ip ) ; } return greaterThan ( ip , ipHigher ) ; } | Is the given ip address numericaly above the address range? Is it above ipHigher? | 80 | 18 |
163,606 | public boolean belowRange ( InetAddress ip ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "belowRange, ip is " + ip ) ; Tr . debug ( tc , "belowRange, ipLower is " + ipLower ) ; } return lessThan ( ip , ipLower ) ; } | Is the given ip address numerically below the address range? Is it below ipLower? | 82 | 18 |
163,607 | private String metadataValueOf ( String value ) { if ( value == null || value . trim ( ) . isEmpty ( ) ) return null ; return value ; } | Since annotations have the default value of convert it to null . | 34 | 12 |
163,608 | @ Override public final Object get ( ) { Object o = buffer . pop ( ) ; if ( beanPerf != null ) { // Update PMI data beanPerf . objectRetrieve ( buffer . size ( ) , ( o != null ) ) ; } return o ; } | Retrieve an object from this pool . | 59 | 8 |
163,609 | @ Override public final void put ( Object o ) { boolean discarded = false ; if ( inactive ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) Tr . debug ( tc , "setting active: " + this ) ; // If the pool was marked inactive by the pool manager alarm, then // switch it back to active. Hopeful... | Return an object instance to this pool . | 233 | 8 |
163,610 | @ Override final void periodicDrain ( ) { // Drain to the minimum size but only by the maxDrainAmount. // This slows the drain process, allowing for the pool to become // active before becoming fully drained (to minimum level). SizeData size = poolSize ; int numDiscarded = drainToSize ( size . minSize , size . maxDrain... | Remove a percentage of the elements from this pool down to its minimum value . If the pool becomes active while draining discontinue . | 318 | 25 |
163,611 | public void init ( HttpInboundConnection conn , RequestMessage req ) { this . request = req ; this . response = conn . getResponse ( ) ; this . connection = conn ; this . outStream = new ResponseBody ( this . response . getBody ( ) ) ; this . locale = Locale . getDefault ( ) ; } | Initialize this response message with the input connection . | 71 | 10 |
163,612 | public void clear ( ) { this . contentType = null ; this . encoding = null ; this . locale = null ; this . outStream = null ; this . outWriter = null ; this . streamActive = false ; } | Clear all the temporary variables of this response . | 47 | 9 |
163,613 | private String convertURItoURL ( String uri ) { int indexScheme = uri . indexOf ( "://" ) ; if ( - 1 != indexScheme ) { int indexQuery = uri . indexOf ( ' ' ) ; if ( - 1 == indexQuery || indexScheme < indexQuery ) { // already a full url return uri ; } } StringBuilder sb = new StringBuilder ( ) ; String scheme = this .... | Convert a possible URI to a full URL . | 420 | 10 |
163,614 | public void commit ( ) { if ( isCommitted ( ) ) { return ; } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "Committing: " + this ) ; } if ( null == this . response . getHeader ( "Content-Language" ) ) { // content-language not yet set, add now this . response . setHeader... | When headers are being marshalled out this message moves to committed state which will disallow most further changes . | 376 | 21 |
163,615 | public void setApi ( String api ) { api = api . trim ( ) ; if ( "liberty" . equalsIgnoreCase ( api ) ) { this . api = "liberty" ; } else if ( "websphere" . equalsIgnoreCase ( api ) ) { this . api = "tr" ; } else if ( "tr" . equalsIgnoreCase ( api ) ) { this . api = "tr" ; } else if ( "jsr47" . equalsIgnoreCase ( api ) ... | Set the type of trace API to use . | 238 | 9 |
163,616 | private Map < String , String > getServletNameClassPairsInWebXML ( Container containerToAdapt ) throws UnableToAdaptException { Map < String , String > nameClassPairs = new HashMap < String , String > ( ) ; WebAppConfig webAppConfig = containerToAdapt . adapt ( WebAppConfig . class ) ; Iterator < IServletConfig > cfgIt... | Get all the Servlet name and className pairs from web . xml | 183 | 14 |
163,617 | private void processClassesInWebXML ( EndpointInfoBuilder endpointInfoBuilder , EndpointInfoBuilderContext ctx , WebAppConfig webAppConfig , JaxWsModuleInfo jaxWsModuleInfo , Set < String > presentedServices ) throws UnableToAdaptException { Iterator < IServletConfig > cfgIter = webAppConfig . getServletInfos ( ) ; whi... | Process the serviceImplBean classes in web . xml file . | 292 | 13 |
163,618 | public static TrmMessageFactory getInstance ( ) { if ( _instance == null ) { synchronized ( TrmMessageFactory . class ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "createFactoryInstance" ) ; try { Class cls = Class . forName ( TRM_MESSAGE_FACTORY_CLASS ) ; _instanc... | Get the singleton TrmMessageFactory which is to be used for creating TRM Message instances . | 233 | 20 |
163,619 | public void addNamedEvent ( String shortName , Class < ? extends ComponentSystemEvent > cls ) { String key = shortName ; Collection < Class < ? extends ComponentSystemEvent > > eventList ; // Per the spec, if the short name is missing, generate one. if ( shortName == null ) { key = getFixedName ( cls ) ; } eventList = ... | Registers a named event . | 145 | 6 |
163,620 | private String getFixedName ( Class < ? extends ComponentSystemEvent > cls ) { StringBuilder result = new StringBuilder ( ) ; String className ; // Get the unqualified class name. className = cls . getSimpleName ( ) ; // Strip the trailing "event" off the class name if present. if ( className . toLowerCase ( ) . endsWi... | Retrieves the short name for an event class according to spec rules . | 171 | 15 |
163,621 | public static String jsonifyEvent ( Object event , String eventType , String serverName , String wlpUserDir , String serverHostName , String [ ] tags , int maxFieldLength ) { if ( eventType . equals ( CollectorConstants . GC_EVENT_TYPE ) ) { if ( event instanceof GCData ) { return jsonifyGCEvent ( wlpUserDir , serverNa... | Method to return log event data in json format . This method is for collector version greater than 1 . 0 | 425 | 21 |
163,622 | public void valueHasChanged ( DCache cache , Object id , long expirationTime , int inactivity ) { // CPF-Inactivity //final String methodName = "valueHasChanged()"; if ( expirationTime <= 0 && inactivity <= 0 ) { // CPF-Inactivity throw new IllegalArgumentException ( "expirationTime or inactivity must be positive" ) ; ... | This notifies this daemon that a value has changed so the expiration time should be updated . It updates internal tables and indexes accordingly . | 513 | 26 |
163,623 | public void valueWasRemoved ( DCache cache , Object id ) { //final String methodName = "valueWasRemoved()"; if ( UNIT_TEST_INACTIVITY ) { System . out . println ( "valueWasRemoved() - entry" ) ; } ExpirationMetaData expirationMetaData = ( ExpirationMetaData ) cacheInstancesTable . get ( cache ) ; if ( expirationMetaDat... | This notifies this daemon that an entry has removed It removes the entry from the internal tables . | 219 | 19 |
163,624 | public void valueWasAccessed ( DCache cache , Object id , long expirationTime , int inactivity ) { valueHasChanged ( cache , id , expirationTime , inactivity ) ; } | CPF - Inactivity - cache check inactivity > 0 before calling this method . | 39 | 17 |
163,625 | public void createExpirationMetaData ( DCache cache ) { //final String methodName = "createExpirationMetaData()"; ExpirationMetaData expirationMetaData = ( ExpirationMetaData ) cacheInstancesTable . get ( cache ) ; if ( expirationMetaData == null ) { int initialTableSize = DEFAULT_SIZE_FOR_MEM ; if ( cache . getSwapToD... | This method is called when the cache is created . This will initialize ExpirationMetaData for specified cache | 158 | 20 |
163,626 | public ApplicationSignature getApplicationSignature ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , "getApplicationSignature" ) ; SibTr . exit ( tc , "getApplicationSignature" , applicationSig ) ; } return applicationSig ; } | Returns the ApplicationSignature . | 76 | 6 |
163,627 | public static String getUserNameFromSubject ( Subject subject ) { Iterator < Principal > it = subject . getPrincipals ( ) . iterator ( ) ; String username = it . next ( ) . getName ( ) ; return username ; } | The sujbect has to be non - null | 51 | 11 |
163,628 | public static String encode ( String value ) { if ( value == null ) { return value ; } try { value = URLEncoder . encode ( value , Constants . UTF_8 ) ; } catch ( UnsupportedEncodingException e ) { // Do nothing - UTF-8 should always be supported } return value ; } | Encodes the given string using URLEncoder and UTF - 8 encoding . | 68 | 16 |
163,629 | public static String getTimeStamp ( long lNumber ) { String timeStamp = "" + lNumber ; int iIndex = TIMESTAMP_LENGTH - timeStamp . length ( ) ; // this is enough for 3000 years return zeroFillers [ iIndex ] + timeStamp ; } | for unit test | 63 | 3 |
163,630 | public static String createNonceCookieValue ( String nonceValue , String state , ConvergedClientConfig clientConfig ) { return HashUtils . digest ( nonceValue + state + clientConfig . getClientSecret ( ) ) ; } | calculate the cookie value of Nonce | 50 | 9 |
163,631 | private void compress ( ) { counter = 1 ; for ( Iterator e = values ( ) . iterator ( ) ; e . hasNext ( ) ; ) { Selector s = ( Selector ) e . next ( ) ; s . setUniqueId ( counter ++ ) ; } } | Compress the uniqueId assignments for Selectors currently in the intern table | 59 | 14 |
163,632 | private static JsJmsMessage decodeTextBody ( String body ) throws MessageDecodeFailedException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "decodeTextBody" ) ; JsJmsTextMessage result = new JsJmsTextMessageImpl ( MfpConstants . CONSTRUCTOR_NO_OP ) ; if ( body != nul... | Decode a text message | 152 | 5 |
163,633 | private static JsJmsMessage decodeBytesBody ( String body ) throws MessageDecodeFailedException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "decodeBytesBody" ) ; JsJmsBytesMessage result = new JsJmsBytesMessageImpl ( MfpConstants . CONSTRUCTOR_NO_OP ) ; if ( body !=... | Decode a bytes message | 156 | 5 |
163,634 | private static JsJmsMessage decodeObjectBody ( String body ) throws MessageDecodeFailedException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "decodeObjectBody" ) ; JsJmsObjectMessage result = new JsJmsObjectMessageImpl ( MfpConstants . CONSTRUCTOR_NO_OP ) ; if ( bod... | Decode an object message | 158 | 5 |
163,635 | private static JsJmsMessage decodeStreamBody ( String body ) throws MessageDecodeFailedException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "decodeStreamBody" ) ; JsJmsStreamMessage result = new JsJmsStreamMessageImpl ( MfpConstants . CONSTRUCTOR_NO_OP ) ; if ( bod... | Decode a stream message | 267 | 5 |
163,636 | private static JsJmsMessage decodeMapBody ( String body ) throws MessageDecodeFailedException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "decodeMapBody" ) ; JsJmsMapMessage result = new JsJmsMapMessageImpl ( MfpConstants . CONSTRUCTOR_NO_OP ) ; if ( body != null ) ... | Decode a map message | 288 | 5 |
163,637 | private static void decodeHeader ( JsJmsMessage msg , String id , String type , String topic , String props ) { // id should be hexEncoded byte array but if it looks too short we prepend a '0' to // allow clients to simply use an integer if they want. if ( id != null ) { if ( id . length ( ) % 2 != 0 ) id = "0" + id ; ... | Decode and set the header fields | 414 | 7 |
163,638 | private static Object [ ] decodePair ( String text ) { Object [ ] result = new Object [ 2 ] ; int i = text . indexOf ( ' ' ) ; result [ 0 ] = URLDecode ( text . substring ( 0 , i ) ) ; result [ 1 ] = decodeObject ( text . substring ( i + 1 ) ) ; return result ; } | Decode a name = value pair | 79 | 7 |
163,639 | private static Object decodeObject ( String text ) { Object result = null ; if ( text . startsWith ( "[]" ) ) result = HexString . hexToBin ( text , 2 ) ; else result = URLDecode ( text ) ; return result ; } | Decode an object as a string or byte array | 55 | 10 |
163,640 | private static String URLDecode ( String text ) { String result = null ; try { result = URLDecoder . decode ( text , "UTF8" ) ; } catch ( UnsupportedEncodingException e ) { // Should never happen - all JDKs must support UTF8 FFDCFilter . processException ( e , "com.ibm.ws.sib.mfp.impl.WebJsMessageFactoryImpl.URLDecode"... | URL decode a string | 104 | 4 |
163,641 | @ Override public MatchResponse getMatchResponse ( SecurityConstraint securityConstraint , String resourceName , String method ) { CollectionMatch collectionMatch = getCollectionMatch ( securityConstraint . getWebResourceCollections ( ) , resourceName , method ) ; if ( CollectionMatch . RESPONSE_NO_MATCH . equals ( col... | Gets the response object that contains the roles the SSL required and access precluded indicators . Gets the response using the custom method algorithm . If the collection match returned from the collection is null then response must be CUSTOM_NO_MATCH_RESPONSE . | 200 | 55 |
163,642 | protected void deactivate ( ComponentContext ctxt , int reason ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEventEnabled ( ) ) { Tr . event ( this , tc , "Deactivating, reason=" + reason ) ; } unregisterAll ( ) ; } | Deactivate this component . | 63 | 5 |
163,643 | public void addHttpSessionListener ( HttpSessionListener listener , String J2EEName ) { synchronized ( mHttpSessionListeners ) { mHttpSessionListeners . add ( listener ) ; mHttpSessionListenersJ2eeNames . add ( J2EEName ) ; sessionListener = true ; _coreHttpSessionManager . getIStore ( ) . setHttpSessionListener ( true... | Akaimai requested function - overridden in WsSessionContext | 314 | 13 |
163,644 | protected String getArgumentValue ( String arg , String [ ] args , ConsoleWrapper stdin , PrintStream stdout ) { for ( int i = 1 ; i < args . length ; i ++ ) { String key = args [ i ] . split ( "=" ) [ 0 ] ; if ( key . equals ( arg ) ) { return getValue ( args [ i ] ) ; } } return null ; } | Gets the value for the specified argument String . | 87 | 10 |
163,645 | public void setHeartbeatInterval ( short heartbeatInterval ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "setHeartbeatInterval" ) ; properties . put ( HEARTBEAT_INTERVAL , heartbeatInterval ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnab... | Sets the heartbeat interval . | 118 | 6 |
163,646 | private boolean isZip ( JarEntry entry ) throws IOException { try ( InputStream entryInputStream = sourceFatJar . getInputStream ( entry ) ) { try ( ZipInputStream zipInputStream = new ZipInputStream ( entryInputStream ) ) { ZipEntry ze = zipInputStream . getNextEntry ( ) ; if ( ze == null ) { return false ; } return t... | Check whether the jar entry is a zip regardless of the extension . | 84 | 13 |
163,647 | public static File getLogDir ( ) { String logDirLoc = null ; // 1st check in environment variable is set. This is the normal case // when the server is started from the command line. if ( logDir . get ( ) == null ) { File resultDir = null ; try { logDirLoc = AccessController . doPrivileged ( new java . security . Privi... | Returns directory containing server log directories . | 297 | 7 |
163,648 | public static File getOutputDir ( boolean isClient ) { String outputDirLoc = null ; // 1st check in environment variable is set. This is the normal case // when the server is started from the command line. if ( outputDir . get ( ) == null ) { try { outputDirLoc = AccessController . doPrivileged ( new java . security . ... | Returns directory containing server output directories . A server output directory has server s name as a name and located under this directory . | 375 | 24 |
163,649 | public static boolean tryToClose ( ZipFile zipFile ) { if ( zipFile != null ) { try { zipFile . close ( ) ; return true ; } catch ( IOException e ) { // ignore } } return false ; } | Close the zip file | 49 | 4 |
163,650 | public static Class < ? > getRealClass ( Class < ? > clazz ) { Class < ? > realClazz = clazz ; if ( isWeldProxy ( clazz ) ) { realClazz = clazz . getSuperclass ( ) ; } return realClazz ; } | Get the real class . If it is proxy get its superclass which will be the real class . | 61 | 20 |
163,651 | public void destroy ( Exception e ) { if ( this . appCallback != null ) { this . appCallback . destroy ( e ) ; this . appCallback = null ; } } | This method is called when there is a problem with the connectAsync call further down the stack . This will just be used as a pass through . | 37 | 29 |
163,652 | public synchronized void addSmap ( String smap , String stratumName ) { embedded . add ( "*O " + stratumName + "\n" + smap + "*C " + stratumName + "\n" ) ; } | Adds the given string as an embedded SMAP with the given stratum name . | 52 | 16 |
163,653 | public void dumpItems ( ) { LinkedList < CBuffRecord > copy = new LinkedList < CBuffRecord > ( ) ; synchronized ( this ) { copy . addAll ( buffer ) ; buffer . clear ( ) ; currentSize = 0L ; if ( headerBytes == null ) { return ; } } dumpWriter . setHeader ( headerBytes ) ; for ( CBuffRecord record : copy ) { dumpWriter ... | Dumps records stored in buffer to disk using configured LogRepositoryWriter . | 103 | 15 |
163,654 | protected Index getJandexIndex ( ) { String methodName = "getJandexIndex" ; boolean doLog = tc . isDebugEnabled ( ) ; boolean doJandexLog = JandexLogger . doLog ( ) ; boolean useJandex = getUseJandex ( ) ; if ( ! useJandex ) { // Figuring out if there is a Jandex index is mildly expensive, // and is to be avoided when ... | Attempt to read the Jandex index . | 474 | 9 |
163,655 | public boolean and ( SimpleTest newTest ) { for ( int i = 0 ; i < tmpSimpleTests . size ( ) ; i ++ ) { SimpleTest cand = ( SimpleTest ) tmpSimpleTests . get ( i ) ; if ( cand . getIdentifier ( ) . getName ( ) . equals ( newTest . getIdentifier ( ) . getName ( ) ) ) { // Careful, may be operating in XPath selector domai... | Add a SimpleTest to the Conjunction searching for contradictions . | 205 | 12 |
163,656 | public boolean organize ( ) { // First, find any simple tests that can be used to reduce residual components to // simple tests or pure truth values, either because the simple test is a NULL test or // because it is effectively an equality test. if ( tmpResidual . size ( ) > 0 ) { List [ ] equatedIds = findEquatedIdent... | Organize the Conjunction into its final useful form for MatchSpace . | 695 | 14 |
163,657 | private List [ ] findEquatedIdentifiers ( ) { List [ ] ans = null ; for ( int i = 0 ; i < tmpSimpleTests . size ( ) ; i ++ ) { SimpleTest cand = ( SimpleTest ) tmpSimpleTests . get ( i ) ; if ( cand . getKind ( ) == SimpleTest . NULL ) { if ( ans == null ) ans = new List [ ] { new ArrayList ( ) , new ArrayList ( ) } ; ... | that these can be removed from tmpResidual . Return null if there are none . | 218 | 18 |
163,658 | private List [ ] reduceResidual ( List [ ] equatedIds ) { List [ ] ans = null ; for ( int i = 0 ; i < tmpResidual . size ( ) ; ) { Operator oper = substitute ( ( Operator ) tmpResidual . get ( i ) , equatedIds ) ; if ( oper . getNumIds ( ) > 0 && ! Matching . isSimple ( oper ) ) // Even after substitution, must remain ... | therefore should be abandoned . | 680 | 6 |
163,659 | private static Operator substitute ( Operator oper , List [ ] equatedIds ) { Selector op1 = oper . getOperands ( ) [ 0 ] ; Selector op2 = ( oper . getOperands ( ) . length == 1 ) ? null : oper . getOperands ( ) [ 1 ] ; if ( op1 instanceof Identifier ) op1 = substitute ( ( Identifier ) op1 , equatedIds ) ; else if ( op1... | mutations are made directly to any tree nodes . | 364 | 10 |
163,660 | private static Selector substitute ( Identifier id , List [ ] equatedIds ) { for ( int i = 0 ; i < equatedIds [ 0 ] . size ( ) ; i ++ ) if ( id . getName ( ) . equals ( equatedIds [ 0 ] . get ( i ) ) ) return new LiteralImpl ( equatedIds [ 1 ] . get ( i ) ) ; return id ; } | if not matched . | 92 | 4 |
163,661 | private void setUnavailableUntil ( long time , boolean isInit ) //PM01373 { if ( com . ibm . ejs . ras . TraceComponent . isAnyTracingEnabled ( ) && logger . isLoggable ( Level . FINE ) ) logger . logp ( Level . FINE , CLASS_NAME , "setUnavailableUntil" , "setUnavailableUntil() : " + time ) ; if ( isInit ) { state = UN... | Method setUnavailableUntil . | 150 | 6 |
163,662 | protected void setUninitialize ( ) { if ( com . ibm . ejs . ras . TraceComponent . isAnyTracingEnabled ( ) && logger . isLoggable ( Level . FINE ) ) logger . logp ( Level . FINE , CLASS_NAME , "setUninitialized " , "" + this . toString ( ) ) ; state = UNINITIALIZED_STATE ; } | Puts a servlet into uninitialize state . | 88 | 11 |
163,663 | protected synchronized void invalidateCacheWrappers ( ) { if ( com . ibm . ejs . ras . TraceComponent . isAnyTracingEnabled ( ) && logger . isLoggable ( Level . FINE ) ) // 306998.15 logger . entering ( CLASS_NAME , "invalidateCacheWrappers" ) ; // 569469 if ( cacheWrappers != null ) { // invalidate all the cache wrapp... | which makes a call to invalidateCacheWrappers | 296 | 10 |
163,664 | private boolean checkForDefaultImplementation ( Class checkClass , String checkMethod , Class [ ] methodParams ) { if ( com . ibm . ejs . ras . TraceComponent . isAnyTracingEnabled ( ) && logger . isLoggable ( Level . FINE ) ) //306998.14 logger . exiting ( CLASS_NAME , "checkForDefaultImplementation" , "Method : " + c... | PK83258 Add method checkDefaultImplementation | 554 | 9 |
163,665 | private int findIndexByKey ( Object key ) { // Traverse the vector from the back. Given proper locking done at // a higher level, this will ensure that the cache gets to the same // element in the presence of duplicates. // Traversing the vector from the first element causes a problem since // elements are inserted at ... | Return the index of the element with the specified key | 166 | 10 |
163,666 | public void toArray ( Element [ ] dest ) { if ( ivElements != null ) { System . arraycopy ( ivElements , ivHeadIndex , dest , 0 , size ( ) ) ; } } | Copies elements from the bucket into the destination array starting at index 0 . The destination array must be at least large enough to hold all the elements in the bucket ; otherwise the behavior is undefined . | 44 | 39 |
163,667 | private void add ( Element element ) { if ( ivElements == null ) { ivElements = new Element [ DEFAULT_CAPACITY ] ; } else if ( ivTailIndex == ivElements . length ) { // No more room at the tail of the array. If we're completely out of // space (ivBaseIndex == 0), then we need a bigger array. Otherwise, // determine if ... | Adds an element to the end of the bucket . | 474 | 10 |
163,668 | private void remove ( int listIndex ) { if ( listIndex == 0 ) { // Trivially remove from head. ivElements [ ivHeadIndex ++ ] = null ; } else if ( listIndex == ivTailIndex - 1 ) { // Trivially remove from tail. ivElements [ -- ivTailIndex ] = null ; } else { // Determine whether shifting the head or the tail requires th... | Removes the element at the specified index . The index must be greater or equal to 0 and less than the size ; otherwise the behavior is undefined . | 307 | 30 |
163,669 | public void setToBeDeleted ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "setToBeDeleted" ) ; synchronized ( _anycastInputHandlers ) { _toBeDeleted = true ; } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "setToBeDe... | Method to indicate that the destination has been deleted | 106 | 9 |
163,670 | private boolean isInternalUnprotectedMethod ( EJBMethodMetaData methodMetaData ) { EJBMethodInterface interfaceType = methodMetaData . getEJBMethodInterface ( ) ; /*** * For TIMED_OBJECT, the code references EJB 2.1 spec section 22.2.2 and matches a * method signature, which is necessary but not sufficient. As of EJB 3... | Check if the methodMetaData interface is internal and supposed to be unprotected as per spec . | 717 | 18 |
163,671 | public JWTTokenValidationFailedException errorCommon ( boolean bTrError , TraceComponent tc , String [ ] msgCodes , Object [ ] objects ) throws JWTTokenValidationFailedException { int msgIndex = 0 ; if ( ! TYPE_ID_TOKEN . equals ( this . getTokenType ( ) ) ) { msgIndex = 1 ; } return errorCommon ( bTrError , tc , msgCo... | do not override | 101 | 3 |
163,672 | static JSBoxedListImpl create ( JSVaryingList subList , int subAccessor ) { if ( subList . getIndirection ( ) > 0 ) return new JSIndirectBoxedListImpl ( subList , subAccessor ) ; else return new JSBoxedListImpl ( subList , subAccessor ) ; } | kind of constructor . | 71 | 4 |
163,673 | public Object get ( int accessor ) { try { return ( ( JMFNativePart ) subList . getValue ( accessor ) ) . getValue ( subAccessor ) ; } catch ( JMFException ex ) { FFDCFilter . processException ( ex , "get" , "129" , this ) ; return null ; } } | thrown ) . | 72 | 4 |
163,674 | protected void setCredentials ( Subject subject , String securityName , String urAuthenticatedId ) throws Exception { // Principal principal = new WSPrincipal(securityName, accessId, authMethod); if ( urAuthenticatedId != null && ! urAuthenticatedId . equals ( securityName ) ) { Hashtable < String , String > subjectHas... | Set the relevant Credentials for this login module into the Subject and set the credentials for the determined accessId . | 158 | 23 |
163,675 | protected void updateSubjectWithSharedStateContents ( ) { subject . getPrincipals ( ) . add ( ( WSPrincipal ) sharedState . get ( Constants . WSPRINCIPAL_KEY ) ) ; subject . getPublicCredentials ( ) . add ( sharedState . get ( Constants . WSCREDENTIAL_KEY ) ) ; if ( sharedState . get ( Constants . WSSSOTOKEN_KEY ) != n... | Sets the original subject with the shared state contents . | 133 | 11 |
163,676 | void setUpSubject ( final String securityName , final String accessId , final String authMethod ) throws LoginException { // Populate a temporary subject in response to a successful authentication. // We use a temporary Subject because if something goes wrong in this flow, // we are not updating the "live" Subject. try... | Common Subject set up . Guarantees an atomic commit to the subject passed in via initialization . | 274 | 18 |
163,677 | protected void payloadWritten ( int payloadSize ) { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "payloadWritten" , new Object [ ] { this , payloadSize } ) ; _unwrittenDataSize . addAndGet ( - payloadSize ) ; if ( tc . isDebugEnabled ( ) ) Tr . debug ( tc , "unwrittenDataSize = " + _unwrittenDataSize . get ( ) + " ... | Informs the recovery log that previously unwritten data has been written to disk by one of its recoverable units and no longer needs to be tracked in the unwritten data field . The recovery log must use the supplied information to track the amount of unwritten active data it holds . | 130 | 56 |
163,678 | protected void payloadDeleted ( int totalPayloadSize , int unwrittenPayloadSize ) { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "payloadDeleted" , new Object [ ] { this , totalPayloadSize , unwrittenPayloadSize } ) ; _unwrittenDataSize . addAndGet ( - unwrittenPayloadSize ) ; synchronized ( this ) { _totalDataSize... | Informs the recovery log that data has been removed from one of its recoverable units . Right now this means that a recoverable unit and all its content has been removed but in the future this will also be driven when a single recoverable unit section within a recoverable unit has been removed . The recovery log must u... | 169 | 110 |
163,679 | protected void addRecoverableUnit ( RecoverableUnit recoverableUnit , boolean recovered ) { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "addRecoverableUnit" , new Object [ ] { recoverableUnit , recovered , this } ) ; final long identity = recoverableUnit . identity ( ) ; _recoverableUnits . put ( identity , recove... | Adds a new RecoverableUnitImpl object keyed from its identity to this classes collection of such objects . | 134 | 21 |
163,680 | protected RecoverableUnitImpl removeRecoverableUnitMapEntries ( long identity ) { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "removeRecoverableUnitMapEntries" , new Object [ ] { identity , this } ) ; final RecoverableUnitImpl recoverableUnit = ( RecoverableUnitImpl ) _recoverableUnits . remove ( identity ) ; if (... | Removes a RecoverableUnitImpl object keyed from its identity from this classes collection of such objects . | 143 | 21 |
163,681 | protected RecoverableUnitImpl getRecoverableUnit ( long identity ) { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "getRecoverableUnit" , new Object [ ] { identity , this } ) ; RecoverableUnitImpl recoverableUnit = null ; // Only attempt to resolve the recoverable unit if the log is compatible and valid. if ( ! inco... | Retrieves a RecoverableUnitImpl object keyed from its identity from this classes collection of such objects . | 148 | 22 |
163,682 | @ Override public void associateLog ( DistributedRecoveryLog otherLog , boolean failAssociatedLog ) { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "associateLog" , new Object [ ] { otherLog , failAssociatedLog , this } ) ; if ( otherLog instanceof MultiScopeLog ) { _associatedLog = ( MultiScopeLog ) otherLog ; _fai... | Associates another log with this one . PI45254 . The code is protects against infinite recursion since associated logs are only marked as failed if the log isn t already mark as failed . The code does NOT protect against deadlock due to synchronization for logA - > logB and logB - > logA - this is not an issue since fa... | 117 | 108 |
163,683 | public Class getDiscriminatoryDataType ( ) { if ( tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "getDiscriminatorDataType" ) ; if ( tc . isEntryEnabled ( ) ) SibTr . exit ( this , tc , "getDiscriminatorDataType" ) ; return com . ibm . wsspi . bytebuffer . WsByteBuffer . class ; // F188491 } | Returns the data type this discriminator is able to discriminate for . This is always WsByteBuffer . | 96 | 21 |
163,684 | public Channel getChannel ( ) { if ( tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "getChannel" ) ; if ( tc . isEntryEnabled ( ) ) SibTr . exit ( this , tc , "getChannel" , channel ) ; return channel ; } | Returns the channel this discriminator discriminates on behalf of . | 65 | 12 |
163,685 | public int getWeight ( ) { if ( tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "getWeight" ) ; if ( tc . isEntryEnabled ( ) ) SibTr . exit ( this , tc , "getWeight" ) ; // TODO: this probably isn't a good value. return 0 ; } | Get the weighting to use for this discriminator | 75 | 10 |
163,686 | protected synchronized void join ( SIXAResource resource ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "join" , resource ) ; resourcesJoinedToThisResource . add ( resource ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . ... | Called when another XAResource is joining to us . | 99 | 13 |
163,687 | protected synchronized void unjoin ( SIXAResource resource ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "unjoin" , resource ) ; resourcesJoinedToThisResource . remove ( resource ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) S... | Called when another instance is un - joining from us . | 102 | 12 |
163,688 | protected void updatedSslSupport ( SSLSupport service , Map < String , Object > props ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { Tr . entry ( tc , "updatedSslSupport" , props ) ; } sslSupport = service ; // If the default pid has changed.. we need to go hunting for who was using th... | This is called if the service is updated . | 208 | 9 |
163,689 | public static JSSEProvider getJSSEProvider ( ) { SSLChannelProvider p = instance . get ( ) ; if ( p != null ) return p . sslSupport . getJSSEProvider ( ) ; throw new IllegalStateException ( "Requested service is null: no active component instance" ) ; } | Access the JSSE provider factory service . | 64 | 8 |
163,690 | public static JSSEHelper getJSSEHelper ( ) { SSLChannelProvider p = instance . get ( ) ; if ( p != null ) return p . sslSupport . getJSSEHelper ( ) ; throw new IllegalStateException ( "Requested service is null: no active component instance" ) ; } | Access the JSSEHelper service . | 64 | 7 |
163,691 | public static DateFormat getBasicDateFormatter ( ) { // PK42263 - made static // Retrieve a standard Java DateFormat object with desired format, using default locale return customizeDateFormat ( DateFormat . getDateTimeInstance ( DateFormat . SHORT , DateFormat . MEDIUM ) , false ) ; } | Return a DateFormat object that can be used to format timestamps in the System . out System . err and TraceOutput logs . It will use the default date format . | 65 | 35 |
163,692 | public static DateFormat customizeDateFormat ( DateFormat formatter , boolean isoDateFormat ) { String pattern ; int patternLength ; int endOfSecsIndex ; if ( ! ! ! isoDateFormat ) { if ( formatter instanceof SimpleDateFormat ) { // Retrieve the pattern from the formatter, since we will need to modify it. SimpleDateFor... | Modifies an existing DateFormat object so that it can be used to format timestamps in the System . out System . err and TraceOutput logs using either default date and time format or ISO - 8601 date and time format | 397 | 46 |
163,693 | private void setAndValidateProperties ( String cfgAuthentication , String cfgAuthorization , String cfgUserRegistry ) { if ( ( cfgAuthentication == null ) || cfgAuthentication . isEmpty ( ) ) { throwIllegalArgumentExceptionMissingAttribute ( CFG_KEY_AUTHENTICATION_REF ) ; } this . cfgAuthenticationRef = cfgAuthenticati... | Sets and validates the configuration properties . If any of the configuration properties are not set an IllegalArgumentException is thrown . | 210 | 26 |
163,694 | @ Reference ( policy = ReferencePolicy . DYNAMIC , cardinality = ReferenceCardinality . OPTIONAL ) protected synchronized void setServerStarted ( ServerStarted serverStarted ) { isServerStarted = true ; // Start SystemModule if everything else is ready startManagementEJB ( ) ; } | Declarative services method that is invoked once the ServerStarted service is available . Only after this method is invoked is the Management EJB system module started . | 65 | 32 |
163,695 | public HashMap < String , Object > saveContextData ( ) { HashMap < String , Object > contextData = new HashMap < String , Object > ( ) ; //Save off the data from the other components we have hooks into ComponentMetaDataAccessorImpl cmdai = ComponentMetaDataAccessorImpl . getComponentMetaDataAccessor ( ) ; ComponentMeta... | Save off the context data for the current thread | 346 | 9 |
163,696 | @ Override public Subject finalizeSubject ( Subject subject , ConnectionRequestInfo reqInfo , CMConfigData cmConfigData ) throws ResourceException { final boolean isTracingEnabled = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTracingEnabled && tc . isEntryEnabled ( ) ) { Tr . entry ( this , tc , "finalizeSubject"... | The finalizeSubject method is used to set what the final Subject will be for processing . | 120 | 18 |
163,697 | public Entry remove ( Entry removePointer ) { if ( tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "remove" , new Object [ ] { removePointer } ) ; Entry removedEntry = null ; //check that the entry to be removed is not null and is in this list if ( contains ( removePointer ) ) { //call the internal unsynchronized remove... | Synchronized . Remove an Entry from the list . | 393 | 11 |
163,698 | public Entry getFirst ( ) { if ( tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "getFirst" ) ; if ( tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "getFirst" , first ) ; return first ; } | Synchronized . Get the first entry in the list . | 61 | 12 |
163,699 | public Entry getLast ( ) { if ( tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , "getLast" ) ; SibTr . exit ( tc , "getLast" , last ) ; } return last ; } | Synchronized . Get the last entry in the list . | 53 | 12 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.