idx int64 0 165k | question stringlengths 73 5.81k | target stringlengths 5 918 |
|---|---|---|
163,300 | private final JsMessage createSpecialisedMessage ( JsMsgObject jmo ) { JsMessage message = null ; if ( jmo . getChoiceField ( JsHdrAccess . API ) == JsHdrAccess . IS_API_DATA ) { if ( jmo . getField ( JsHdrAccess . MESSAGETYPE ) . equals ( MessageType . JMS . toByte ( ) ) ) { message = getJmsFactory ( ) . createInbound... | Returns a new JsMessage instance of the subclass appropriate to the message content . |
163,301 | private int bytesToInt ( byte [ ] bytes ) { int result = - 1 ; if ( bytes . length >= 4 ) { result = ( ( bytes [ 0 ] & 0xff ) << 24 ) + ( ( bytes [ 1 ] & 0xff ) << 16 ) + ( ( bytes [ 2 ] & 0xff ) << 8 ) + ( bytes [ 3 ] & 0xff ) ; } return result ; } | A helper function which extracts an int from a byte array representation |
163,302 | private String getTopic ( ServiceEvent serviceEvent ) { StringBuilder topic = new StringBuilder ( SERVICE_EVENT_TOPIC_PREFIX ) ; switch ( serviceEvent . getType ( ) ) { case ServiceEvent . REGISTERED : topic . append ( "REGISTERED" ) ; break ; case ServiceEvent . MODIFIED : topic . append ( "MODIFIED" ) ; break ; case ... | Determine the appropriate topic to use for the Service Event . |
163,303 | public synchronized void updateFilters ( NotificationFilter [ ] filtersArray ) { filters . clear ( ) ; if ( filtersArray != null ) Collections . addAll ( filters , filtersArray ) ; } | Override the list of filters with given array . |
163,304 | public synchronized boolean isNotificationEnabled ( Notification notification ) { if ( filters . isEmpty ( ) ) { return true ; } final Iterator < NotificationFilter > i = filters . iterator ( ) ; while ( i . hasNext ( ) ) { if ( i . next ( ) . isNotificationEnabled ( notification ) ) { return true ; } } return false ; ... | Handle notification filtering according to stored filters . |
163,305 | public Boolean getApplicationExceptionRollback ( Throwable t ) { Class < ? > klass = t . getClass ( ) ; ApplicationException ae = getApplicationException ( klass ) ; Boolean rollback = null ; if ( ae != null ) { rollback = ae . rollback ( ) ; } else if ( ! ContainerProperties . EE5Compatibility ) { if ( TraceComponent ... | Gets the application exception and rollback status of the specified exception . |
163,306 | private ApplicationException getApplicationException ( Class < ? > klass ) { ApplicationException result = null ; if ( ivApplicationExceptionMap != null ) { result = ivApplicationExceptionMap . get ( klass . getName ( ) ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) && result != null ) { T... | Gets the application exception status of the specified exception class from either the deployment descriptor or from the annotation . |
163,307 | public ComponentMetaData [ ] getComponentMetaDatas ( ) { ComponentMetaData [ ] initializedComponentMetaDatas = null ; synchronized ( ivEJBApplicationMetaData ) { initializedComponentMetaDatas = new ComponentMetaData [ ivNumFullyInitializedBeans ] ; int i = 0 ; for ( BeanMetaData bmd : ivBeanMetaDatas . values ( ) ) { i... | Return an Array of fully initialized ComponentMetaDatas for this modules . |
163,308 | public String toDumpString ( ) { String newLine = AccessController . doPrivileged ( new SystemGetPropertyPrivileged ( "line.separator" , "\n" ) ) ; StringBuilder sb = new StringBuilder ( toString ( ) ) ; String indent = " " ; sb . append ( newLine + newLine + "--- Dump EJBModuleMetaDataImpl fields ---" ) ; if ( ivNam... | Return a String with EJB Container s module level runtime config data |
163,309 | public void addApplicationEventListener ( EJBApplicationEventListener listener ) { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isDebugEnabled ( ) ) Tr . debug ( tc , "addApplicationEventListener: " + listener ) ; if ( ivApplicationEventListeners == null ) { ivApplicationE... | Adds a new application even listener to be notified when an application has fully started or will begin stopping . |
163,310 | public void addAutomaticTimerBean ( AutomaticTimerBean timerBean ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) Tr . debug ( tc , "addAutomaticTimerBean: " + timerBean . getBeanMetaData ( ) . j2eeName ) ; if ( ivAutomaticTimerBeans == null ) { ivAutomaticTimerBeans = new ArrayList < Auto... | Adds a list of timer method metadata for a bean belonging to this application . This method will only be called for beans that contain automatic timers . |
163,311 | public void freeResourcesAfterAllBeansInitialized ( BeanMetaData bmd ) { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "freeResourcesAfterAllBeansInitialized: " + bmd . j2eeName + ", " + ( ivNumFullyInitializedBeans + 1 ) + "/" + ivBea... | d462512 - log orphan warning message . |
163,312 | public void setVersionedModuleBaseName ( String appBaseName , String modBaseName ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) Tr . debug ( tc , "ModuleName = " + ivName + ", VersionedBaseName = " + appBaseName + "#" + modBaseName ) ; if ( ivInitData == null ) { throw new IllegalStateEx... | F54184 F54184 . 2 |
163,313 | private void addElement ( String value ) { if ( null == value ) { return ; } this . num_items ++ ; this . genericValues . add ( value ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "addElement: " + value + " num: " + this . num_items ) ; } } | Add the given element to the generic no - key storage . The value must be in lowercase form by the time of this call . |
163,314 | private void addElement ( String key , String value ) { this . num_items ++ ; List < String > vals = this . values . get ( key ) ; if ( null == vals ) { vals = new LinkedList < String > ( ) ; } if ( null == value ) { vals . add ( "\"\"" ) ; } else { vals . add ( value ) ; } this . values . put ( key , vals ) ; if ( Tra... | Add the given key = value pair into storage . Both key and value must be in lowercase form . If this key already exists then this value will be appended to the existing values . |
163,315 | private void parse ( String input ) { char [ ] data = input . toCharArray ( ) ; int start = 0 ; int hard_stop = data . length - 1 ; while ( start < data . length ) { if ( this . mySep == data [ start ] ) { start ++ ; continue ; } int end = start ; String key = null ; boolean insideQuotes = false ; while ( end < data . ... | Parse the input string for all value possibilities . |
163,316 | private String extractString ( char [ ] data , int start , int end ) { while ( start < end && ( ' ' == data [ start ] || '\t' == data [ start ] || '"' == data [ start ] ) ) { start ++ ; } while ( end >= start && ( ' ' == data [ end ] || '\t' == data [ end ] || '"' == data [ end ] ) ) { end -- ; } if ( end < start ) { r... | Extract a string from the input array based on the start and end markers . This will strip off any leading and trailing white space or quotes . |
163,317 | public boolean add ( String inputValue ) { String value = Normalizer . normalize ( inputValue , Normalizer . NORMALIZE_LOWER ) ; if ( ! contains ( this . genericValues , value ) ) { addElement ( value ) ; return true ; } return false ; } | Add the generic value to this handler with no required key . |
163,318 | public boolean add ( String inputKey , String inputValue ) { String key = Normalizer . normalize ( inputKey , Normalizer . NORMALIZE_LOWER ) ; String value = Normalizer . normalize ( inputValue , Normalizer . NORMALIZE_LOWER ) ; if ( ! contains ( this . values . get ( key ) , value ) ) { addElement ( key , value ) ; re... | Add the given key = value pair to this handler . |
163,319 | private boolean remove ( List < String > list , String item ) { if ( null != list ) { if ( list . remove ( item ) ) { this . num_items -- ; return true ; } } return false ; } | Remove the given item from the input list if present and update the item counter appropriately . |
163,320 | public boolean remove ( String inputKey , String inputValue ) { String key = Normalizer . normalize ( inputKey , Normalizer . NORMALIZE_LOWER ) ; String value = Normalizer . normalize ( inputValue , Normalizer . NORMALIZE_LOWER ) ; boolean rc = remove ( this . values . get ( key ) , value ) ; if ( TraceComponent . isAn... | Remove this specific key = value pair from storage . If this key exists with other values then those will not be touched only the target value . |
163,321 | public boolean remove ( String inputValue ) { String value = Normalizer . normalize ( inputValue , Normalizer . NORMALIZE_LOWER ) ; boolean rc = remove ( this . genericValues , value ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "remove: " + value + " rc=" + rc ) ; }... | Remove the target value from the generic no - key storage . |
163,322 | public int removeKey ( String inputKey ) { String key = Normalizer . normalize ( inputKey , Normalizer . NORMALIZE_LOWER ) ; int num_removed = 0 ; List < String > vals = this . values . remove ( key ) ; if ( null != vals ) { num_removed = vals . size ( ) ; } this . num_items -= num_removed ; if ( TraceComponent . isAny... | Remove an entire key from storage regardless of how many values it may contain . |
163,323 | private boolean contains ( List < String > list , String item ) { return ( null == list ) ? false : list . contains ( item ) ; } | Query whether the target list contains the item . |
163,324 | public boolean containsKey ( String inputKey ) { String key = Normalizer . normalize ( inputKey , Normalizer . NORMALIZE_LOWER ) ; List < String > list = this . values . get ( key ) ; boolean rc = ( null == list ) ? false : ! list . isEmpty ( ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ... | Query whether the target key exists with any values in this handler . |
163,325 | public Iterator < String > getValues ( String inputKey ) { String key = Normalizer . normalize ( inputKey , Normalizer . NORMALIZE_LOWER ) ; List < String > vals = this . values . get ( key ) ; if ( null != vals ) { return vals . iterator ( ) ; } return new LinkedList < String > ( ) . iterator ( ) ; } | Access an iterator of all values for the target key . |
163,326 | public String marshall ( ) { if ( 0 == this . num_items ) { return "" ; } boolean shouldPrepend = false ; StringBuilder output = new StringBuilder ( 10 * this . num_items ) ; Iterator < String > i = this . genericValues . iterator ( ) ; while ( i . hasNext ( ) ) { if ( shouldPrepend ) { output . append ( this . mySep )... | Take the current data in this handler and create the properly formatted string that would represent the header . |
163,327 | public void clear ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "Clearing this header handler: " + this ) ; } this . num_items = 0 ; this . values . clear ( ) ; this . genericValues . clear ( ) ; } | Clear everything out of storage for this handler . |
163,328 | protected void proddle ( ) throws SIConnectionDroppedException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "proddle" ) ; boolean useThisThread = false ; synchronized ( priorityQueue ) { synchronized ( this ) { if ( idle ) { useThisThread = isWorkAvailable ( )... | being F176003 F181603 . 2 D192359 |
163,329 | public void complete ( NetworkConnection vc , IOWriteRequestContext wctx ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "complete" , new Object [ ] { vc , wctx } ) ; if ( connection . isLoggingIOEvents ( ) ) connection . getConnectionEventRecorder ( ) . logDeb... | begin F181603 . 2 D192359 |
163,330 | private void doWork ( boolean hasWritten ) throws SIConnectionDroppedException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "doWork" , Boolean . valueOf ( hasWritten ) ) ; final BlockingQueue < Pair < SendListener , Conversation > > readySendCallbacks = new Li... | Looks to initiate write operations to write all available data from the priority queue to the network . Continues until all data has been sent or until the return from a write call indicates its completion will be asynchronous . Once it has finished writing on this thread calls the registered send listeners for all mes... |
163,331 | private void notifyReadySendListeners ( BlockingQueue < Pair < SendListener , Conversation > > readySendCallbacks ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "notifyReadySendListeners" , readySendCallbacks ) ; try { for ( Pair < SendListener , Conversation ... | Call send listener callback for each entry in the given queue . Any exception thrown from a listener s callback will cause the connection to be invalidated . |
163,332 | private boolean switchToIdle ( ) throws SIConnectionDroppedException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "switchToIdle" ) ; final boolean noMoreWork ; synchronized ( priorityQueue ) { synchronized ( this ) { noMoreWork = ! isWorkAvailable ( ) ; idle =... | Switch the idle flag back to true provided that there is no work available . |
163,333 | private WsByteBuffer getWriteContextBuffer ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "getWriteContextBuffer" ) ; WsByteBuffer writeBuffer = getSoleWriteContextBuffer ( ) ; if ( firstInvocation . compareAndSet ( true , false ) || ( writeBuffer == null ) ... | Returns the single WsByteBuffer set in writeCtx ensuring that it is a direct byte buffer and is of sufficient capacity . |
163,334 | private WsByteBuffer getSoleWriteContextBuffer ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "getSoleWriteContextBuffer" ) ; WsByteBuffer writeBuffer = null ; final WsByteBuffer [ ] writeBuffers = writeCtx . getBuffers ( ) ; if ( writeBuffers != null ) { fi... | Returns the first WsByteBuffer set in writeCtx ensuring that it is the sole byte buffer set in writeCtx and releasing any other byte buffers that had been registered there . |
163,335 | protected void physicalCloseNotification ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "physicalCloseNotification" ) ; synchronized ( connectionClosedLock ) { connectionClosed = true ; } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled (... | Register notification that the physical underlying connection has been closed . |
163,336 | private boolean isWorkAvailable ( ) throws SIConnectionDroppedException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "isWorkAvailable" ) ; final boolean isWork ; if ( terminate ) { isWork = false ; } else { isWork = ( partiallySentTransmission != null ) || ! p... | Returns true iff there is more work available to be processed . |
163,337 | public static boolean addWarToServer ( LibertyServer targetServer , String targetDir , String warName , String [ ] warPackageNames , boolean addWarResources ) throws Exception { String earName = null ; boolean addEarResources = DO_NOT_ADD_RESOURCES ; String jarName = null ; boolean addJarResources = DO_NOT_ADD_RESOURCE... | Package a WAR and add it to a server . |
163,338 | public static boolean addToServer ( LibertyServer targetServer , String targetDir , String earName , boolean addEarResources , String warName , String [ ] warPackageNames , boolean addWarResources , String jarName , String [ ] jarPackageNames , boolean addJarResources ) throws Exception { if ( warName == null ) { throw... | Conditionally package a JAR WAR and EAR and add them to a server . |
163,339 | public boolean couldContainAnnotationsOnClassDef ( DataInput in , Set < String > byteCodeAnnotationsNames ) throws IOException { int magic = in . readInt ( ) ; if ( magic != 0xCAFEBABE ) { return false ; } int minorVersion = in . readUnsignedShort ( ) ; int majorVersion = in . readUnsignedShort ( ) ; if ( majorVersion ... | Checks if the . class file referenced by the DataInput could contain the annotation names available in the set . |
163,340 | public Properties getProperties ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) Tr . debug ( tc , "getProperties" ) ; return this . sslProperties ; } | Access the current properties for this context . |
163,341 | public void setProperties ( Properties sslProps ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) Tr . debug ( tc , "setProperties" ) ; this . sslProperties = sslProps ; } | Set the properties for this thread context . |
163,342 | public boolean getSetSignerOnThread ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) Tr . debug ( tc , "getSetSignerOnThread: " + this . setSignerOnThread ) ; return this . setSignerOnThread ; } | Query whether the signer flag is set on this context . |
163,343 | public boolean getAutoAcceptBootstrapSigner ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) Tr . debug ( tc , "getAutoAcceptBootstrapSigner: " + this . autoAcceptBootstrapSigner ) ; return this . autoAcceptBootstrapSigner ; } | Query whether the autoaccept bootstrap signer flag is set on this context . |
163,344 | public Map < String , Object > getInboundConnectionInfo ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) Tr . debug ( tc , "getInboundConnectionInfo" ) ; return this . inboundConnectionInfo ; } | Access the inbound connection info object for this context . |
163,345 | public void setAutoAcceptBootstrapSigner ( boolean flag ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) Tr . debug ( tc , "setAutoAcceptBootstrapSigner -> " + flag ) ; this . autoAcceptBootstrapSigner = flag ; } | Set the autoaccept bootstrap signer flag on this context to the input value . |
163,346 | public boolean getAutoAcceptBootstrapSignerWithoutStorage ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) Tr . debug ( tc , "getAutoAcceptBootstrapSignerWithoutStorage: " + this . autoAcceptBootstrapSignerWithoutStorage ) ; return this . autoAcceptBootstrapSignerWithoutStorage ; } | Query whether the autoaccept bootstrap signer without storage flag is set on this context . |
163,347 | public void setAutoAcceptBootstrapSignerWithoutStorage ( boolean flag ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) Tr . debug ( tc , "setAutoAcceptBootstrapSignerWithoutStorage -> " + flag ) ; this . autoAcceptBootstrapSignerWithoutStorage = flag ; } | Set the autoaccept bootstrap signer without storage flag to the input value . |
163,348 | public void setSetSignerOnThread ( boolean flag ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) Tr . debug ( tc , "setSetSignerOnThread: " + flag ) ; this . setSignerOnThread = flag ; } | Set the signer flag on this context to the input value . |
163,349 | public X509Certificate [ ] getSignerChain ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) Tr . debug ( tc , "getSignerChain" ) ; return signer == null ? null : signer . clone ( ) ; } | Query the signer chain set on this context . |
163,350 | public void setSignerChain ( X509Certificate [ ] signerChain ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) Tr . debug ( tc , "setSignerChain" ) ; this . signer = signerChain == null ? null : signerChain . clone ( ) ; } | Set the signer chain on this context to the input value . |
163,351 | public void setInboundConnectionInfo ( Map < String , Object > connectionInfo ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) Tr . debug ( tc , "setInboundConnectionInfo" ) ; this . inboundConnectionInfo = connectionInfo ; } | Set the inbound connection info on this context to the input value . |
163,352 | public Map < String , Object > getOutboundConnectionInfo ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) Tr . debug ( tc , "getOutboundConnectionInfo" ) ; return this . outboundConnectionInfo ; } | Query the outbound connection info map of this context . |
163,353 | public void setOutboundConnectionInfo ( Map < String , Object > connectionInfo ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) Tr . debug ( tc , "setOutboundConnectionInfo" ) ; this . outboundConnectionInfo = connectionInfo ; } | Set the outbound connection info of this context to the input value . |
163,354 | public Map < String , Object > getOutboundConnectionInfoInternal ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) Tr . debug ( tc , "getOutboundConnectionInfoInternal" ) ; return this . outboundConnectionInfoInternal ; } | Get the internal outbound connection info object for this context . |
163,355 | public void setOutboundConnectionInfoInternal ( Map < String , Object > connectionInfo ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) Tr . debug ( tc , "setOutboundConnectionInfoInternal :" + connectionInfo ) ; this . outboundConnectionInfoInternal = connectionInfo ; } | Set the internal outbound connection info object for this context . |
163,356 | protected byte [ ] serializeObject ( Serializable theObject ) throws IOException { ByteArrayOutputStream baos = new ByteArrayOutputStream ( ) ; ObjectOutputStream oout = new ObjectOutputStream ( baos ) ; oout . writeObject ( theObject ) ; byte [ ] data = baos . toByteArray ( ) ; baos . close ( ) ; oout . close ( ) ; re... | This method is used to serialized an object saved into a table BLOB field . |
163,357 | public void setPuName ( String puName ) { if ( ivPuName == null || ivPuName . length ( ) == 0 ) { ivPuName = puName ; reComputeHashCode ( ) ; } } | Persistence unit name setter . |
163,358 | private void reComputeHashCode ( ) { ivCurHashCode = ( ivAppName != null ? ivAppName . hashCode ( ) : 0 ) + ( ivModJarName != null ? ivModJarName . hashCode ( ) : 0 ) + ( ivPuName != null ? ivPuName . hashCode ( ) : 0 ) ; } | Compute and cache the current hashCode . |
163,359 | public ChildChannelDataImpl createChild ( ) { String childName = this . name + CHILD_STRING + nextChildId ( ) ; ChildChannelDataImpl child = new ChildChannelDataImpl ( childName , this ) ; this . children . add ( child ) ; return child ; } | Create a child data object . Add it to the list of children and return it . |
163,360 | private static ReadableLogRecord read ( ByteBuffer viewBuffer , long expectedSequenceNumber , ByteBuffer sourceBuffer ) { ReadableLogRecord logRecord = null ; int absolutePosition = sourceBuffer . position ( ) + viewBuffer . position ( ) ; final byte [ ] magicNumberBuffer = new byte [ RECORD_MAGIC_NUMBER . length ] ; v... | careful with trace in this method as it is called many times from doByteByByteScanning |
163,361 | private static ReadableLogRecord doByteByByteScanning ( ByteBuffer sourceBuffer , long expectedSequenceNumber ) { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "doByteByByteScanning" , new Object [ ] { sourceBuffer , new Long ( expectedSequenceNumber ) } ) ; ReadableLogRecord logRecord = null ; ByteBuffer viewBuffer... | careful with trace in this methods loop |
163,362 | public synchronized boolean add ( String key , T value ) { if ( key . length ( ) > 3 && key . endsWith ( WILDCARD ) && key . charAt ( key . length ( ) - 2 ) != '.' ) { throw new IllegalArgumentException ( "Unsupported use of wildcard in key " + key ) ; } Node < T > current = internalFind ( key , false ) ; if ( current ... | Add a new value using the given key . |
163,363 | public void compact ( ) { for ( NodeIterator < T > i = this . getNodeIterator ( ) ; i . hasNext ( ) ; ) { NodeIndex < T > n = i . next ( ) ; if ( n . node . exactKids != null ) n . node . exactKids . trimToSize ( ) ; } } | Compact any empty space after a read - only trie has been constructed |
163,364 | public String dump ( ) { StringBuilder s = new StringBuilder ( ) ; int c = 0 ; s . append ( nl ) ; for ( NodeIterator < T > i = this . getNodeIterator ( null ) ; i . hasNext ( ) ; ) { NodeIndex < T > n = i . next ( ) ; c ++ ; s . append ( '\t' ) . append ( n . pkg ) . append ( " = " ) . append ( n . node . getValue ( )... | Debugging during test dump for FFDC |
163,365 | NodeIterator < T > getNodeIterator ( Filter < T > filter ) { return new NodeIterator < T > ( root , filter , true ) ; } | Get an internal iterator for nodes that allows filtering based on packages or values . |
163,366 | public void modifed ( ServiceReference < ResourceFactory > ref ) { String [ ] newInterfaces = getServiceInterfaces ( ref ) ; if ( ! Arrays . equals ( interfaces , newInterfaces ) ) { unregister ( ) ; register ( ref , newInterfaces ) ; } else { registration . setProperties ( getServiceProperties ( ref ) ) ; } } | Notification that the properties for the ResourceFactory changed . |
163,367 | public List < PersistenceProvider > getPersistenceProviders ( ) { ClassLoader cl = PrivClassLoader . get ( null ) ; if ( cl == null ) { cl = PrivClassLoader . get ( HybridPersistenceActivator . class ) ; } List < PersistenceProvider > nonOSGiProviders = providerCache . get ( cl ) ; if ( nonOSGiProviders == null ) { non... | This method returns a combination of those persistence providers available from the application classloader in addition to those in the OSGi service registry . OSGi providers are not cached and should not be cached because bundles can be moved in and out of the system and it is the job of the the service tracker to mai... |
163,368 | public boolean add ( Object o ) { ConnectorProperty connectorPropertyToAdd = ( ConnectorProperty ) o ; String nameToAdd = connectorPropertyToAdd . getName ( ) ; ConnectorProperty connectorProperty = null ; String name = null ; Enumeration < Object > e = this . elements ( ) ; while ( e . hasMoreElements ( ) ) { connecto... | override the Vector add method to not add duplicate entries . That is entries with the same name . |
163,369 | public String findConnectorPropertyString ( String desiredPropertyName , String defaultValue ) { String retVal = defaultValue ; String name = null ; ConnectorProperty property = null ; Enumeration < Object > e = this . elements ( ) ; while ( e . hasMoreElements ( ) ) { property = ( ConnectorProperty ) e . nextElement (... | Given this ConnectorProperties Vector find the String identified by the input desiredPropertyName . If not found return the defaultValue . |
163,370 | public void handleMessage ( MessageItem msgItem ) throws SIResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "handleMessage" , new Object [ ] { msgItem } ) ; JsMessage jsMsg = msgItem . getMessage ( ) ; int priority = jsMsg . getPriority ( ) . int... | Handle a new message by inserting it in to the appropriate target stream . If the stream ID in the message is a new one a flush query will be sent to the source . If the ID has been seen before but the specific stream is not found a new one will be created and added to the stream set . |
163,371 | public void handleSilence ( MessageItem msgItem ) throws SIResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "handleSilence" , new Object [ ] { msgItem } ) ; JsMessage jsMsg = msgItem . getMessage ( ) ; int priority = jsMsg . getPriority ( ) . int... | Handle a filtered message by inserting it in to the appropriate target stream as Silence . Since we only need to do this on exisiting TargetStreams if the streamSet or stream are null we give up |
163,372 | private void handleNewStreamID ( ControlMessage cMsg ) throws SIResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "handleNewStreamID" , new Object [ ] { cMsg } ) ; handleNewStreamID ( cMsg , null ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . ... | Handle a new stream ID from a control message |
163,373 | private void handleNewStreamID ( AbstractMessage aMessage , MessageItem msgItem ) throws SIResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "handleNewStreamID" , new Object [ ] { aMessage , msgItem } ) ; SIBUuid12 streamID = aMessage . getGuaranteedStre... | Handle a new stream ID and cache a MessageItem for replay later . msgItem can be null for example if this was triggered by a control message . |
163,374 | private StreamSet addNewStreamSet ( SIBUuid12 streamID , SIBUuid8 sourceMEUuid , SIBUuid12 remoteDestUuid , SIBUuid8 remoteBusUuid , String linkTarget ) throws SIRollbackException , SIConnectionLostException , SIIncorrectCallException , SIResourceException , SIErrorException { if ( TraceComponent . isAnyTracingEnabled ... | Create a new StreamSet for a given streamID and sourceCellule . |
163,375 | private TargetStream createStream ( StreamSet streamSet , int priority , Reliability reliability , long completedPrefix ) throws SIResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "createStream" , new Object [ ] { streamSet , Integer . valueOf ( priorit... | Create a new TargetStream and initialize it with a given completed prefix . Always called with streamSet lock |
163,376 | private TargetStream createStream ( StreamSet streamSet , int priority , Reliability reliability ) throws SIResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "createStream" , new Object [ ] { streamSet , Integer . valueOf ( priority ) , reliability } ) ;... | Create a new TargetStream in the given StreamSet |
163,377 | public void handleFlushedMessage ( ControlFlushed cMsg ) throws SIResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "handleFlushedMessage" , new Object [ ] { cMsg } ) ; SIBUuid12 streamID = cMsg . getGuaranteedStreamUUID ( ) ; forceFlush ( streamI... | Handle a ControlFlushed message . Flush any existing streams and throw away any cached messages . |
163,378 | public void forceFlush ( SIBUuid12 streamID ) throws SIResourceException , SIResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "forceFlush" , new Object [ ] { streamID } ) ; synchronized ( flushMap ) { FlushQueryRecord entry = flushMap . remove ( ... | Flush any existing streams and throw away any cached messages . |
163,379 | public void requestFlushAtSource ( SIBUuid8 source , SIBUuid12 destID , SIBUuid8 busID , SIBUuid12 stream , boolean indoubtDiscard ) throws SIException , SIResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "requestFlushAtSource" , new Object [ ] {... | Send a request to flush a stream . The originator of the stream and the ID for the stream must be known . This method is public because it s not clear who s going to call this yet . |
163,380 | public void handleSilenceMessage ( ControlSilence cMsg ) throws SIResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "handleSilenceMessage" , new Object [ ] { cMsg } ) ; int priority = cMsg . getPriority ( ) . intValue ( ) ; Reliability reliability... | Handle a ControlSilence message . |
163,381 | public void reconstituteStreamSet ( StreamSet streamSet ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "reconstituteStreamSet" , streamSet ) ; synchronized ( streamSets ) { streamSets . put ( streamSet . getStreamID ( ) , streamSet ) ; sourceMap . put ( stream... | Restore a StreamSet to a previous state |
163,382 | public void alarm ( Object alarmContext ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "alarm" , alarmContext ) ; SIBUuid12 sid = ( SIBUuid12 ) alarmContext ; synchronized ( flushMap ) { FlushQueryRecord entry = flushMap . get ( sid ) ; if ( entry != null ) { ... | This method is called when an alarm expires for an are you flushed or flush request query . |
163,383 | public boolean isEmpty ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( this , tc , "isEmpty" ) ; SibTr . exit ( tc , "isEmpty" , new Object [ ] { Boolean . valueOf ( streamSets . isEmpty ( ) ) , Boolean . valueOf ( flushedStreamSets . isEmpty ( ) ) , streamSets , this ... | Determine if there are any unflushed target streams to the destination |
163,384 | public void queryUnflushedStreams ( ) throws SIResourceException { synchronized ( streamSets ) { for ( Iterator i = streamSets . iterator ( ) ; i . hasNext ( ) ; ) { StreamSet next = ( StreamSet ) i . next ( ) ; upControl . sendAreYouFlushedMessage ( next . getRemoteMEUuid ( ) , next . getDestUuid ( ) , next . getBusUu... | Sends an are you flushed query to the source of any unflushed streams . We use this to determine when it s safe to delete a destination with possibly indoubt messages . |
163,385 | private boolean validateAutomaticTimer ( BeanMetaData bmd ) { if ( bmd . timedMethodInfos == null || methodId > bmd . timedMethodInfos . length ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) Tr . debug ( tc , "validateAutomaticTimer: ivMethodId=" + methodId + " > " + Arrays . toString ( ... | Validate that the method corresponding to the method ID stored in the database matches the method that was used when the automatic timer was created . For example this validation will fail if the application is changed to remove an automatic timer without clearing the timers from the database . As a prerequisite to cal... |
163,386 | private void writeObject ( ObjectOutputStream out ) throws IOException { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "writeObject: " + this ) ; int version = Constants . TIMER_TASK_V1 ; if ( parsedSchedule != null ) { version = Const... | Write this object to the ObjectOutputStream . |
163,387 | private void readObject ( ObjectInputStream in ) throws IOException , ClassNotFoundException { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "readObject" ) ; in . defaultReadObject ( ) ; byte [ ] eyeCatcher = new byte [ EYECATCHER . le... | Read this object from the ObjectInputStream . |
163,388 | protected BeanMetaData getBeanMetaData ( ) { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "getBeanMetaData: " + this ) ; EJSHome home ; try { home = EJSContainer . getDefaultContainer ( ) . getInstalledHome ( j2eeName ) ; if ( ( home ... | Gets BeanMetaData through EJSHome lookup |
163,389 | private static byte [ ] serializeObject ( Object obj ) { if ( obj == null ) { return null ; } ByteArrayOutputStream baos = new ByteArrayOutputStream ( ) ; try { ObjectOutputStream out = new ObjectOutputStream ( baos ) ; out . writeObject ( obj ) ; out . flush ( ) ; } catch ( IOException ioex ) { throw new EJBException ... | Internal convenience method for serializing the user info object to a byte array . |
163,390 | protected boolean maxRequestsServed ( ) { if ( getChannel ( ) . isStopping ( ) ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "Channel stopped, disabling keep-alive request" ) ; } return true ; } if ( ! getChannel ( ) . getHttpConfig ( ) . isKeepAliveEnabled ( ) ) { r... | Find out whether we ve served the maximum number of requests allowed on this connection already . |
163,391 | public void ready ( VirtualConnection inVC ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { Tr . entry ( tc , "ready: " + this + " " + inVC ) ; } this . myTSC = ( TCPConnectionContext ) getDeviceLink ( ) . getChannelAccessor ( ) ; HttpInboundServiceContextImpl sc = getHTTPContext ( ) ; s... | Called by the device side channel when a new request is ready for work . |
163,392 | protected void processRequest ( ) { final int timeout = getHTTPContext ( ) . getReadTimeout ( ) ; final TCPReadCompletedCallback callback = HttpICLReadCallback . getRef ( ) ; VirtualConnection rc = null ; do { if ( handleNewInformation ( ) ) { return ; } if ( ! isPartiallyParsed ( ) ) { handleNewRequest ( ) ; return ; ... | Process new information for an inbound request that needs to be parsed and handled by channels above . |
163,393 | private boolean handleNewInformation ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "Parsing new information: " + getVirtualConnection ( ) ) ; } final HttpInboundServiceContextImpl sc = getHTTPContext ( ) ; if ( ! isPartiallyParsed ( ) ) { if ( getChannel ( ) . isSt... | Handle parsing the incoming request message . |
163,394 | private void handleGenericHNIError ( Throwable t , HttpInboundServiceContextImpl hisc ) { hisc . setHeadersParsed ( ) ; sendErrorMessage ( t ) ; setPartiallyParsed ( false ) ; } | the same thing so now they will just call this one method |
163,395 | private void handleNewRequest ( ) { if ( ! isAlpnHttp2Link ( this . vc ) ) { final HttpInboundServiceContextImpl sc = getHTTPContext ( ) ; sc . setRequestVersion ( sc . getRequest ( ) . getVersionValue ( ) ) ; sc . setRequestMethod ( sc . getRequest ( ) . getMethodValue ( ) ) ; sc . getResponseImpl ( ) . init ( sc ) ; ... | Process a new request message updating internal stats and calling the discrimination to pass it along the channel chain . |
163,396 | private void sendErrorMessage ( Throwable t ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "Sending a 400 for throwable [" + t + "]" ) ; } sendErrorMessage ( StatusCodes . BAD_REQUEST ) ; } | Send an error message when a generic throwable occurs . |
163,397 | private void sendErrorMessage ( StatusCodes code ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "Sending an error page back [code: " + code + "]" ) ; } try { getHTTPContext ( ) . sendError ( code . getHttpError ( ) ) ; } catch ( MessageSentException mse ) { close ( ge... | Send an error message back to the client with a defined status code instead of an exception . |
163,398 | private void handlePipeLining ( ) { HttpServiceContextImpl sc = getHTTPContext ( ) ; WsByteBuffer buffer = sc . returnLastBuffer ( ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEventEnabled ( ) ) { Tr . event ( tc , "Pipelined request found: " + buffer ) ; } sc . clear ( ) ; sc . storeAllocatedBuffer ( bu... | Handle a pipelined request discovered while closing the handling of the last request . |
163,399 | public void error ( VirtualConnection inVC , Throwable t ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "error() called on " + this + " " + inVC ) ; } try { close ( inVC , ( Exception ) t ) ; } catch ( ClassCastException cce ) { close ( inVC , new Exception ( "Problem... | Called when an error occurs on this connection . |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.