idx int64 0 165k | question stringlengths 73 4.15k | target stringlengths 5 918 | len_question int64 21 890 | len_target int64 3 255 |
|---|---|---|---|---|
160,100 | public static Document parseDocument ( DocumentBuilder builder , File file ) throws IOException , SAXException { final DocumentBuilder docBuilder = builder ; final File parsingFile = file ; try { return ( Document ) AccessController . doPrivileged ( new PrivilegedExceptionAction ( ) { public Object run ( ) throws SAXEx... | D190462 - START | 218 | 6 |
160,101 | protected boolean checkBuffer ( ) throws IOException { if ( ! enableMultiReadofPostData ) { if ( null != this . buffer ) { if ( this . buffer . hasRemaining ( ) ) { return true ; } this . buffer . release ( ) ; this . buffer = null ; } try { this . buffer = this . isc . getRequestBodyBuffer ( ) ; if ( null != this . bu... | Check the input buffer for data . If necessary attempt a read for a new buffer . | 176 | 17 |
160,102 | private boolean checkMultiReadBuffer ( ) throws IOException { //first check existing buffer if ( null != this . buffer ) { if ( this . buffer . hasRemaining ( ) ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "checkMultiReadBuffer, remaining ->" + this ) ; } return tru... | Check the input buffer for data . If necessary attempt a read for a new buffer and store it . | 650 | 20 |
160,103 | public static EsaSubsystemFeatureDefinitionImpl constructInstance ( File esa ) throws ZipException , IOException { // Find the manifest - case isn't guaranteed so do a search ZipFile zip = new ZipFile ( esa ) ; Enumeration < ? extends ZipEntry > zipEntries = zip . entries ( ) ; ZipEntry subsystemEntry = null ; while ( ... | Create a new instance of this class for the supplied ESA file . | 166 | 13 |
160,104 | static String formatTime ( ) { Date date = new Date ( ) ; DateFormat formatter = BaseTraceFormatter . useIsoDateFormat ? new SimpleDateFormat ( "yyyy-MM-dd'T'HH:mm:ss.SSSZ" ) : DateFormatProvider . getDateFormat ( ) ; StringBuffer answer = new StringBuffer ( ) ; answer . append ( ' ' ) ; formatter . format ( date , ans... | Return the current time formatted in a standard way | 121 | 9 |
160,105 | private static String [ ] getCallStackFromStackTraceElement ( StackTraceElement [ ] exceptionCallStack ) { if ( exceptionCallStack == null ) return null ; String [ ] answer = new String [ exceptionCallStack . length ] ; for ( int i = 0 ; i < exceptionCallStack . length ; i ++ ) { answer [ exceptionCallStack . length - ... | Create the call stack array expected by diagnostic modules from an array of StackTraceElements | 101 | 18 |
160,106 | private static String getPackageName ( String className ) { int end = className . lastIndexOf ( ' ' ) ; return ( end > 0 ) ? className . substring ( 0 , end ) : "" ; } | Return the package name of a given class name | 47 | 9 |
160,107 | public String validateCookieName ( String cookieName , boolean quiet ) { if ( cookieName == null || cookieName . length ( ) == 0 ) { if ( ! quiet ) { Tr . error ( tc , "COOKIE_NAME_CANT_BE_EMPTY" ) ; } return CFG_DEFAULT_COOKIENAME ; } String cookieNameUc = cookieName . toUpperCase ( ) ; boolean valid = true ; for ( in... | reset cookieName to default value if it is not valid | 221 | 11 |
160,108 | public void distributeBefore ( ) { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "distributeBefore" , this ) ; boolean setRollback = false ; try { coreDistributeBefore ( ) ; } catch ( Throwable exc ) { // No FFDC Code Needed. Tr . error ( tc , "WTRN0074_SYNCHRONIZATION_EXCEPTION" , new Object [ ] { "before_completio... | Distributes before completion operations to all registered Synchronization objects . If a synchronization raises an exception mark transaction for rollback . | 532 | 25 |
160,109 | public void distributeAfter ( int status ) { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "distributeAfter" , new Object [ ] { this , status } ) ; // Issue the RRS syncs first - these need to be as close to the completion as possible final List RRSsyncs = _syncs [ SYNC_TIER_RRS ] ; if ( RRSsyncs != null ) { final i... | Distributes after completion operations to all registered Synchronization objects . | 329 | 13 |
160,110 | public static UDPBufferFactory getRef ( ) { if ( null == ofInstance ) { synchronized ( UDPBufferFactory . class ) { if ( null == ofInstance ) { ofInstance = new UDPBufferFactory ( ) ; } } } return ofInstance ; } | Get a reference to the singleton instance of this class . | 53 | 12 |
160,111 | public static UDPBufferImpl getUDPBuffer ( WsByteBuffer buffer , SocketAddress address ) { UDPBufferImpl udpBuffer = getRef ( ) . getUDPBufferImpl ( ) ; udpBuffer . set ( buffer , address ) ; return udpBuffer ; } | Get a UDPBuffer that will encapsulate the provided information . | 58 | 12 |
160,112 | protected UDPBufferImpl getUDPBufferImpl ( ) { UDPBufferImpl ret = ( UDPBufferImpl ) udpBufferObjectPool . get ( ) ; if ( ret == null ) { ret = new UDPBufferImpl ( this ) ; } return ret ; } | Retrieve an UDPBuffer object from the factory . | 54 | 10 |
160,113 | public String logDirectory ( ) { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "logDirectory" , this ) ; if ( tc . isEntryEnabled ( ) ) Tr . exit ( tc , "logDirectory" , _logDirectory ) ; return _logDirectory ; } | Returns the physical location where a recovery log constructed from the target object will reside . | 63 | 16 |
160,114 | public String logDirectoryStem ( ) { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "logDirectoryStem" , this ) ; if ( tc . isEntryEnabled ( ) ) Tr . exit ( tc , "logDirectoryStem" , _logDirectoryStem ) ; return _logDirectoryStem ; } | Returns the stem of the location where a recovery log constructed from the target object will reside . | 73 | 18 |
160,115 | public int logFileSize ( ) { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "logFileSize" , this ) ; if ( tc . isEntryEnabled ( ) ) Tr . exit ( tc , "logFileSize" , new Integer ( _logFileSize ) ) ; return _logFileSize ; } | Returns the physical log size of a recovery log constructed from the target object . | 72 | 15 |
160,116 | public int maxLogFileSize ( ) { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "maxLogFileSize" , this ) ; if ( tc . isEntryEnabled ( ) ) Tr . exit ( tc , "maxLogFileSize" , new Integer ( _maxLogFileSize ) ) ; return _maxLogFileSize ; } | Returns the maximum physical log size of a recovery log constructed from the target object . | 77 | 16 |
160,117 | void unregister ( ) { trackerLock . lock ( ) ; try { if ( tracker != null ) { // simply closing the tracker causes the services to be unregistered tracker . close ( ) ; tracker = null ; } } finally { trackerLock . unlock ( ) ; } } | Unregisters all OSGi services associated with this bell | 57 | 11 |
160,118 | void update ( ) { final BundleContext context = componentContext . getBundleContext ( ) ; // determine the service filter to use for discovering the Library service this bell is for String libraryRef = library . id ( ) ; // it is unclear if only looking at the id would work here. // other examples in classloading use b... | Configures this bell with a specific library and a possible set of service names | 571 | 15 |
160,119 | public static < T extends Constructible > T createObject ( Class < T > clazz ) { return OASFactoryResolver . instance ( ) . createObject ( clazz ) ; } | This method creates a new instance of a constructible element from the OpenAPI model tree . | 39 | 18 |
160,120 | private void printErrorMessage ( String key , Object ... substitutions ) { Tr . error ( tc , key , substitutions ) ; errorMsgIssued = true ; } | Prints the specified error message . | 35 | 7 |
160,121 | @ Trivial protected Object evaluateElExpression ( String expression , boolean mask ) { final String methodName = "evaluateElExpression" ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { Tr . entry ( tc , methodName , new Object [ ] { ( expression == null ) ? null : mask ? OBFUSCATED_STRING ... | Evaluate a possible EL expression . | 186 | 8 |
160,122 | @ Trivial static boolean isImmediateExpression ( String expression , boolean mask ) { final String methodName = "isImmediateExpression" ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { Tr . entry ( tc , methodName , new Object [ ] { ( expression == null ) ? null : mask ? OBFUSCATED_STRING ... | Return whether the expression is an immediate EL expression . | 154 | 10 |
160,123 | @ Trivial static String removeBrackets ( String expression , boolean mask ) { final String methodName = "removeBrackets" ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { Tr . entry ( tc , methodName , new Object [ ] { ( expression == null ) ? null : mask ? OBFUSCATED_STRING : expression , ... | Remove the brackets from an EL expression . | 207 | 8 |
160,124 | @ SuppressWarnings ( "unchecked" ) private ThreadLocalProxyCopyOnWriteArraySet < ThreadLocalProxy < ? > > getProxySet ( ) { Object property = null ; property = bus . getProperty ( PROXY_SET ) ; if ( property == null ) { ThreadLocalProxyCopyOnWriteArraySet < ThreadLocalProxy < ? > > proxyMap = new ThreadLocalProxyCopyOn... | Create a CopyOnWriteArraySet to store the ThreadLocalProxy objects for convenience of clearance | 141 | 18 |
160,125 | private void skipClasslessStackFrames ( ) { // skip over any stack trace elements that are unmatched in the classes array if ( classes . isEmpty ( ) ) return ; while ( elements . size ( ) > 0 && ! ! ! elements . peek ( ) . getClassName ( ) . equals ( classes . peek ( ) . getName ( ) ) ) { elements . pop ( ) ; } } | Call after any advancement to bring this . elements into line with this . classes . | 83 | 16 |
160,126 | public static boolean unregisterExtension ( String key ) { if ( key == null ) { throw new IllegalArgumentException ( "Parameter 'key' can not be null" ) ; } w . lock ( ) ; try { return extensionMap . remove ( key ) != null ; } finally { w . unlock ( ) ; } } | Removes context extension registration . | 69 | 6 |
160,127 | public static void getExtensions ( Map < String , String > map ) throws IllegalArgumentException { if ( map == null ) { throw new IllegalArgumentException ( "Parameter 'map' can not be null." ) ; } if ( recursion . get ( ) == Boolean . TRUE ) { return ; } recursion . set ( Boolean . TRUE ) ; LinkedList < String > clean... | Retrieves values for all registered context extensions . | 382 | 10 |
160,128 | @ FFDCIgnore ( Exception . class ) private void logProviderInfo ( String providerName , ClassLoader loader ) { try { if ( PROVIDER_ECLIPSELINK . equals ( providerName ) ) { // org.eclipse.persistence.Version.getVersion(): 2.6.4.v20160829-44060b6 Class < ? > Version = loadClass ( loader , "org.eclipse.persistence.Versio... | Log version information about the specified persistence provider if it can be determined . | 585 | 14 |
160,129 | protected void checkStartStatus ( BundleStartStatus startStatus ) throws InvalidBundleContextException { final String m = "checkInstallStatus" ; if ( startStatus . startExceptions ( ) ) { Map < Bundle , Throwable > startExceptions = startStatus . getStartExceptions ( ) ; for ( Entry < Bundle , Throwable > entry : start... | Check the passed in start status for exceptions starting bundles and issue appropriate diagnostics & messages for this environment . | 188 | 21 |
160,130 | protected BundleInstallStatus installBundles ( BootstrapConfig config ) throws InvalidBundleContextException { BundleInstallStatus installStatus = new BundleInstallStatus ( ) ; KernelResolver resolver = config . getKernelResolver ( ) ; ContentBasedLocalBundleRepository repo = BundleRepositoryRegistry . getInstallBundle... | Install framework bundles . | 219 | 4 |
160,131 | public synchronized boolean isHealthy ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "isHealthy" ) ; boolean retval = _running && ! _stopRequested && ( _threadWriteErrorsOutstanding == 0 ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnable... | Used as a quick way to check the health of a dispatcher before giving it work in situations in which the work cannot be rejected . For example for a transaction which requires both synchronous and asynchronous persistence once we ve done the synchronous persistence a transient persistence problem from a dispatcher will... | 124 | 75 |
160,132 | private String getLogDir ( ) { StringBuffer output = new StringBuffer ( ) ; WsLocationAdmin locationAdmin = locationAdminRef . getService ( ) ; output . append ( locationAdmin . resolveString ( "${server.output.dir}" ) . replace ( ' ' , ' ' ) ) . append ( "/logs" ) ; return output . toString ( ) ; } | Get the default directory for logs | 81 | 6 |
160,133 | private String mapToJSONString ( Map < String , Object > eventMap ) { JSONObject jsonEvent = new JSONObject ( ) ; String jsonString = null ; map2JSON ( jsonEvent , eventMap ) ; try { if ( ! compact ) { jsonString = jsonEvent . serialize ( true ) . replaceAll ( "\\\\/" , "/" ) ; } else { jsonString = jsonEvent . toStrin... | Produce a JSON String for the given audit event | 149 | 10 |
160,134 | private JSONArray array2JSON ( JSONArray ja , Object [ ] array ) { for ( int i = 0 ; i < array . length ; i ++ ) { // array entry is a Map if ( array [ i ] instanceof Map ) { //if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { // Tr.debug(tc, "array entry is a Map, calling map2JSON", array[i]); //} ja ... | Given a Java array add the corresponding JSON to the given JSONArray object | 299 | 14 |
160,135 | public void writeBootstrapProperty ( LibertyServer server , String propKey , String propValue ) throws Exception { String bootProps = getBootstrapPropertiesFilePath ( server ) ; appendBootstrapPropertyToFile ( bootProps , propKey , propValue ) ; } | Writes the specified bootstrap property and value to the provided server s bootstrap . properties file . | 57 | 20 |
160,136 | public void writeBootstrapProperties ( LibertyServer server , Map < String , String > miscParms ) throws Exception { String thisMethod = "writeBootstrapProperties" ; loggingUtils . printMethodName ( thisMethod ) ; if ( miscParms == null ) { return ; } String bootPropFilePath = getBootstrapPropertiesFilePath ( server ) ... | Writes each of the specified bootstrap properties and values to the provided server s bootstrap . properties file . | 129 | 22 |
160,137 | public static WSATRecoveryCoordinator fromLogData ( byte [ ] bytes ) throws SystemException { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "fromLogData" , bytes ) ; WSATRecoveryCoordinator wsatRC = null ; final ByteArrayInputStream bais = new ByteArrayInputStream ( bytes ) ; try { final ObjectInputStream ois = new ... | As called after recovery on distributed platform | 254 | 7 |
160,138 | private boolean handleAdditionalAnnotation ( List < Parameter > parameters , Annotation annotation , final Type type , Set < Type > typesToSkip , javax . ws . rs . Consumes classConsumes , javax . ws . rs . Consumes methodConsumes , Components components , boolean includeRequestBody ) { boolean processed = false ; if (... | Adds additional annotation processing support | 735 | 5 |
160,139 | protected String replaceAllProperties ( String str , final Properties submittedProps , final Properties xmlProperties ) { int startIndex = 0 ; NextProperty nextProp = this . findNextProperty ( str , startIndex ) ; while ( nextProp != null ) { // get the start index past this property for the next property in // the str... | Replace all the properties in String str . | 758 | 9 |
160,140 | private String resolvePropertyValue ( final String name , PROPERTY_TYPE propType , final Properties submittedProperties , final Properties xmlProperties ) { String value = null ; switch ( propType ) { case JOB_PARAMETERS : if ( submittedProperties != null ) { value = submittedProperties . getProperty ( name ) ; } if ( ... | Gets the value of a property using the property type | 232 | 11 |
160,141 | private Properties inheritProperties ( final Properties parentProps , final Properties childProps ) { if ( parentProps == null ) { return childProps ; } if ( childProps == null ) { return parentProps ; } for ( final String parentKey : parentProps . stringPropertyNames ( ) ) { // Add the parent property to the child if ... | Merge the parent properties that are already set into the child properties . Child properties always override parent values . | 129 | 21 |
160,142 | public boolean isCommitted ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { // 306998.15 Tr . debug ( tc , "isCommitted: " + committed ) ; } return committed ; } | Returns whether the output has been committed or not . | 56 | 10 |
160,143 | public void write ( int c ) throws IOException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { // 306998.15 Tr . debug ( tc , "write --> " + c ) ; } if ( ! _hasWritten && obs != null ) { _hasWritten = true ; obs . alertFirstWrite ( ) ; } if ( limit > - 1 ) { if ( total >= limit ) { throw ... | Writes a char . This method will block until the char is actually written . | 158 | 16 |
160,144 | protected void flushChars ( ) throws IOException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { // 306998.15 Tr . debug ( tc , "flushChars" ) ; } if ( ! committed ) { if ( ! _hasFlushed && obs != null ) { _hasFlushed = true ; obs . alertFirstFlush ( ) ; } } committed = true ; if ( count ... | Flushes the writer chars . | 311 | 6 |
160,145 | private void addAddressToList ( String newAddress , boolean validateOnly ) { int start = 0 ; char delimiter = ' ' ; String sub ; int radix = 10 ; // Address initially set to all zeroes int addressToAdd [ ] = new int [ IP_ADDR_NUMBERS ] ; for ( int i = 0 ; i < IP_ADDR_NUMBERS ; i ++ ) { addressToAdd [ i ] = 0 ; } int sl... | Add one IPv4 or IPv6 address to the tree . The address is passed in as a string and converted to an integer array by this routine . Another method is then called to put it into the tree | 377 | 41 |
160,146 | public boolean findInList ( byte [ ] address ) { int len = address . length ; int a [ ] = new int [ len ] ; for ( int i = 0 ; i < len ; i ++ ) { // convert possible negative byte value to positive int a [ i ] = address [ i ] & 0x00FF ; } return findInList ( a ) ; } | Determine if an address represented by a byte array is in the address tree | 79 | 16 |
160,147 | public boolean findInList6 ( byte [ ] address ) { int len = address . length ; int a [ ] = new int [ len / 2 ] ; // IPv6, need to combine every two bytes to the ints int j = 0 ; int highOrder = 0 ; int lowOrder = 0 ; for ( int i = 0 ; i < len ; i += 2 ) { // convert possible negative byte value to positive int highOrde... | Determine if an IPv6 address represented by a byte array is in the address tree | 143 | 18 |
160,148 | public boolean findInList ( int [ ] address ) { int len = address . length ; if ( len < IP_ADDR_NUMBERS ) { int j = IP_ADDR_NUMBERS - 1 ; // for performace, hard code the size here int a [ ] = { 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 } ; // int a[] = new int[IP_ADDR_NUMBERS]; // for (int i = 0; i < IP_ADDR_NUMBERS; i++) // { //... | Determine if an address represented by an integer array is in the address tree | 199 | 16 |
160,149 | private boolean findInList ( int [ ] address , int index , FilterCell cell , int endIndex ) { if ( cell . getWildcardCell ( ) != null ) { // first look at wildcard slot if ( index == endIndex ) { // at the end, so we found a match, unwind returning true return true ; } // go to next level of this tree path FilterCell n... | Determine recursively if an address represented by an integer array is in the address tree | 352 | 19 |
160,150 | public boolean isInstrumentableMethod ( int access , String methodName , String descriptor ) { if ( ( access & Opcodes . ACC_SYNTHETIC ) != 0 ) { return false ; } if ( ( access & Opcodes . ACC_NATIVE ) != 0 ) { return false ; } if ( ( access & Opcodes . ACC_ABSTRACT ) != 0 ) { return false ; } if ( methodName . equals ... | Indicate whether or not the target method is instrumentable . | 151 | 12 |
160,151 | @ Mode ( TestMode . LITE ) @ Test public void MPJwtBadMPConfigAsSystemProperties_GoodMpJwtConfigSpecifiedInServerXml ( ) throws Exception { resourceServer . reconfigureServerUsingExpandedConfiguration ( _testName , "rs_server_AltConfigNotInApp_goodServerXmlConfig.xml" ) ; standardTestFlow ( resourceServer , MpJwtFatCon... | The server will be started with all mp - config properties incorrectly configured in the jvm . options file . The server . xml has a valid mp_jwt config specified . The config settings should come from server . xml . The test should run successfully . | 158 | 51 |
160,152 | @ Override @ FFDCIgnore ( JobExecutionNotRunningException . class ) public void stop ( ) { StopLock stopLock = getStopLock ( ) ; // Store in local variable to facilitate Ctrl+Shift+G search in Eclipse synchronized ( stopLock ) { if ( isStepStartingOrStarted ( ) ) { updateStepBatchStatus ( BatchStatus . STOPPING ) ; // ... | The body of this method is synchronized with startPartition to close timing windows so that a new partition doesn t get started after this method has gone thru and stopped all currently running partitions . | 345 | 37 |
160,153 | private void setExecutionTypeIfNotSet ( ExecutionType executionType ) { if ( this . executionType == null ) { logger . finer ( "Setting initial execution type value" ) ; this . executionType = executionType ; } else { logger . finer ( "Not setting execution type value since it's already set" ) ; } } | We could be more aggressive about validating illegal states and throwing exceptions here . | 70 | 15 |
160,154 | private void validatePlanNumberOfPartitions ( PartitionPlanDescriptor currentPlan ) { int numPreviousPartitions = getTopLevelStepInstance ( ) . getPartitionPlanSize ( ) ; int numCurrentPartitions = currentPlan . getNumPartitionsInPlan ( ) ; if ( logger . isLoggable ( Level . FINE ) ) { logger . fine ( "For step: " + ge... | Verify the number of partitions in the plan makes sense . | 307 | 12 |
160,155 | private boolean isStoppingStoppedOrFailed ( ) { BatchStatus jobBatchStatus = runtimeWorkUnitExecution . getBatchStatus ( ) ; if ( jobBatchStatus . equals ( BatchStatus . STOPPING ) || jobBatchStatus . equals ( BatchStatus . STOPPED ) || jobBatchStatus . equals ( BatchStatus . FAILED ) ) { return true ; } return false ;... | Today we know the PartitionedStepControllerImpl always runs in the JVM of the top - level job and so will be notified on the top - level stop . | 93 | 34 |
160,156 | private void partitionFinished ( PartitionReplyMsg msg ) { JoblogUtil . logToJobLogAndTraceOnly ( Level . FINE , "partition.ended" , new Object [ ] { msg . getPartitionPlanConfig ( ) . getPartitionNumber ( ) , msg . getBatchStatus ( ) , msg . getExitStatus ( ) , msg . getPartitionPlanConfig ( ) . getStepName ( ) , msg ... | Issue message for partition finished and add it to the finishedWork list . | 162 | 14 |
160,157 | private void waitForNextPartitionToFinish ( List < Throwable > analyzerExceptions , List < Integer > finishedPartitions ) throws JobStoppingException { //Use this counter to count the number of cycles we recieve jms reply message boolean isStoppingStoppedOrFailed = false ; PartitionReplyMsg msg = null ; do { //TODO - W... | Wait and process the data sent back by the partitions . This method returns as soon as the next partition sends back an i m finished message . | 549 | 28 |
160,158 | @ FFDCIgnore ( JobStoppingException . class ) private void executeAndWaitForCompletion ( PartitionPlanDescriptor currentPlan ) throws JobRestartException { if ( isStoppingStoppedOrFailed ( ) ) { logger . fine ( "Job already in " + runtimeWorkUnitExecution . getWorkUnitJobContext ( ) . getBatchStatus ( ) . toString ( ) ... | Spawn the partitions and wait for them to complete . | 430 | 10 |
160,159 | private void checkFinishedPartitions ( ) { List < String > failingPartitionSeen = new ArrayList < String > ( ) ; boolean stoppedPartitionSeen = false ; for ( PartitionReplyMsg replyMsg : finishedWork ) { BatchStatus batchStatus = replyMsg . getBatchStatus ( ) ; if ( logger . isLoggable ( Level . FINE ) ) { logger . fin... | check the batch status of each subJob after it s done to see if we need to issue a rollback start rollback if any have stopped or failed | 536 | 31 |
160,160 | @ Override protected void invokePreStepArtifacts ( ) { if ( stepListeners != null ) { for ( StepListenerProxy listenerProxy : stepListeners ) { // Call beforeStep on all the step listeners listenerProxy . beforeStep ( ) ; } } // Invoke the reducer before all parallel steps start (must occur // before mapper as well) if... | Invoke the StepListeners and PartitionReducer . | 104 | 12 |
160,161 | private static String getClassNameandPath ( String className , Path path ) { if ( path == null ) { return getClassNameandPath ( className , "/" ) ; } else { return getClassNameandPath ( className , path . value ( ) ) ; } } | start Liberty change | 60 | 3 |
160,162 | private static boolean checkMethodDispatcher ( ClassResourceInfo cr ) { if ( cr . getMethodDispatcher ( ) . getOperationResourceInfos ( ) . isEmpty ( ) ) { LOG . warning ( new org . apache . cxf . common . i18n . Message ( "NO_RESOURCE_OP_EXC" , BUNDLE , cr . getServiceClass ( ) . getName ( ) ) . toString ( ) ) ; retur... | end Liberty change | 107 | 3 |
160,163 | public void run ( ) { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isDebugEnabled ( ) ) Tr . entry ( tc , "run" ) ; int numPools ; synchronized ( this ) { if ( ivIsCanceled ) { return ; } ivIsRunning = true ; numPools = pools . size ( ) ; if ( numPools > 0 ) { if ( numPool... | Handle the scavenger alarm . Scan the list of pools and drain all inactive ones . | 354 | 17 |
160,164 | private Object addBatch ( Object implObject , Method method , Object [ ] args ) throws IllegalAccessException , IllegalArgumentException , InvocationTargetException , SQLException { Object sqljPstmt = args [ 0 ] ; final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isDebugEnabled... | Invokes addBatch after replacing the parameter with the DB2 impl object if proxied . | 247 | 19 |
160,165 | private Object executeBatch ( Object implObject , Method method , Object [ ] args ) throws IllegalAccessException , IllegalArgumentException , InvocationTargetException , SQLException { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "ex... | Invokes executeBatch and after closing any previous result sets and ensuring statement properties are up - to - date . | 219 | 23 |
160,166 | private Object getReturnResultSet ( Object implObject , Method method ) throws IllegalAccessException , IllegalArgumentException , InvocationTargetException , SQLException { final boolean trace = TraceComponent . isAnyTracingEnabled ( ) ; if ( trace && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "getReturnResultSet" , ... | Invokes getReturnResultSet and wraps the result set . | 373 | 12 |
160,167 | public Object invoke ( Object proxy , Method method , Object [ ] args ) throws Throwable { if ( ! haveStatementPropertiesChanged && VENDOR_PROPERTY_SETTERS . contains ( method . getName ( ) ) ) { haveStatementPropertiesChanged = true ; } // The SQLJ programming model indicates that getSection should be callable on a //... | Intercept the proxy handler to detect changes to statement properties that must be reset on cached statements . | 134 | 19 |
160,168 | public void nextRangeMaximumAvailable ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "nextRangeMaximumAvailable" ) ; synchronized ( _globalUniqueLock ) { _globalUniqueThreshold = _globalUniqueLimit + _midrange ; _globalUniqueLimit = _globalUniqueLimit + _range ; } ... | Callback to inform the generator that the current range of available unique keys has now grown . | 121 | 17 |
160,169 | public byte [ ] transform ( ClassLoader loader , String className , Class < ? > classBeingRedefined , ProtectionDomain protectionDomain , byte [ ] classfileBuffer ) throws IllegalClassFormatException { // Don't modify our own package if ( className . startsWith ( Transformer . class . getPackage ( ) . getName ( ) . rep... | Instrument the classes . | 354 | 5 |
160,170 | public String resolveString ( String value , boolean ignoreWarnings ) throws ConfigEvaluatorException { value = variableEvaluator . resolveVariables ( value , this , ignoreWarnings ) ; return value ; } | Tries to resolve variables . | 48 | 6 |
160,171 | @ SuppressWarnings ( "unchecked" ) public void init ( ) throws ServletException { // Method re-written for PQ47469 String servlets = getRequiredInitParameter ( PARAM_SERVLET_PATHS ) ; StringTokenizer sTokenizer = new StringTokenizer ( servlets ) ; Vector servletChainPath = new Vector ( ) ; while ( sTokenizer . hasMoreT... | Initialize the servlet chainer . | 209 | 8 |
160,172 | public void service ( HttpServletRequest request , HttpServletResponse response ) throws ServletException , IOException { // Method re-written for PQ47469 ServletChain chain = new ServletChain ( ) ; try { String path = null ; for ( int index = 0 ; index < this . chainPath . length ; ++ index ) { path = this . chainPath... | Handle a servlet request by chaining the configured list of servlets . Only the final response in the chain will be sent back to the client . This servlet does not actual generate any content . This servlet only constructs and processes the servlet chain . | 173 | 52 |
160,173 | String getRequiredInitParameter ( String name ) throws ServletException { String value = getInitParameter ( name ) ; if ( value == null ) { throw new ServletException ( MessageFormat . format ( nls . getString ( "Missing.required.initialization.parameter" , "Missing required initialization parameter: {0}" ) , new Objec... | Retrieve a required init parameter by name . | 86 | 9 |
160,174 | private void initializePermissions ( ) { // Set the default restrictable permissions int count = 0 ; if ( tc . isDebugEnabled ( ) ) { if ( isServer ) { Tr . debug ( tc , "running on server " ) ; } else { Tr . debug ( tc , "running on client " ) ; } } if ( isServer ) { count = DEFAULT_SERVER_RESTRICTABLE_PERMISSIONS . l... | InvocationTargetException . class NoSuchMethodException . class SecurityException . class } ) | 744 | 18 |
160,175 | @ Override public PermissionCollection getCombinedPermissions ( PermissionCollection staticPolicyPermissionCollection , CodeSource codesource ) { Permissions effectivePermissions = new Permissions ( ) ; List < Permission > staticPolicyPermissions = Collections . list ( staticPolicyPermissionCollection . elements ( ) ) ... | Combine the static permissions with the server . xml and permissions . xml permissions removing any restricted permission . This is called back from the dynamic policy to obtain the permissions for the JSP classes . | 147 | 38 |
160,176 | private boolean isRestricted ( Permission permission ) { for ( Permission restrictedPermission : restrictablePermissions ) { if ( restrictedPermission . implies ( permission ) ) { return true ; } } return false ; } | Check if this is a restricted permission . | 46 | 8 |
160,177 | public void addPermissionsXMLPermission ( CodeSource codeSource , Permission permission ) { ArrayList < Permission > permissions = null ; String codeBase = codeSource . getLocation ( ) . getPath ( ) ; if ( ! isRestricted ( permission ) ) { if ( permissionXMLPermissionMap . containsKey ( codeBase ) ) { permissions = per... | Adds a permission from the permissions . xml file for the given CodeSource . | 137 | 15 |
160,178 | public NonDelayedClassInfo getClassInfo ( ) { String useName = getName ( ) ; NonDelayedClassInfo useClassInfo = this . classInfo ; if ( useClassInfo != null ) { if ( ! useClassInfo . isJavaClass ( ) && ! ( useClassInfo . isAnnotationPresent ( ) || useClassInfo . isFieldAnnotationPresent ( ) || useClassInfo . isMethodAn... | Assignments to the extra data of the log parms may not be held across other method calls . | 774 | 21 |
160,179 | protected void intialiseNonPersistent ( MultiMEProxyHandler proxyHandler , Neighbours neighbours ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "intialiseNonPersistent" ) ; iProxyHandler = proxyHandler ; iNeighbours = neighbours ; iDestinationManager = iProxyHandler ... | Setup the non persistent state . | 218 | 6 |
160,180 | public final SIBUuid8 getUUID ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , "getUUID" ) ; SibTr . exit ( tc , "getUUID" , iMEUuid ) ; } return iMEUuid ; } | Gets the UUID for this Neighbour | 78 | 9 |
160,181 | public final String getBusId ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , "getBusId" ) ; SibTr . exit ( tc , "getBusId" , iBusId ) ; } return iBusId ; } | Get the Bus name for this Neighbour | 72 | 8 |
160,182 | BusGroup getBus ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , "getBus" ) ; SibTr . exit ( tc , "getBus" , iBusGroup ) ; } return iBusGroup ; } | Gets the Bus for this Neighbour | 68 | 8 |
160,183 | void setBus ( BusGroup busGroup ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "setBus" ) ; iBusGroup = busGroup ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "setBus" ) ; } | Sets the Bus for this Neighbour | 88 | 8 |
160,184 | private synchronized void createProducerSession ( ) throws SIResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "createProducerSession" ) ; if ( iProducerSession == null ) { try { iProducerSession = ( ProducerSessionImpl ) iProxyHandler . getMessageProces... | Creates a producer session for sending the proxy messages to the Neighbours | 304 | 15 |
160,185 | protected void removeSubscription ( SIBUuid12 topicSpace , String topic ) { // Generate a key for the topicSpace/topic final String key = BusGroup . subscriptionKey ( topicSpace , topic ) ; iProxies . remove ( key ) ; } | Remove the subscription in the case of a rollback | 56 | 10 |
160,186 | MESubscription proxyDeregistered ( SIBUuid12 topicSpace , String topic , Transaction transaction ) throws SIResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "proxyDeregistered" , new Object [ ] { topicSpace , topic , transaction } ) ; // Generate a key ... | proxyDeregistered is called on this Neighbour object when a delete proxy subscription is received from a Neighbour . | 583 | 24 |
160,187 | protected void addSubscription ( SIBUuid12 topicSpace , String topic , MESubscription subscription ) { // Generate a key for the topicSpace/topic final String key = BusGroup . subscriptionKey ( topicSpace , topic ) ; iProxies . put ( key , subscription ) ; } | Adds the rolled back subscription to the list . | 64 | 9 |
160,188 | protected MESubscription getSubscription ( SIBUuid12 topicSpace , String topic ) { return ( MESubscription ) iProxies . get ( BusGroup . subscriptionKey ( topicSpace , topic ) ) ; } | Gets the MESubscription represented from this topicSpace and topic | 49 | 14 |
160,189 | void markAllProxies ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "markAllProxies" ) ; final Enumeration enu = iProxies . elements ( ) ; // Cycle through each of the proxies while ( enu . hasMoreElements ( ) ) { final MESubscription sub = ( MESubscription ) enu . ... | Marks all the proxies from this Neighbour . | 155 | 10 |
160,190 | void sweepMarkedProxies ( List topicSpaces , List topics , Transaction transaction , boolean okToForward ) throws SIResourceException , SIException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "sweepMarkedProxies" , new Object [ ] { topicSpaces , topics , transaction... | Removes all Subscriptions that are no longer registered | 500 | 11 |
160,191 | void sendToNeighbour ( JsMessage message , Transaction transaction ) throws SIResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "sendToNeighbour" , new Object [ ] { message , transaction } ) ; if ( iProducerSession == null ) createProducerSession ( ) ; t... | Forwards the message given onto this Neighbours Queue . | 330 | 13 |
160,192 | protected void recoverSubscriptions ( MultiMEProxyHandler proxyHandler ) throws MessageStoreException , SIResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "recoverSubscriptions" , proxyHandler ) ; iProxyHandler = proxyHandler ; iProxies = new Hashtable ... | Recovers the Neighbours subscriptions that it had registered . | 394 | 12 |
160,193 | protected void deleteDestination ( ) throws SIConnectionLostException , SIResourceException , SIErrorException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "deleteDestination" ) ; // If the producer session hasn't been closed, close it now synchronized ( this ) { if ... | Deletes the Queue that would be used for sending proxy update messages to this remote ME . | 322 | 19 |
160,194 | protected void addPubSubOutputHandler ( PubSubOutputHandler handler ) { if ( iPubSubOutputHandlers == null ) iPubSubOutputHandlers = new HashSet ( ) ; // Add the PubSubOutputHandler to the list that this neighbour // knows about. This is so a recovered neighbour can add the list of // output handlers back into the matc... | Add a PubSubOutputHandler to the list of PubSubOutputHandlers that this neighbour knows about . | 89 | 21 |
160,195 | void setRequestedProxySubscriptions ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "setRequestedProxySubscriptions" ) ; MPAlarmManager manager = iProxyHandler . getMessageProcessor ( ) . getAlarmManager ( ) ; iAlarm = manager . create ( REQUEST_TIMER , this ) ; syn... | Indicate that we have sent a request message to this neighbour . | 155 | 13 |
160,196 | void setRequestedProxySubscriptionsResponded ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "setRequestedProxySubscriptionsResponded" ) ; synchronized ( this ) { iRequestSent = false ; if ( ! iAlarmCancelled ) iAlarm . cancel ( ) ; iAlarmCancelled = true ; } String... | The request for proxy subscriptions was responded to . | 265 | 9 |
160,197 | boolean wasProxyRequestSent ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , "wasProxyRequestSent" ) ; SibTr . exit ( tc , "wasProxyRequestSent" , new Boolean ( iRequestSent ) ) ; } return iRequestSent ; } | If a request message was sent to this neighbour for the proxy subscriptions | 78 | 13 |
160,198 | protected void deleteSystemDestinations ( ) throws SIConnectionLostException , SIResourceException , SIErrorException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "deleteSystemDestinations" ) ; // If the producer session hasn't been closed, close it now synchronized ... | Deletes all remote system destinations that are on referencing the me that this neighbour is referenced too . | 403 | 19 |
160,199 | private boolean checkForeignSecurityAttributesChanged ( MESubscription sub , boolean foreignSecuredProxy , String MESubUserId ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "checkForeignSecurityAttributesChanged" , new Object [ ] { sub , new Boolean ( foreignSecuredP... | checkForeignSecurityAttributesChanged is called in order to determine whether security attributes have changed . | 449 | 17 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.