idx int64 0 165k | question stringlengths 73 4.15k | target stringlengths 5 918 | len_question int64 21 890 | len_target int64 3 255 |
|---|---|---|---|---|
160,200 | synchronized void resetListFailed ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "resetListFailed" ) ; iRequestFailed = true ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "resetListFailed" ) ; } | Method indicates that the reset list failed - update the alarm to indicate that this failed . | 93 | 17 |
160,201 | @ Override public boolean isDeclaredAnnotationWithin ( Collection < String > annotationNames ) { if ( declaredAnnotations != null ) { for ( AnnotationInfo annotation : declaredAnnotations ) { if ( annotationNames . contains ( annotation . getAnnotationClassName ( ) ) ) { return true ; } } } return false ; } | Optimized to iterate across the declared annotations first . | 70 | 12 |
160,202 | private void readObject ( ObjectInputStream s ) throws IOException , ClassNotFoundException { ObjectInputStream . GetField getField = s . readFields ( ) ; version = getField . get ( "version" , 1 ) ; resourceAdapterKey = ( String ) getField . get ( "resourceAdapterKey" , null ) ; } | Overrides the default deserialization . | 72 | 9 |
160,203 | private void writeObject ( ObjectOutputStream s ) throws IOException { ObjectOutputStream . PutField putField = s . putFields ( ) ; putField . put ( "version" , version ) ; putField . put ( "resourceAdapterKey" , resourceAdapterKey ) ; s . writeFields ( ) ; } | Overrides the default serialization . | 68 | 8 |
160,204 | static void notifyTimeout ( ) { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "notifyTimeout" ) ; synchronized ( SUSPEND_LOCK ) { // Check if there are any outstanding suspends if ( _tokenManager . isResumable ( ) ) { if ( tc . isEventEnabled ( ) ) Tr . event ( tc , "Resuming recovery log service following a suspens... | Called by the RLSSuspendTokenManager in the event of a suspension timeout occurring | 171 | 18 |
160,205 | protected synchronized final Transaction getExternalTransaction ( ) { final String methodName = "getExternalTransaction" ; if ( Tracing . isAnyTracingEnabled ( ) && trace . isEntryEnabled ( ) ) trace . entry ( this , cclass , methodName ) ; Transaction transaction = null ; // For return. if ( transactionReference != nu... | Create the extrnal transaction for use by the public interface from this InternalTransaction . | 188 | 17 |
160,206 | protected synchronized void requestCallback ( Token token , Transaction transaction ) throws ObjectManagerException { final String methodName = "requestCallback" ; if ( Tracing . isAnyTracingEnabled ( ) && trace . isEntryEnabled ( ) ) trace . entry ( this , cclass , methodName , new Object [ ] { token , transaction } )... | Note a request for the Token in the transaction to be called at prePrepare preCommit preBackout postCommit and postBackout . | 338 | 30 |
160,207 | protected synchronized void addFromCheckpoint ( ManagedObject managedObject , Transaction transaction ) throws ObjectManagerException { final String methodName = "addFromCheckpoint" ; if ( Tracing . isAnyTracingEnabled ( ) && trace . isEntryEnabled ( ) ) trace . entry ( this , cclass , methodName , new Object [ ] { man... | Recover an Add operation from a checkpoint . | 382 | 9 |
160,208 | protected synchronized void replaceFromCheckpoint ( ManagedObject managedObject , byte [ ] serializedBytes , Transaction transaction ) throws ObjectManagerException { final String methodName = "replaceFromCheckpoint" ; if ( Tracing . isAnyTracingEnabled ( ) && trace . isEntryEnabled ( ) ) trace . entry ( this , cclass ... | Recover a Replace operation from a checkpoint . | 466 | 9 |
160,209 | protected synchronized void prepare ( Transaction transaction ) throws ObjectManagerException { if ( Tracing . isAnyTracingEnabled ( ) && trace . isEntryEnabled ( ) ) trace . entry ( this , cclass , "prepare" , "transaction=" + transaction + "(Trasnaction)" ) ; // To defend against two application threads completing th... | Prepare the transaction . After execution of this method the users of this transaction shall not perform any further work as part of the logical unit of work or modify any of the objects that are referenced by the transaction . | 473 | 42 |
160,210 | void preBackout ( Transaction transaction ) throws ObjectManagerException { final String methodName = "preBackout" ; if ( Tracing . isAnyTracingEnabled ( ) && trace . isEntryEnabled ( ) ) trace . entry ( this , cclass , methodName , new Object [ ] { transaction } ) ; // Allow any last minute changes before we backout. ... | Before the transaction is backed out give the ManagedObjects a chance to adjust their transient state to reflect the final outcome . It is too late for them to adjust persistent state as that is already written to the log assuming an outcome of Commit . | 196 | 49 |
160,211 | private final void complete ( boolean reUse , Transaction transaction ) throws ObjectManagerException { final String methodName = "complete" ; if ( Tracing . isAnyTracingEnabled ( ) && trace . isEntryEnabled ( ) ) trace . entry ( this , cclass , methodName , new Object [ ] { new Boolean ( reUse ) , transaction } ) ; //... | Tidy up after Commit or Backout have finished all work for this InternalTransaction . | 476 | 17 |
160,212 | protected synchronized void terminate ( int reason ) throws ObjectManagerException { final String methodName = "terminate" ; if ( Tracing . isAnyTracingEnabled ( ) && trace . isEntryEnabled ( ) ) trace . entry ( this , cclass , methodName , new Object [ ] { new Integer ( reason ) } ) ; if ( transactionReference != null... | Permanently disable use of this transaction . reason the Transaction . terininatedXXX reason | 243 | 18 |
160,213 | protected synchronized void shutdown ( ) throws ObjectManagerException { if ( Tracing . isAnyTracingEnabled ( ) && trace . isEntryEnabled ( ) ) trace . entry ( this , cclass , "shutDown" ) ; setState ( nextStateForShutdown ) ; // Any attempt by any therad to do anything with this Transaction // from now on will result ... | Run at shutdown of the ObjectManager to close activity . | 119 | 11 |
160,214 | protected final void setRequiresCheckpoint ( ) { final String methodName = "setRequiresCheckpoint" ; if ( Tracing . isAnyTracingEnabled ( ) && trace . isEntryEnabled ( ) ) trace . entry ( this , cclass , methodName , new Object [ ] { new Boolean ( requiresPersistentCheckpoint ) } ) ; // The states for which a checkpoin... | Mark this InternalTransaction as requiring a Checkpoint in the current checkpoint cycle . | 283 | 15 |
160,215 | @ Override public void afterCompletion ( int status ) { if ( status == Status . STATUS_COMMITTED ) { Boolean previous = persistentExecutor . inMemoryTaskIds . put ( taskId , Boolean . TRUE ) ; if ( previous == null ) { long delay = expectedExecTime - new Date ( ) . getTime ( ) ; if ( TraceComponent . isAnyTracingEnable... | Upon successful transaction commit automatically schedules a task for execution in the near future . | 198 | 15 |
160,216 | @ FFDCIgnore ( Throwable . class ) @ Sensitive private byte [ ] serializeResult ( Object result , ClassLoader loader ) throws IOException { try { return persistentExecutor . serialize ( result ) ; } catch ( Throwable x ) { return persistentExecutor . serialize ( new TaskFailure ( x , loader , persistentExecutor , TaskF... | Utility method that serializes a task result or the failure that occurred when attempting to serialize the task result . | 100 | 23 |
160,217 | protected Converter createConverter ( FaceletContext ctx ) throws FacesException , ELException , FaceletException { return ctx . getFacesContext ( ) . getApplication ( ) . createConverter ( NumberConverter . CONVERTER_ID ) ; } | Returns a new NumberConverter | 60 | 7 |
160,218 | public void queueDataReceivedInvocation ( Connection connection , ReceiveListener listener , WsByteBuffer data , int segmentType , int requestNumber , int priority , boolean allocatedFromBufferPool , boolean partOfExchange , Conversation conversation ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnab... | Queues the invocation of a data received method into the dispatcher . | 256 | 13 |
160,219 | public static ReceiveListenerDispatcher getInstance ( Conversation . ConversationType convType , boolean isOnClientSide ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "getInstance" , new Object [ ] { "" + convType , "" + isOnClientSide } ) ; ReceiveListenerDispatcher... | Return a reference to the instance of this class . Used to implement the singleton design pattern . | 493 | 19 |
160,220 | public static boolean isCommandLine ( ) { String output = AccessController . doPrivileged ( new PrivilegedAction < String > ( ) { @ Override public String run ( ) { return System . getProperty ( "wlp.process.type" ) ; } } ) ; boolean value = true ; if ( output != null && ( "server" . equals ( output ) || "client" . equ... | Returns true when the value of wlp . process . type is neither server nor client . false otherwise . | 128 | 21 |
160,221 | public static String getInstallRoot ( ) { return AccessController . doPrivileged ( new PrivilegedAction < String > ( ) { @ Override public String run ( ) { String output = System . getProperty ( "wlp.install.dir" ) ; if ( output == null ) { output = System . getenv ( "WLP_INSTALL_DIR" ) ; } if ( output == null ) { // i... | Returns the installation root . If it wasn t detected use current directory . | 287 | 14 |
160,222 | public static ResourceBundle getResourceBundle ( File location , String name , Locale locale ) { File [ ] files = new File [ ] { new File ( location , name + "_" + locale . toString ( ) + RESOURCE_FILE_EXT ) , new File ( location , name + "_" + locale . getLanguage ( ) + RESOURCE_FILE_EXT ) , new File ( location , name... | find the best matching resouce bundle of the specified resouce file name . | 187 | 17 |
160,223 | public static List < CustomManifest > findCustomEncryption ( String extension ) throws IOException { List < File > dirs = listRootAndExtensionDirectories ( ) ; return findCustomEncryption ( dirs , TOOL_EXTENSION_DIR + extension ) ; } | Find the URL of the jar file which includes specified class . If there is none return empty array . | 59 | 20 |
160,224 | protected static List < CustomManifest > findCustomEncryption ( List < File > rootDirs , String path ) throws IOException { List < CustomManifest > list = new ArrayList < CustomManifest > ( ) ; for ( File dir : rootDirs ) { dir = new File ( dir , path ) ; if ( exists ( dir ) ) { File [ ] files = listFiles ( dir ) ; if ... | Find the custom encryption manifest files from the specified list of root directories and path name . The reason why there are multiple root directories is that the product extensions which will allow to add the additional root directory anywhere . | 270 | 41 |
160,225 | @ Override public NetworkTransportFactory getNetworkTransportFactory ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "getNetworkTransportFactory" ) ; NetworkTransportFactory factory = new RichClientTransportFactory ( framework ) ; if ( TraceComponent . isAnyT... | This method is our entry point into the Channel Framework implementation of the JFap Framework interfaces . | 118 | 19 |
160,226 | @ Override public Map getOutboundConnectionProperties ( String outboundTransportName ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "getOutboundConnectionProperties" , outboundTransportName ) ; ChainData chainData = framework . getChain ( outboundTransportName... | This method will retrieve the property bag on the named chain so that it can be determined what properties have been set on it . | 247 | 25 |
160,227 | @ Override public Map getOutboundConnectionProperties ( Object ep ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "getOutboundConnectionProperties" , ep ) ; Map properties = null ; if ( ep instanceof CFEndPoint ) { OutboundChannelDefinition [ ] channelDefinitio... | This method will retrieve the property bag on the outbound chain that will be used by the specified end point . This method is only valid for CFEndPoints . | 249 | 32 |
160,228 | @ Override public InetAddress getHostAddress ( Object endPoint ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "getHostAddress" , endPoint ) ; InetAddress address = null ; if ( endPoint instanceof CFEndPoint ) { address = ( ( CFEndPoint ) endPoint ) . getAddres... | Retrieves the host address from the specified CFEndPoint . | 137 | 13 |
160,229 | @ Override public int getHostPort ( Object endPoint ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "getHostPort" , endPoint ) ; int port = 0 ; if ( endPoint instanceof CFEndPoint ) { port = ( ( CFEndPoint ) endPoint ) . getPort ( ) ; } if ( TraceComponent . is... | Retrieves the host port from the specified CFEndPoint . | 139 | 13 |
160,230 | @ Override public boolean areEndPointsEqual ( Object ep1 , Object ep2 ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "areEndPointsEqual" , new Object [ ] { ep1 , ep2 } ) ; boolean isEqual = false ; if ( ep1 instanceof CFEndPoint && ep2 instanceof CFEndPoint ) ... | The channel framework EP s don t have their own equals method - so one is implemented here by comparing the various parts of the EP . | 320 | 27 |
160,231 | @ Override public int getEndPointHashCode ( Object ep ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "getEndPointHashCode" , ep ) ; int hashCode = 0 ; if ( ep instanceof CFEndPoint ) { CFEndPoint cfEndPoint = ( CFEndPoint ) ep ; if ( cfEndPoint . getAddress ( ... | The channel framework EP s don t have their own hashCode method - so one is implemented here using the various parts of the EP . | 228 | 27 |
160,232 | private CFEndPoint cloneEndpoint ( final CFEndPoint originalEndPoint ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "cloneEndpoint" , originalEndPoint ) ; CFEndPoint endPoint ; ByteArrayOutputStream baos = null ; ObjectOutputStream out = null ; ObjectInputStre... | Creates a copy of originalEndPoint . This is to prevent us causing problems when we change it . As there is no exposed way to do this we will use serialization . It may be a bit slow but it is implementation safe as the implementation of CFEndPoint is designed to be serialized by WLM . Plus we only need to do this when... | 552 | 84 |
160,233 | private Throwable getCause ( Throwable t ) { Throwable cause = t . getCause ( ) ; if ( t . getCause ( ) != null ) { return cause ; } else { return t ; } } | get if cause exists else return the original exception | 45 | 9 |
160,234 | public String traceLogFormat ( LogRecord logRecord , Object id , String formattedMsg , String formattedVerboseMsg ) { final String txt ; if ( formattedVerboseMsg == null ) { // If we don't already have a formatted message... (for Audit or Info or Warning.. ) // we have to build something instead (while avoiding a usele... | Format a detailed record for trace . log . Previously formatted messages may be provided and may be reused if possible . | 125 | 22 |
160,235 | private Object formatVerboseObj ( Object obj ) { // Make sure that we don't truncate any stack traces during verbose logging if ( obj instanceof TruncatableThrowable ) { TruncatableThrowable truncatable = ( TruncatableThrowable ) obj ; final Throwable wrappedException = truncatable . getWrappedException ( ) ; return Da... | Format an object for a verbose message . | 127 | 9 |
160,236 | protected String formatStreamOutput ( GenericData genData ) { String txt = null ; String loglevel = null ; KeyValuePair kvp = null ; KeyValuePair [ ] pairs = genData . getPairs ( ) ; for ( KeyValuePair p : pairs ) { if ( p != null && ! p . isList ( ) ) { kvp = p ; if ( kvp . getKey ( ) . equals ( "message" ) ) { txt = ... | Outputs filteredStream of genData | 205 | 7 |
160,237 | private void createTimeout ( IAbstractAsyncFuture future , long delay , boolean isRead ) { if ( AsyncProperties . disableTimeouts ) { return ; } // create the timeout time, while not holding the lock long timeoutTime = ( System . currentTimeMillis ( ) + delay + Timer . timeoutRoundup ) & Timer . timeoutResolution ; syn... | Create the delayed timeout work item for this request . | 131 | 10 |
160,238 | public void refresh ( ) { this . productProperties = new Properties ( ) ; FileInputStream fis = null ; try { fis = new FileInputStream ( new File ( this . installDir , PRODUCT_PROPERTIES_PATH ) ) ; this . productProperties . load ( fis ) ; } catch ( Exception e ) { } finally { InstallUtils . close ( fis ) ; } featureDe... | Resets productProperties featureDefs installFeatureDefs and mfp . | 106 | 16 |
160,239 | public static RequestMetadata getRequestMetadata ( ) { RequestMetadata metadata = threadLocal . get ( ) ; if ( metadata == null ) metadata = getNoMetadata ( ) ; return metadata ; } | Gets the metadata for the current request | 43 | 8 |
160,240 | public void initialize ( int [ ] bufferEntrySizes , int [ ] bufferEntryDepths ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { Tr . entry ( tc , "initialize" ) ; } // order both lists from smallest to largest, based only on Entry Sizes int len = bufferEntrySizes . length ; int [ ] bSizes... | Initialize the pool manager with the number of pools the entry sizes for each pool and the maximum depth of the free pool . | 562 | 25 |
160,241 | public void setLeakDetectionSettings ( int interval , String output ) throws IOException { this . leakDetectionInterval = interval ; this . leakDetectionOutput = TrConfigurator . getLogLocation ( ) + File . separator + output ; if ( ( interval > - 1 ) && ( output != null ) ) { // clear file FileWriter outFile = new Fil... | Set the memory leak detection parameters . If the interval is 0 or greater then the detection code will enabled . | 101 | 21 |
160,242 | @ Override public WsByteBuffer allocateFileChannelBuffer ( FileChannel fc ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "allocateFileChannelBuffer" ) ; } return new FCWsByteBufferImpl ( fc ) ; } | Allocate a buffer which will use tha FileChannel until the buffer needs to be used in a non - FileChannel way . | 70 | 25 |
160,243 | protected WsByteBufferImpl allocateBufferDirect ( WsByteBufferImpl buffer , int size , boolean overrideRefCount ) { DirectByteBufferHelper directByteBufferHelper = this . directByteBufferHelper . get ( ) ; ByteBuffer byteBuffer ; if ( directByteBufferHelper != null ) { byteBuffer = directByteBufferHelper . allocateDire... | Allocate the direct ByteBuffer that will be wrapped by the input WsByteBuffer object . | 109 | 19 |
160,244 | protected void releasing ( ByteBuffer buffer ) { if ( buffer != null && buffer . isDirect ( ) ) { DirectByteBufferHelper directByteBufferHelper = this . directByteBufferHelper . get ( ) ; if ( directByteBufferHelper != null ) { directByteBufferHelper . releaseDirectByteBuffer ( buffer ) ; } } } | Method called when a buffer is being destroyed to allow any additional cleanup that might be required . | 69 | 18 |
160,245 | public String debug ( ) { String data = null ; StringBuffer sb = new StringBuffer ( ) ; sb . append ( "ConsumerProperties" ) ; sb . append ( "\n" ) ; sb . append ( "------------------" ) ; sb . append ( "\n" ) ; sb . append ( "Destination: " ) ; sb . append ( getJmsDestination ( ) ) ; sb . append ( "\n" ) ; sb . append... | Returns a printable form of the information stored in this object . | 520 | 13 |
160,246 | private Pattern loadAcceptPattern ( ExternalContext context ) { assert context != null ; String mappings = context . getInitParameter ( ViewHandler . FACELETS_VIEW_MAPPINGS_PARAM_NAME ) ; if ( mappings == null ) { return null ; } // Make sure the mappings contain something mappings = mappings . trim ( ) ; if ( mappings... | Load and compile a regular expression pattern built from the Facelet view mapping parameters . | 106 | 16 |
160,247 | private String toRegex ( String mappings ) { assert mappings != null ; // Get rid of spaces mappings = mappings . replaceAll ( "\\s" , "" ) ; // Escape '.' mappings = mappings . replaceAll ( "\\." , "\\\\." ) ; // Change '*' to '.*' to represent any match mappings = mappings . replaceAll ( "\\*" , ".*" ) ; // Split the... | Convert the specified mapping string to an equivalent regular expression . | 129 | 12 |
160,248 | protected void prepareConduitSelector ( Message message , URI currentURI , boolean proxy ) { try { cfg . prepareConduitSelector ( message ) ; } catch ( Fault ex ) { LOG . warning ( "Failure to prepare a message from conduit selector" ) ; } message . getExchange ( ) . put ( ConduitSelector . class , cfg . getConduitSele... | or web client invocation has returned | 282 | 6 |
160,249 | @ Override public boolean isCorruptOrIndoubt ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "isCorruptOrIndoubt" ) ; boolean isCorruptOrIndoubt = _targetDestinationHandler . isCorruptOrIndoubt ( ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabl... | Is a real target destination corrupt? | 137 | 7 |
160,250 | public void delete ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "delete" ) ; //Tell the target of the alias to remove the backwards reference to it _targetDestinationHandler . removeTargettingAlias ( this ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . ... | This destination handler is being deleted and should perform any processing required . | 103 | 13 |
160,251 | protected void setLayoutToPrimary ( int segmentLength , int priority , boolean isPooled , boolean isExchange , int packetNumber , int segmentType , SendListener sendListener ) { if ( tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "setLayoutToPrimary" , new Object [ ] { "" + segmentLength , "" + priority , "" + i... | Sets the layout to use for this transmission to be a primary header only . | 237 | 16 |
160,252 | protected void setLayoutToConversation ( int segmentLength , int priority , boolean isPooled , boolean isExchange , int packetNumber , int segmentType , int conversationId , int requestNumber , Conversation conversation , SendListener sendListener ) { if ( tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "setLayou... | Set layout for transmission to build to have a conversation header . | 243 | 12 |
160,253 | protected void setLayoutToStartSegment ( int segmentLength , int priority , boolean isPooled , boolean isExchange , int packetNumber , int segmentType , int conversationId , int requestNumber , long totalLength ) { if ( tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "setLayoutToStartSegment" , new Object [ ] { "... | Set next transmission being built to have a segment start layout | 281 | 11 |
160,254 | protected void setLayoutToMiddleSegment ( int segmentLength , int priority , boolean isPooled , boolean isExchange , int packetNumber , int conversationId , int requestNumber ) { if ( tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "setLayoutToMiddleSegment" , new Object [ ] { "" + segmentLength , "" + priority ,... | Set next transmission being built to have a segment middle layout | 228 | 11 |
160,255 | protected void setLayoutToEndSegment ( int segmentLength , int priority , boolean isPooled , boolean isExchange , int packetNumber , int conversationId , int requestNumber , Conversation conversation , SendListener sendListener ) { if ( tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "setLayoutToSegmentEnd" , new... | Set next transmission being built to have a segment end layout | 206 | 11 |
160,256 | protected boolean isPooledBuffers ( ) { if ( tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "isPooledBuffers" ) ; if ( tc . isEntryEnabled ( ) ) SibTr . exit ( this , tc , "isPooledBuffers" , "" + primaryHeaderFields . isPooled ) ; return primaryHeaderFields . isPooled ; } | Returns true iff this transmission should be received into pooled buffers . | 90 | 13 |
160,257 | protected boolean isUserRequest ( ) { if ( tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "isUserRequest" ) ; if ( tc . isEntryEnabled ( ) ) SibTr . exit ( this , tc , "isUserRequest" , "" + isUserRequest ) ; return isUserRequest ; } | Returns true iff this transmission is a user request . | 74 | 11 |
160,258 | protected boolean isTerminal ( ) { if ( tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "isTermainl" ) ; if ( tc . isEntryEnabled ( ) ) SibTr . exit ( this , tc , "isTermainl" , "" + isTerminal ) ; return isTerminal ; } | Returns true if this transmission should stop this connection from writing any more data to the socket . | 76 | 18 |
160,259 | private boolean buildHeader ( HeaderFields headerFields , WsByteBuffer xmitBuffer ) { if ( tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "buildHeader" , new Object [ ] { headerFields , xmitBuffer } ) ; if ( tc . isDebugEnabled ( ) ) JFapUtils . debugTraceWsByteBufferInfo ( this , tc , xmitBuffer , "xmitBuffer" ... | Builds a header from a description of the header fields . The header is incrementally built into the supplied transmission buffer . This may require use of a scratch space in the event that there is insufficient room in the transmission buffer on the first attempt . | 527 | 49 |
160,260 | private boolean buildPayload ( WsByteBuffer xmitBuffer ) { if ( tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "buildPayload" , xmitBuffer ) ; if ( tc . isDebugEnabled ( ) ) JFapUtils . debugTraceWsByteBufferInfo ( this , tc , xmitBuffer , "xmitBuffer" ) ; boolean payloadFinished = false ; int amountCopied , amo... | Builds a transmission payload into the supplied buffer . This may be done incrementally by multiple invocations in the case that the supplied buffer is smaller than the payload being built . | 436 | 35 |
160,261 | @ GET @ Path ( "/verifyInjectedOptionalCustomMissing" ) @ Produces ( MediaType . APPLICATION_JSON ) public JsonObject verifyInjectedOptionalCustomMissing ( ) { boolean pass = false ; String msg ; // custom-missing Optional < Long > customValue = custom . getValue ( ) ; if ( customValue == null ) { msg = "custom-missing... | Verify that values exist and that types match the corresponding Claims enum | 185 | 13 |
160,262 | public static void addExtendedProperty ( String propName , String dataType , boolean multiValued , Object defaultValue ) { if ( dataType == null || "null" . equalsIgnoreCase ( dataType ) ) return ; if ( extendedPropertiesDataType . containsKey ( propName ) ) { Tr . warning ( tc , WIMMessageKey . DUPLICATE_PROPERTY_EXTE... | Allows for an extended property or a property not pre - defined as part of this PersonAccount entity type to be added to the PersonAccount entity | 220 | 28 |
160,263 | private static String depluralize ( String s ) { if ( s . endsWith ( "ies" ) ) { return s . substring ( 0 , s . length ( ) - 3 ) + ' ' ; } if ( s . endsWith ( "s" ) ) { return s . substring ( 0 , s . length ( ) - 1 ) ; } return s ; } | Convert a string like abcs to abc . | 80 | 11 |
160,264 | private static String hyphenatedToCamelCase ( String s ) { Matcher m = Pattern . compile ( "(?:^|-)([a-z])" ) . matcher ( s ) ; StringBuilder b = new StringBuilder ( ) ; int last = 0 ; for ( ; m . find ( ) ; last = m . end ( ) ) { b . append ( s , last , m . start ( ) ) . append ( Character . toUpperCase ( m . group ( ... | Convert a string like abc - def - ghi to AbcDefGhi . | 138 | 19 |
160,265 | private static String upperCaseFirstChar ( String s ) { return Character . toUpperCase ( s . charAt ( 0 ) ) + s . substring ( 1 ) ; } | Convert a string like abcDef to AbcDef . | 38 | 13 |
160,266 | private static List < TypeMirror > getAnnotationClassValues ( Element member , Annotation annotation , String annotationMemberName ) { for ( AnnotationMirror annotationMirror : member . getAnnotationMirrors ( ) ) { if ( ( ( TypeElement ) annotationMirror . getAnnotationType ( ) . asElement ( ) ) . getQualifiedName ( ) ... | Return a List of TypeMirror for an annotation on a member . This is a workaround for JDK - 6519115 which causes MirroredTypeException to be thrown rather than MirroredTypesException . | 311 | 41 |
160,267 | public ViewScopeContextualStorage getContextualStorage ( BeanManager beanManager , String viewScopeId ) { ViewScopeContextualStorage contextualStorage = storageMap . get ( viewScopeId ) ; if ( contextualStorage == null ) { synchronized ( this ) { contextualStorage = storageMap . get ( viewScopeId ) ; if ( contextualSto... | This method will return the ViewScopeContextualStorage or create a new one if no one is yet assigned to the current windowId . | 109 | 27 |
160,268 | public AuthConfigProvider setProvider ( ProviderService providerService ) { AuthConfigProvider authConfigProvider = null ; if ( providerService != null ) { authConfigProvider = providerService . getAuthConfigProvider ( this ) ; registerConfigProvider ( authConfigProvider , null , null , null ) ; } else { removeRegistra... | Called when a Liberty user defined feature provider is set or unset | 83 | 14 |
160,269 | protected BeanO doActivation ( EJBThreadData threadData , ContainerTx tx , BeanId beanId , boolean takeInvocationRef ) throws RemoteException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { Tr . entry ( tc , "doActivation" , new Object [ ] { tx , beanId , new Boolean ( takeInvocationRef )... | Internal method used by subclasses to activate a bean | 769 | 10 |
160,270 | @ Override public Entry < BatchPartitionWorkUnit , Future < ? > > startPartition ( PartitionPlanConfig partitionPlanConfig , Step step , PartitionReplyQueue partitionReplyQueue , boolean isRemoteDispatch ) { BatchPartitionWorkUnit workUnit = createPartitionWorkUnit ( partitionPlanConfig , step , partitionReplyQueue , i... | Create the BatchPartitionWorkUnit and start the sub - job partition thread . | 134 | 17 |
160,271 | protected void setConversation ( Conversation conversation ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "setConversation" , conversation ) ; con = conversation ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( this ,... | Sets the Conversation object | 96 | 5 |
160,272 | protected CommsByteBuffer jfapExchange ( CommsByteBuffer buffer , int sendSegmentType , int priority , boolean canPoolOnReceive ) throws SIConnectionDroppedException , SIConnectionLostException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "jfapExchange" , new Object ... | Wraps the JFAP Channel exchange method to allow tracing retrieval of Unique request numbers and setting of message priority . | 671 | 23 |
160,273 | protected void jfapSend ( CommsByteBuffer buffer , int sendSegType , int priority , boolean canPoolOnReceive , ThrottlingPolicy throttlingPolicy ) throws SIConnectionDroppedException , SIConnectionLostException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "jfa... | Wraps the JFAP Channel send method to allow tracing retrieval of Unique request numbers and setting of message priority . | 456 | 23 |
160,274 | private short getClientCapabilities ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "getClientCapabilities" ) ; short capabilities = CommsConstants . CAPABILITIES_DEFAULT ; // Allow the use of a runtime property to alter the capability that we require a non-j... | Works out the capabilities that will be sent to the peer as part of the initial handshake . This also takes into account any overrides from the SIB properties file . | 834 | 33 |
160,275 | public void defaultChecker ( CommsByteBuffer buffer , short exceptionCode ) throws SIErrorException { if ( exceptionCode != CommsConstants . SI_NO_EXCEPTION ) { throw new SIErrorException ( buffer . getException ( con ) ) ; } } | The default checker . Should always be called last after all the checkers . | 57 | 16 |
160,276 | protected void invalidateConnection ( boolean notifyPeer , Throwable throwable , String debugReason ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "invalidateConnection" , new Object [ ] { new Boolean ( notifyPeer ) , throwable , debugReason } ) ; if ( con != null ) ... | Utility method to invalidate Connection . Parameters passed to ConnectionInterface . invalidate | 160 | 16 |
160,277 | SibRaListener createListener ( final SIDestinationAddress destination , MessageEndpointFactory messageEndpointFactory ) throws ResourceException { final String methodName = "createListener" ; if ( TraceComponent . isAnyTracingEnabled ( ) && TRACE . isEntryEnabled ( ) ) { SibTr . entry ( this , TRACE , methodName , new ... | Creates a new listener to the given destination . | 209 | 10 |
160,278 | SibRaDispatcher createDispatcher ( final AbstractConsumerSession session , final Reliability unrecoveredReliability , final int maxFailedDeliveries , final int sequentialFailureThreshold ) throws ResourceException { final String methodName = "createDispatcher" ; if ( TraceComponent . isAnyTracingEnabled ( ) && TRACE . ... | Gets a dispatcher for the given session and messages . | 624 | 11 |
160,279 | void closeDispatcher ( final SibRaDispatcher dispatcher ) { final String methodName = "closeDispatcher" ; if ( TraceComponent . isAnyTracingEnabled ( ) && TRACE . isEntryEnabled ( ) ) { SibTr . entry ( this , TRACE , methodName ) ; } dispatcher . close ( ) ; _dispatcherCount . decrementAndGet ( ) ; if ( TraceComponent ... | Closes the given dispatcher . | 207 | 6 |
160,280 | void close ( ) { final String methodName = "close" ; if ( TraceComponent . isAnyTracingEnabled ( ) && TRACE . isEntryEnabled ( ) ) { SibTr . entry ( this , TRACE , methodName ) ; } close ( false ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && TRACE . isEntryEnabled ( ) ) { SibTr . exit ( this , TRACE , methodName ... | Closes the connection and any associated listeners and dispatchers | 98 | 12 |
160,281 | void close ( boolean alreadyClosed ) { final String methodName = "close" ; if ( TraceComponent . isAnyTracingEnabled ( ) && TRACE . isEntryEnabled ( ) ) { SibTr . entry ( this , TRACE , methodName , alreadyClosed ) ; } _closed = true ; /* * 238811: * Stop all of the listeners - do not close them as the dispatchers * mi... | Closes this connection and any associated listeners and dispatchers . | 795 | 13 |
160,282 | SICoreConnection createConnection ( SICoreConnectionFactory factory , String name , String password , Map properties , String busName ) throws SIException , SIErrorException , Exception { final String methodName = "createConnection" ; if ( TraceComponent . isAnyTracingEnabled ( ) && TRACE . isEntryEnabled ( ) ) { SibTr... | Creates this connection using either the Auth Alias supplied or if the property is set the WAS server subject . | 220 | 22 |
160,283 | private String getUnavailableServices ( ) { StringBuilder missingServices = new StringBuilder ( ) ; if ( tokenService . getReference ( ) == null ) { missingServices . append ( "tokenService, " ) ; } if ( tokenManager . getReference ( ) == null ) { missingServices . append ( "tokenManager, " ) ; } if ( authenticationSer... | Construct a String that lists all of the missing services . This is very useful for debugging . | 231 | 18 |
160,284 | private void updateSecurityReadyState ( ) { if ( ! activated ) { return ; } String unavailableServices = getUnavailableServices ( ) ; if ( unavailableServices == null ) { Tr . info ( tc , "SECURITY_SERVICE_READY" ) ; securityReady = true ; Dictionary < String , Object > props = new Hashtable < String , Object > ( ) ; p... | Security is ready when all of these required services have been registered . | 196 | 13 |
160,285 | private void parseDirectoryFiles ( WsResource directory , ServerConfiguration configuration ) throws ConfigParserException , ConfigValidationException { if ( directory != null ) { File [ ] defaultFiles = getChildXMLFiles ( directory ) ; if ( defaultFiles == null ) return ; Arrays . sort ( defaultFiles , new AlphaCompar... | Parse all of the config files in a directory in platform insensitive alphabetical order | 350 | 16 |
160,286 | public ServletContext findContext ( String path ) { WebGroup g = ( WebGroup ) requestMapper . map ( path ) ; if ( g != null ) return g . getContext ( ) ; else return null ; } | Method findContext . | 47 | 4 |
160,287 | private void addWlpInformation ( Asset asset ) { WlpInformation wlpInfo = asset . getWlpInformation ( ) ; if ( wlpInfo == null ) { wlpInfo = new WlpInformation ( ) ; asset . setWlpInformation ( wlpInfo ) ; } if ( wlpInfo . getAppliesToFilterInfo ( ) == null ) { wlpInfo . setAppliesToFilterInfo ( new ArrayList < Applies... | For historic reasons when an asset is read back from the repository the wlpInformation and ATFI should always be present . This method does that . | 105 | 29 |
160,288 | public Discriminator getDiscriminator ( ) { if ( tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "getDiscriminator" ) ; if ( tc . isEntryEnabled ( ) ) SibTr . exit ( this , tc , "getDiscriminator" , discriminator ) ; return discriminator ; } | Returns the discriminator for this channel . | 75 | 8 |
160,289 | private Object getResult ( ) throws InterruptedException , ExecutionException { if ( ivCancelled ) { // F743-11774 if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { Tr . exit ( tc , "getResult: throwing CancellationException" ) ; } throw new CancellationException ( ) ; // F743-11774 } // Meth... | This get method returns the result of the async method call . This method must not be called unless ivGate indicates that results are available . | 307 | 27 |
160,290 | private Object getResult ( long timeout , TimeUnit unit ) throws InterruptedException , ExecutionException , TimeoutException { if ( ivCancelled ) { // F743-11774 if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { Tr . exit ( tc , "getResult: throwing CancellationException" ) ; } throw new Can... | This get method returns the result of the asynch method call . This method must not be called unless ivGate indicates that results are available . | 419 | 29 |
160,291 | @ Override public boolean isCancelled ( ) { //F743-609CodRev - read volatile variable only once boolean cancelled = ivCancelled ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "isCancelled: " + cancelled + " Future object: " + this ) ; } return ( cancelled ) ; } | This method allows clients to check the Future object to see if the asynch method was canceled before it got a chance to execute . | 88 | 27 |
160,292 | void setResult ( Future < ? > theFuture ) { // d650178 if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "setResult: " + Util . identity ( theFuture ) + " Future object: " + this ) ; } // set result, we are done ivFuture = theFuture ; done ( ) ; // F743-11774 } | did not throw an exception . | 95 | 6 |
160,293 | void setException ( Throwable theException ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "setException - Future object: " + this , theException ) ; } // set exception, we are done ivException = theException ; done ( ) ; // F743-11774 } | The async method ended with an exception | 79 | 7 |
160,294 | public Object saveState ( FacesContext context ) { if ( ! initialStateMarked ( ) ) { Object values [ ] = new Object [ 2 ] ; values [ 0 ] = _maximum ; values [ 1 ] = _minimum ; return values ; } return null ; } | RESTORE & SAVE STATE | 56 | 7 |
160,295 | public void logout ( Subject subject ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , CLASS_NAME + "logout" ) ; } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . exit ( tc , CLASS_NAME + "logout" ) ; } } | Logout method is used only for auditing purpose | 92 | 10 |
160,296 | public void setMessagingAuthenticationService ( MessagingAuthenticationService messagingAuthenticationService ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , CLASS_NAME + "setMessagingAuthenticationService" , messagingAuthenticationService ) ; } this . messagingAuth... | Set the MessagingAuthenticationService | 128 | 7 |
160,297 | public void deactivate ( ComponentContext cc ) throws IOException { ConfigProviderResolver . setInstance ( null ) ; shutdown ( ) ; scheduledExecutorServiceRef . deactivate ( cc ) ; } | Deactivate a context and set the instance to null | 41 | 10 |
160,298 | public void shutdown ( ) { synchronized ( configCache ) { Set < ClassLoader > allClassLoaders = new HashSet <> ( ) ; allClassLoaders . addAll ( configCache . keySet ( ) ) ; //create a copy of the keys so that we avoid a ConcurrentModificationException for ( ClassLoader classLoader : allClassLoaders ) { close ( classLoa... | Close down all the configs | 113 | 6 |
160,299 | private void close ( ClassLoader classLoader ) { synchronized ( configCache ) { ConfigWrapper config = configCache . remove ( classLoader ) ; if ( config != null ) { Set < String > applicationNames = config . getApplications ( ) ; for ( String app : applicationNames ) { appClassLoaderMap . remove ( app ) ; } config . c... | Completely close a config for a given classloader | 80 | 10 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.