idx int64 0 165k | question stringlengths 73 4.15k | target stringlengths 5 918 | len_question int64 21 890 | len_target int64 3 255 |
|---|---|---|---|---|
160,500 | private void setReady ( ) throws SINotPossibleInCurrentConfigurationException { // If we're not transacted no messages are recoverable Reliability unrecoverable = Reliability . ASSURED_PERSISTENT ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "setReady" , this ) ; // I... | Change the Ready state to true | 204 | 6 |
160,501 | protected void unsetReady ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "unsetReady" , this ) ; //set the ready state _ready = false ; if ( _keyGroup != null ) _keyGroup . groupNotReady ( ) ; // if consumerKey is null then it can't be already in ready state! if ( ... | Change the Ready state to false | 159 | 6 |
160,502 | protected TransactionCommon getAutoCommitTransaction ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , "getAutoCommitTransaction" , this ) ; } TransactionCommon tran = _messageProcessor . getTXManager ( ) . createAutoCommitTransaction ( ) ; if ( TraceComponent . isA... | An autocommit transaction is not threadsafe therefore any users must either prevent concurrent use or use separate transactions . All references in JSLocalConsumerPoint to _autoCommitTransaction are threadsafe so the cached transaction is ok . However callers to this method are not so a new transaction is returned each... | 125 | 64 |
160,503 | public int getMaxActiveMessages ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , "getMaxActiveMessages" ) ; SibTr . exit ( tc , "getMaxActiveMessages" , Integer . valueOf ( _maxActiveMessages ) ) ; } return _maxActiveMessages ; } | Gets the max active message count Currently only used by the unit tests to be sure that the max active count has been updated | 87 | 25 |
160,504 | @ Override public void setMaxActiveMessages ( int maxActiveMessages ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "setMaxActiveMessages" , Integer . valueOf ( maxActiveMessages ) ) ; synchronized ( _asynchConsumerBusyLock ) { this . lock ( ) ; try { synchronized ( _... | Update the max active messages field | 457 | 6 |
160,505 | public boolean contextInfoRequired ( String eventType , long requestNumber ) { boolean needContextInfo = false ; List < ProbeExtension > probeExtnList = RequestProbeService . getProbeExtensions ( ) ; for ( int i = 0 ; i < probeExtnList . size ( ) ; i ++ ) { ProbeExtension probeExtension = probeExtnList . get ( i ) ; if... | This method will check if context information is required or not by processing through each active ProbeExtensions available in PE List | 224 | 23 |
160,506 | public static RequestProbeTransformDescriptor getObjForInstrumentation ( String key ) { RequestProbeTransformDescriptor requestProbeTransformDescriptor = RequestProbeBCIManagerImpl . getRequestProbeTransformDescriptors ( ) . get ( key ) ; return requestProbeTransformDescriptor ; } | getObjForInstrumentation Returns TransformDescriptor with input parameters className methodName and methodDescription | 70 | 21 |
160,507 | boolean addHandle ( SIMessageHandle handle , Map ctxInfo , final boolean canBeDeleted ) { final String methodName = "addHandle" ; if ( TraceComponent . isAnyTracingEnabled ( ) && TRACE . isEntryEnabled ( ) ) { SibTr . entry ( this , TRACE , methodName , new Object [ ] { handle , ctxInfo , canBeDeleted } ) ; } boolean a... | Attemts to add the supplied message handle to the token . This is only done if the context information matches and both messages are BENP or both are not BENP . | 465 | 35 |
160,508 | boolean matches ( Map ctxInfo , boolean canBeDeleted ) { final String methodName = "matches" ; if ( TraceComponent . isAnyTracingEnabled ( ) && TRACE . isEntryEnabled ( ) ) { SibTr . entry ( this , TRACE , methodName , new Object [ ] { ctxInfo , canBeDeleted } ) ; } if ( TraceComponent . isAnyTracingEnabled ( ) && TRAC... | This method checks to see if the supplied information from a message handle matches the information that this token is using . | 546 | 22 |
160,509 | private void updateBufferManager ( Map < String , Object > properties ) { if ( properties . isEmpty ( ) ) { return ; } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEventEnabled ( ) ) { Tr . event ( this , tc , "Ignoring runtime changes to WSBB config; " + properties ) ; } // TODO: should be able to flip leak... | This is used to provide the runtime configuration changes to an existing pool manager which is a small subset of the possible creation properties . | 89 | 25 |
160,510 | private synchronized static void initConfigs ( ) { for ( int i = 0 ; i < moduleIDs . length ; i ++ ) { // add module configs one by one //addModuleInfo(moduleIDs[i] + modulePrefix); // don't do validation since in pre-defined module getConfigFromXMLFile ( getXmlFileName ( modulePrefix + moduleIDs [ i ] ) , true , false... | Init moduleConfigs with array moduleIDs - use modulePrefix because they are all websphere default PMI modules | 93 | 24 |
160,511 | public static PmiModuleConfig getConfig ( String moduleID ) { if ( moduleID == null ) return null ; PmiModuleConfig config = ( PmiModuleConfig ) moduleConfigs . get ( moduleID ) ; if ( config == null ) { // beanModule and com.ibm.websphere.pmi.xml.beanModule will work // if moduleID doesn't have a '.' then use pre-defi... | return PmiModuleConfig for a given moduleID | 260 | 10 |
160,512 | public static PmiModuleConfig findConfig ( PmiModuleConfig [ ] configs , String moduleID ) { if ( moduleID == null ) return null ; for ( int i = 0 ; i < configs . length ; i ++ ) { if ( configs [ i ] . getUID ( ) . equals ( moduleID ) ) // VELA //configs[i].getShortName().equals(moduleID)) return configs [ i ] ; } retu... | return the config for the moduleID | 102 | 7 |
160,513 | public static String getDataName ( String moduleName , int dataId ) { PmiModuleConfig config = PerfModules . getConfig ( moduleName ) ; if ( config == null ) return null ; PmiDataInfo info = config . getDataInfo ( dataId ) ; if ( info == null ) return null ; else return info . getName ( ) ; } | Convert data id to data name | 78 | 7 |
160,514 | public static int getDataId ( String moduleName , String dataName ) { PmiModuleConfig config = PerfModules . getConfig ( moduleName ) ; // attach module name to it - this has to be consistent with the PMI xml config files // under com/ibm/websphere/pmi/xxModule.xml if ( dataName . indexOf ( ' ' ) < 0 ) dataName = modul... | Convert data name to dataId | 120 | 7 |
160,515 | public ConsumerDispatcherState getConsumerDispatcherState ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , "getConsumerDispatcherState" ) ; SibTr . exit ( tc , "getConsumerDispatcherState" , _subState ) ; } return _subState ; } | Returns the subState . | 84 | 5 |
160,516 | private void deleteDurableSubscription ( boolean callProxyCode ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "deleteDurableSubscription" , new Object [ ] { new Boolean ( callProxyCode ) } ) ; HashMap durableSubsTable = _destinationManager . getDurableSubscriptionsTa... | Deletes the durable subscription from the list of durable subscriptions and calls through to the consumer dispatcher to remove the subscription from the MatchSpace . | 479 | 27 |
160,517 | public static TraceComponent register ( Class < ? > aClass , String group ) { return register ( aClass , group , null ) ; } | Register the provided class with the trace service and assign it to the provided group name . | 29 | 17 |
160,518 | public static final void dump ( TraceComponent tc , String msg , Object obj ) { if ( obj != null && obj instanceof Object [ ] ) { com . ibm . websphere . ras . Tr . dump ( tc , msg , ( Object [ ] ) obj ) ; } else { com . ibm . websphere . ras . Tr . dump ( tc , msg , obj ) ; } } | Print the provided message if the input trace component allows dump level messages . | 87 | 14 |
160,519 | public static final void entry ( TraceComponent tc , String methodName , Object obj ) { if ( obj != null && obj instanceof Object [ ] ) { com . ibm . websphere . ras . Tr . entry ( tc , methodName , ( Object [ ] ) obj ) ; } else { com . ibm . websphere . ras . Tr . entry ( tc , methodName , obj ) ; } } | Print the provided message if the input trace component allows entry level messages . | 90 | 14 |
160,520 | public static final void error ( TraceComponent tc , String msg ) { com . ibm . websphere . ras . Tr . error ( tc , msg ) ; } | Print the provided message if the input trace component allows error level messages . | 36 | 14 |
160,521 | public static final void exit ( TraceComponent tc , String methodName , Object obj ) { com . ibm . websphere . ras . Tr . exit ( tc , methodName , obj ) ; } | Print the provided message if the input trace component allows exit level messages . | 43 | 14 |
160,522 | public String getID ( ) { byte [ ] genBytes = new byte [ this . outputSize ] ; synchronized ( this . generator ) { this . generator . nextBytes ( genBytes ) ; } String id = convertSessionIdBytesToSessionId ( genBytes , this . idLength ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr .... | Request the next random ID field from the generator . | 103 | 10 |
160,523 | public MatchResponse merge ( MatchResponse matchResponse ) { if ( matchResponse == null || matchResponse == this ) { return this ; } else { boolean mergedSSLRequired = mergeSSLRequired ( matchResponse . isSSLRequired ( ) ) ; boolean mergedAccessPrecluded = mergeAccessPrecluded ( matchResponse . isAccessPrecluded ( ) ) ... | Merges the roles sslRequired and accessPrecluded fields according to the Servlet 2 . 3 and 3 . 0 specifications . | 119 | 26 |
160,524 | protected boolean mergeSSLRequired ( boolean otherSSLRequired ) { boolean mergedSSLRequired = false ; if ( collectionMatch . isExactMatch ( ) ) { mergedSSLRequired = sslRequired && otherSSLRequired ; } else if ( collectionMatch . isPathMatch ( ) || collectionMatch . isExtensionMatch ( ) ) { mergedSSLRequired = sslRequi... | Merges the sslRequired fields . | 87 | 8 |
160,525 | private void _publishManagedBeanDestroyerListener ( FacesContext facesContext ) { ExternalContext externalContext = facesContext . getExternalContext ( ) ; Map < String , Object > applicationMap = externalContext . getApplicationMap ( ) ; applicationMap . put ( ManagedBeanDestroyerListener . APPLICATION_MAP_KEY , _detr... | Publishes the ManagedBeanDestroyerListener instance in the application map . This allows the FacesConfigurator to access the instance and to set the correct ManagedBeanDestroyer instance on it . | 79 | 42 |
160,526 | public void setFacesInitializer ( FacesInitializer facesInitializer ) // TODO who uses this method? { if ( _facesInitializer != null && _facesInitializer != facesInitializer && _servletContext != null ) { _facesInitializer . destroyFaces ( _servletContext ) ; } _facesInitializer = facesInitializer ; if ( _servletContex... | configure the faces initializer | 101 | 6 |
160,527 | private void dispatchInitializationEvent ( ServletContextEvent event , int operation ) { if ( operation == FACES_INIT_PHASE_PREINIT ) { if ( ! loadFacesInitPluginsJDK6 ( ) ) { loadFacesInitPluginsJDK5 ( ) ; } } List < StartupListener > pluginEntries = ( List < StartupListener > ) _servletContext . getAttribute ( FACES_... | the central initialisation event dispatcher which calls our listeners | 284 | 10 |
160,528 | public void unsetAsynchConsumer ( boolean stoppable ) //SIB0115d.comms throws SISessionUnavailableException , SISessionDroppedException , SIConnectionUnavailableException , SIConnectionDroppedException , SIErrorException , SIIncorrectCallException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled (... | Sends a request to unset the asynchronous consumer . | 748 | 11 |
160,529 | public void exchangeStop ( ) throws SISessionUnavailableException , SISessionDroppedException , SIConnectionUnavailableException , SIConnectionDroppedException , SIResourceException , SIConnectionLostException , SIErrorException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ... | Sends a request to stop the session . | 595 | 9 |
160,530 | public void setSessionId ( short sessionId ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "setSessionId" , "" + sessionId ) ; if ( this . sessionId == 0 && sessionId != 0 ) { this . sessionId = sessionId ; } else { // If the session Id is being set twice this ... | This method will set the ID of the session that we will flow to the server to identify us . | 307 | 20 |
160,531 | public void get ( Object rootVal , MatchSpaceKey msg , EvalCache cache , Object contextValue , SearchResults result ) throws MatchingException , BadMessageFormatMatchingException { if ( tc . isEntryEnabled ( ) ) tc . entry ( this , cclass , "get" , new Object [ ] { rootVal , msg , cache , result } ) ; if ( result insta... | get delegates and also caches and reports whether there are any tests below this point in the tree . | 146 | 19 |
160,532 | public ContentMatcher remove ( Conjunction selector , MatchTarget object , InternTable subExpr , OrdinalPosition parentId ) throws MatchingException { if ( tc . isEntryEnabled ( ) ) tc . entry ( this , cclass , "remove" , "selector: " + selector + ", object: " + object ) ; vacantChild = vacantChild . remove ( selector ... | Remove just delegates | 144 | 3 |
160,533 | public int shrink ( ) { byte [ ] old = buf ; if ( pos == 0 ) { return 0 ; // nothing to do } int n = old . length - pos ; int m ; int p ; int s ; int l ; if ( n < origsize ) { buf = new byte [ origsize ] ; p = pos ; s = origsize - n ; l = old . length - p ; m = old . length - origsize ; pos = s ; } else { buf = new byt... | Shrink the buffer . This will reclaim currently unused space in the buffer reducing memory but potentially increasing the cost of resizing the buffer | 154 | 27 |
160,534 | @ Override public boolean isRRSTransactional ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , hexId ( ) + ":isRRSTransactional()=" + true ) ; } return true ; } | Indicate whether this TranWrapper is RRS transactional | 66 | 13 |
160,535 | protected Compiler createCompiler ( FacesContext context ) { Compiler compiler = new SAXCompiler ( ) ; compiler . setDevelopmentProjectStage ( context . isProjectStage ( ProjectStage . Development ) ) ; loadLibraries ( context , compiler ) ; loadDecorators ( context , compiler ) ; loadOptions ( context , compiler ) ; r... | Creates the Facelet page compiler . | 75 | 8 |
160,536 | protected FaceletFactory createFaceletFactory ( FacesContext context , Compiler compiler ) { ExternalContext eContext = context . getExternalContext ( ) ; // refresh period long refreshPeriod ; if ( context . isProjectStage ( ProjectStage . Production ) ) { refreshPeriod = WebConfigParamUtils . getLongInitParameter ( e... | Creates a FaceletFactory instance using the specified compiler . | 375 | 12 |
160,537 | protected String getResponseContentType ( FacesContext context , String orig ) { String contentType = orig ; // see if we need to override the contentType Map < Object , Object > m = context . getAttributes ( ) ; if ( m . containsKey ( "facelets.ContentType" ) ) { contentType = ( String ) m . get ( "facelets.ContentTyp... | Generate the content type | 170 | 5 |
160,538 | protected String getResponseEncoding ( FacesContext context , String orig ) { String encoding = orig ; // see if we need to override the encoding Map < Object , Object > m = context . getAttributes ( ) ; Map < String , Object > sm = context . getExternalContext ( ) . getSessionMap ( ) ; // 1. check the request attribut... | Generate the encoding | 342 | 4 |
160,539 | protected void initialize ( FacesContext context ) { log . finest ( "Initializing" ) ; Compiler compiler = createCompiler ( context ) ; _faceletFactory = createFaceletFactory ( context , compiler ) ; ExternalContext eContext = context . getExternalContext ( ) ; _initializeBuffer ( eContext ) ; _initializeMode ( eContex... | Initialize the ViewHandler during its first request . | 250 | 10 |
160,540 | private Facelet _getFacelet ( FacesContext context , String viewId ) throws IOException { // grab our FaceletFactory and create a Facelet FaceletFactory . setInstance ( _faceletFactory ) ; try { return _faceletFactory . getFacelet ( context , viewId ) ; } finally { FaceletFactory . setInstance ( null ) ; } } | Gets the Facelet representing the specified view identifier . | 77 | 11 |
160,541 | @ Override protected void retrieveBundleContext ( ) { BundleContext bc = TxBundleTools . getBundleContext ( ) ; if ( tc . isDebugEnabled ( ) ) Tr . debug ( tc , "retrieveBundleContext from TxBundleTools, bc " + bc ) ; if ( bc == null ) { bc = EmbeddableTxBundleTools . getBundleContext ( ) ; if ( tc . isDebugEnabled ( )... | This method retrieves bundle context from the the ws . tx . embeddable bundle so that if that bundle has started before the tx . jta bundle then we are still able to access the Service Registry . | 132 | 43 |
160,542 | public synchronized void setRequestBufferSize ( int size ) { if ( size <= 0 ) { throw new IllegalArgumentException ( "request buffer size must be greater than zero" ) ; } if ( this . requestBuffer . size ( ) != 0 ) { throw new IllegalStateException ( "cannot resize non-empty ThreadPool request buffer" ) ; } this . requ... | Sets the size of the request buffer . If work has been dispatched on this thread pool the behavior of this method and all subsequent calls to this pool are undefined . | 113 | 33 |
160,543 | @ Deprecated protected void addThread ( Runnable command ) { Worker worker ; if ( _isDecoratedZOS ) // 331761A worker = new DecoratedZOSWorker ( command , threadid ++ ) ; // 331761A else // 331761A worker = new Worker ( command , threadid ++ ) ; // LIDB1855-58 // D527355.3 - If the current thread is an application thre... | Create and start a thread to handle a new command . Call only when holding lock . | 387 | 17 |
160,544 | @ Deprecated public int createThreads ( int numberOfThreads ) { int ncreated = 0 ; for ( int i = 0 ; i < numberOfThreads ; ++ i ) { synchronized ( this ) { if ( poolSize_ < maximumPoolSize_ ) { addThread ( null ) ; ++ ncreated ; } else break ; } } return ncreated ; } | Create and start up to numberOfThreads threads in the pool . Return the number created . This may be less than the number requested if creating more would exceed maximum pool size bound . | 78 | 37 |
160,545 | @ Deprecated protected synchronized void workerDone ( Worker w , boolean taskDied ) { threads_ . remove ( w ) ; if ( taskDied ) { -- activeThreads ; -- poolSize_ ; } if ( poolSize_ == 0 && shutdown_ ) { maximumPoolSize_ = minimumPoolSize_ = 0 ; // disable new threads notifyAll ( ) ; // notify awaitTerminationAfterShutd... | Cleanup method called upon termination of worker thread . | 97 | 10 |
160,546 | @ Deprecated protected Runnable getTask ( boolean oldThread ) throws InterruptedException { // PK77809 long waitTime ; Runnable r = null ; boolean firstTime = true ; while ( true ) { synchronized ( this ) { // System.out.println("1 " + activeThreads + " : " + poolSize_); if ( firstTime ) { -- activeThreads ; // PK77809... | Get a task from the handoff queue or null if shutting down . | 471 | 14 |
160,547 | public void setDecoratedZOS ( ) { // 331761A if ( xMemSetupThread == null ) { try { final Class xMemCRBridgeClass = Class . forName ( "com.ibm.ws390.xmem.XMemCRBridgeImpl" ) ; xMemSetupThread = xMemCRBridgeClass . getMethod ( "setupThreadStub" , new Class [ ] { java . lang . Object . class } ) ; } catch ( Throwable t )... | sets this thread pool to create threads which are decorated via setupThreadStub | 208 | 15 |
160,548 | public void executeOnDaemon ( Runnable command ) { int id = 0 ; final Runnable commandToRun = command ; synchronized ( this ) { this . daemonId ++ ; id = this . daemonId ; } final String runId = name + " : DMN" + id ; // d185137.2 Thread t = ( Thread ) AccessController . doPrivileged ( new PrivilegedAction ( ) { // d18... | Dispatch work on a daemon thread . This thread is not accounted for in the pool . There are no corresponding ThreadPoolListener events . There is no MonitorPlugin support . | 158 | 33 |
160,549 | public void execute ( Runnable command , int blockingMode ) throws InterruptedException , ThreadPoolQueueIsFullException , IllegalStateException { // D186668 execute ( command , blockingMode , 0 ) ; } | Arrange for the given command to be executed by a thread in this pool . The call s behavior when the pool and its internal request queue are at full capacity is determined by the blockingMode . | 45 | 39 |
160,550 | public Runnable execute ( Runnable command , long timeoutInMillis ) throws InterruptedException , IllegalStateException { try { return execute ( command , WAIT_WHEN_QUEUE_IS_FULL , timeoutInMillis ) ; } catch ( ThreadPoolQueueIsFullException e ) { // we should not get here. // Alex Ffdc.log(e, this, ThreadPool.class.ge... | Arrange for the given command to be executed by a thread in this pool . If the pools internal request buffer is full the call will block for at most timeoutInMillis milliseconds . | 107 | 37 |
160,551 | public void setMonitorPlugin ( MonitorPlugin plugin ) throws TooManyListenersException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { Tr . entry ( tc , "setMonitorPlugin" , plugin ) ; } if ( this . monitorPlugin != null && ! this . monitorPlugin . equals ( plugin ) ) { throw new TooManyL... | Registers a MonitorPlugin with this thread pool . Only one plugin is supported in the current implementation . | 147 | 20 |
160,552 | public void checkAllThreads ( ) { // if nothing is plugged in, exit early if ( this . monitorPlugin == null ) { return ; } long currentTime = 0 ; // lazily initialize current time try { for ( Iterator i = this . threads_ . values ( ) . iterator ( ) ; i . hasNext ( ) ; ) { Worker thread = ( Worker ) i . next ( ) ; synch... | Checks all active threads in this thread pool to determine if they are hung . The definition of hung is provided by the MonitorPlugin . | 327 | 27 |
160,553 | public FilterCellSlowStr findNextCell ( String nextValue ) { if ( nextCell == null ) { return null ; } return nextCell . get ( nextValue ) ; } | Find the next cell for a given string which may come after this cell in the address tree . | 37 | 19 |
160,554 | protected boolean invokeGeneratePluginCfgMBean ( ParseLoginAddress loginAddress , String clusterName , String targetPath , String option ) { boolean success = false ; try { success = connection . generatePluginConfig ( loginAddress , clusterName , targetPath , option ) ; if ( success ) success = copyFileToTargetPath ( ... | Invokes MBean for generatePluginConfig to generate plugin configuration file | 580 | 14 |
160,555 | public static TraceFactory getTraceFactory ( NLS nls ) { return ( TraceFactory ) Utils . getImpl ( "com.ibm.ws.objectManager.utils.TraceFactoryImpl" , new Class [ ] { NLS . class } , new Object [ ] { nls } ) ; } | Create a platform specific TraceFactory instance . | 67 | 8 |
160,556 | public void setActiveTrace ( String activeNames , int traceLevel ) throws java . io . IOException { TraceFactory . activeNames = activeNames ; TraceFactory . traceLevel = traceLevel ; ; } | Specify what to trace and start tracing it . | 43 | 10 |
160,557 | protected void setSICoreConnection ( SICoreConnection connection ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "setSICoreConnection" , connection ) ; //Retrieve Client Conversation State if necessary validateConversationState ( ) ; cConState . setSICoreConnec... | Sets the SICoreConnection reference on the server | 127 | 11 |
160,558 | public Serializable copy ( Serializable obj ) { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isDebugEnabled ( ) ) Tr . debug ( tc , "copy : " + Util . identity ( obj ) ) ; // ----------------------------------------------------------------------- // Optimize copyObject by ... | Make a copy of an object by writing it out to stream and reading it back again . This will make a deep copy of the object . | 525 | 28 |
160,559 | public ScheduleExpression copy ( ScheduleExpression schedule ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) Tr . debug ( tc , "copy ScheduleExpression: " + Util . identity ( schedule ) ) ; // 'schedule' could be a subclass of ScheduleExpression, so only // use the base class constructor ... | Make a copy of a ScheduleExpression object . | 133 | 10 |
160,560 | public static ScheduleExpression copyBase ( ScheduleExpression schedule ) // d632906 { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) Tr . debug ( tc , "copy copyBase: " + Util . identity ( schedule ) ) ; // 'schedule' could be a subclass of ScheduleExpression. // Use only the base class con... | Make a copy of a javax . ejb . ScheduleExpression portion of the object . | 244 | 21 |
160,561 | BigInteger setMultiChoiceCount ( ) { if ( fields != null ) for ( int i = 0 ; i < fields . length ; i ++ ) multiChoiceCount = multiChoiceCount . multiply ( fields [ i ] . setMultiChoiceCount ( ) ) ; return multiChoiceCount ; } | Set the multiChoiceCount for this tuple | 60 | 8 |
160,562 | public JSVariant [ ] getDominatedVariants ( ) { if ( dominated == null ) { List dom = new ArrayList ( ) ; getDominatedVariants ( dom ) ; dominated = ( JSVariant [ ] ) dom . toArray ( new JSVariant [ 0 ] ) ; } return dominated ; } | Identify any variants that are descendents of this tuple either directly or via other tuples . Used in MessageMap construction . | 67 | 25 |
160,563 | public static ChainStartMode getKey ( int ordinal ) { if ( ordinal >= 0 && ordinal < _values . length ) { return _values [ ordinal ] ; } return null ; } | Get the chain start mode definition for this ordinal . | 42 | 11 |
160,564 | public static InjectionTarget getInjectionTarget ( ComponentNameSpaceConfiguration compNSConfig , ClientInjection injection ) throws InjectionException { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "getInjectionTarget: " + injection ... | Acquires an InjectionTarget for the specified ClientInjection . | 269 | 14 |
160,565 | protected ArrayList filterXidsByType ( Xid [ ] xidArray ) { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "filterXidsByType" , xidArray ) ; final ArrayList < XidImpl > xidList = new ArrayList < XidImpl > ( ) ; if ( xidArray != null ) { /*----------------------------------------------------------*/ /* Iterate over th... | Removes all non - WAS Xids from an array of Xids and puts them in an ArrayList structure . | 621 | 23 |
160,566 | protected ArrayList filterXidsByCruuidAndEpoch ( ArrayList xidList , byte [ ] cruuid , int epoch ) { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "filterXidsByCruuidAndEpoch" , new Object [ ] { xidList , cruuid , epoch } ) ; for ( int x = xidList . size ( ) - 1 ; x >= 0 ; x -- ) { final XidImpl ourXid = ( XidImpl )... | Removes all Xids from an ArrayList that don t have our cruuid in their bqual . Assumes that all Xids are XidImpls . | 421 | 33 |
160,567 | protected boolean canWeForgetXid ( XidImpl ourXid , Xid [ ] knownXids ) { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "canWeForgetXid" , new Object [ ] { ourXid , knownXids } ) ; if ( tc . isDebugEnabled ( ) ) { // We are only called if knownXids != null for ( int i = 0 ; i < knownXids . length ; i ++ ) { Tr . deb... | Iterates over the list of known Xids retrieved from transaction service and tries to match the given javax . transaction . xa . Xid with one of them . | 814 | 35 |
160,568 | private static void propogateSecureSession ( HttpServletRequest request , Message message ) { final String cipherSuite = ( String ) request . getAttribute ( SSL_CIPHER_SUITE_ATTRIBUTE ) ; if ( cipherSuite != null ) { final java . security . cert . Certificate [ ] certs = ( java . security . cert . Certificate [ ] ) req... | Propogate in the message a TLSSessionInfo instance representative of the TLS - specific information in the HTTP request . | 132 | 24 |
160,569 | private void cacheInput ( Message outMessage ) { if ( outMessage . getExchange ( ) == null ) { return ; } Message inMessage = outMessage . getExchange ( ) . getInMessage ( ) ; if ( inMessage == null ) { return ; } Object o = inMessage . get ( "cxf.io.cacheinput" ) ; DelegatingInputStream in = inMessage . getContent ( D... | On first write we need to make sure any attachments and such that are still on the incoming stream are read in . Otherwise we can get into a deadlock where the client is still trying to send the request but the server is trying to send the response . Neither side is reading and both blocked on full buffers . Not a good... | 327 | 67 |
160,570 | public static void processException ( Object source , Class sourceClass , String methodName , Throwable throwable , String probe , Object [ ] objects ) { if ( TraceComponent . isAnyTracingEnabled ( ) && trace . isEntryEnabled ( ) ) trace . entry ( cclass , "processException" , new Object [ ] { source , sourceClass , me... | Process an exception for a non static class . | 219 | 9 |
160,571 | static void print ( Object object , java . io . PrintWriter printWriter ) { if ( object instanceof Printable ) { ( ( Printable ) object ) . print ( printWriter ) ; } else { printWriter . print ( object ) ; } // if (object instanceof Printable). } | Dump an Object to a java . io . PrintWriter . | 62 | 13 |
160,572 | byte [ ] getServiceData ( ) throws InternalLogException { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "getServiceData" , this ) ; // Check that the file is actually open if ( _activeFile == null ) { if ( tc . isEntryEnabled ( ) ) Tr . exit ( tc , "getServiceData" , "InternalLogException" ) ; throw new InternalLogE... | Package access method to return the current service data . | 167 | 10 |
160,573 | LogFileHeader logFileHeader ( ) throws InternalLogException { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "logFileHeader" , this ) ; // Check that the file is actually open if ( _activeFile == null ) { if ( tc . isEntryEnabled ( ) ) Tr . exit ( tc , "logFileHeader" , "InternalLogException" ) ; throw new InternalLo... | Returns the LogFileHeader for the currently active log file . | 145 | 12 |
160,574 | ArrayList < ReadableLogRecord > recoveredRecords ( ) { if ( tc . isDebugEnabled ( ) ) Tr . debug ( tc , "recoveredRecords" , _recoveredRecords ) ; return _recoveredRecords ; } | Returns an array of ReadableLogRecords retrieved when the recovery log was opened . | 52 | 17 |
160,575 | void setServiceData ( byte [ ] serviceData ) throws InternalLogException { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "setServiceData" , new java . lang . Object [ ] { RLSUtils . toHexString ( serviceData , RLSUtils . MAX_DISPLAY_BYTES ) , this } ) ; // Check that the files are available if ( ( _file1 == null ) |... | Package access method to replace the existing service data with the new service data . | 228 | 15 |
160,576 | protected void writeLogRecord ( LogRecord logRecord ) { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "writeLogRecord" , logRecord ) ; _activeFile . writeLogRecord ( logRecord ) ; if ( tc . isEntryEnabled ( ) ) Tr . exit ( tc , "writeLogRecord" ) ; } | Do any necessary under the covers work to write the LogRecord . | 74 | 13 |
160,577 | public static Map < String , String > processArchiveManifest ( final JarFile jarFile ) throws Throwable { Map < String , String > manifestAttrs = null ; if ( jarFile != null ) { try { manifestAttrs = AccessController . doPrivileged ( new PrivilegedExceptionAction < Map < String , String > > ( ) { @ Override public Map ... | Gets the archive file Manifest attributes as a String Map from a jar file . | 229 | 16 |
160,578 | public static Map < String , String > processArchiveManifest ( final File file ) throws Throwable { Map < String , String > manifestAttrs = null ; if ( file != null && file . isFile ( ) && ArchiveFileType . JAR . isType ( file . getPath ( ) ) ) { JarFile jarFile = null ; try { jarFile = new JarFile ( file ) ; manifestA... | Gets the archive file Manifest attributes as a String Map from a file . | 129 | 15 |
160,579 | public static String getLicenseAgreement ( final JarFile jar , final Map < String , String > manifestAttrs ) { String licenseAgreement = null ; if ( manifestAttrs . isEmpty ( ) ) { return licenseAgreement ; } String licenseAgreementPrefix = manifestAttrs . get ( ArchiveUtils . LICENSE_AGREEMENT ) ; LicenseProvider lice... | Gets the license agreement for the jar file . | 149 | 10 |
160,580 | public void deactivate ( ComponentContext context ) { if ( contextRef . get ( ) == null ) { // Components are only deactivated if they activate successfully, // and component instances are discarded after being deactivated. // This is either DS or programmer error. throw new IllegalStateException ( "not activated" ) ; ... | Deactivates the map . Will trigger a release of all held services . | 77 | 15 |
160,581 | public void init ( HttpInboundServiceContext sc ) { // for requests, we don't care about the validation setHeaderValidation ( false ) ; setOwner ( sc ) ; setBinaryParseState ( HttpInternalConstants . PARSING_BINARY_VERSION ) ; } | Initialize this incoming HTTP request message . | 63 | 8 |
160,582 | public void init ( HttpOutboundServiceContext sc ) { // for requests, we don't care about the validation setHeaderValidation ( false ) ; setOwner ( sc ) ; setBinaryParseState ( HttpInternalConstants . PARSING_BINARY_VERSION ) ; setVersion ( getServiceContext ( ) . getHttpConfig ( ) . getOutgoingVersion ( ) ) ; } | Initialize this outgoing HTTP request message . | 86 | 8 |
160,583 | public void init ( HttpInboundServiceContext sc , BNFHeaders hdrs ) { // for requests, we don't care about the validation setHeaderValidation ( false ) ; setOwner ( sc ) ; setBinaryParseState ( HttpInternalConstants . PARSING_BINARY_VERSION ) ; if ( null != hdrs ) { hdrs . duplicate ( this ) ; } } | Initialize this incoming HTTP request message with specific headers ie . ones stored in a cache perhaps . | 90 | 19 |
160,584 | public void init ( HttpOutboundServiceContext sc , BNFHeaders hdrs ) { // for requests, we don't care about the validation setHeaderValidation ( false ) ; setOwner ( sc ) ; setBinaryParseState ( HttpInternalConstants . PARSING_BINARY_VERSION ) ; if ( null != hdrs ) { hdrs . duplicate ( this ) ; } setVersion ( getServic... | Initialize this outgoing HTTP request message with specific headers ie . ones stored in a cache perhaps . | 113 | 19 |
160,585 | @ Override public WsByteBuffer [ ] encodePseudoHeaders ( ) { WsByteBuffer [ ] firstLine = new WsByteBuffer [ 1 ] ; firstLine [ 0 ] = allocateBuffer ( getOutgoingBufferSize ( ) ) ; LiteralIndexType indexType = LiteralIndexType . NOINDEXING ; //For the time being, there will be no indexing on the responses to guarantee /... | of the first line . | 610 | 5 |
160,586 | @ Override public void setMethod ( String method ) throws UnsupportedMethodException { MethodValues val = MethodValues . match ( method , 0 , method . length ( ) ) ; if ( null == val ) { throw new UnsupportedMethodException ( "Illegal method " + method ) ; } setMethod ( val ) ; } | Set the method of this request to the given String if it is valid . | 68 | 15 |
160,587 | @ Override public void setMethod ( MethodValues method ) { this . myMethod = method ; super . setFirstLineChanged ( ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEventEnabled ( ) ) { Tr . event ( tc , "setMethod(v): " + ( null != method ? method . getName ( ) : null ) ) ; } } | Set the request method to the given value . | 83 | 9 |
160,588 | @ Override final public String getRequestURI ( ) { if ( null == this . myURIString ) { this . myURIString = GenericUtils . getEnglishString ( this . myURIBytes ) ; } return this . myURIString ; } | Query the value of the request URI . | 53 | 8 |
160,589 | private String getTargetHost ( ) { String host = getVirtualHost ( ) ; if ( null == host ) { host = ( isIncoming ( ) ) ? getServiceContext ( ) . getLocalAddr ( ) . getCanonicalHostName ( ) : getServiceContext ( ) . getRemoteAddr ( ) . getCanonicalHostName ( ) ; } return host ; } | Find the target host of the request . This checks the VirtualHost data but falls back on the socket layer target if need be . | 83 | 26 |
160,590 | private int getTargetPort ( ) { int port = getVirtualPort ( ) ; if ( NOTSET == port ) { port = ( isIncoming ( ) ) ? getServiceContext ( ) . getLocalPort ( ) : getServiceContext ( ) . getRemotePort ( ) ; } return port ; } | Find the target port of the request . This checks the VirtualPort data and falls back on the socket port information if need be . | 64 | 26 |
160,591 | @ Override public int getVirtualPort ( ) { if ( HeaderStorage . NOTSET != this . iUrlPort ) { // use the port from the parsed URL return this . iUrlPort ; } if ( NOT_PRESENT <= this . iHdrPort ) { // already searched the header value and either found it or not, // either way, return what we saved return this . iHdrPort... | Query the target port of this request . It will first check for a port in the URL string and if not found it will check the Host header . This will return - 1 if it is not found in either spot . | 660 | 44 |
160,592 | private void parseURI ( byte [ ] data , int start ) { // at this point, we're parsing /URI [?querystring] if ( start >= data . length ) { // PK22096 - default to "/" if not found, should have caught empty // string inputs previously (http://host:port is valid) this . myURIBytes = SLASH ; if ( tc . isDebugEnabled ( ) ) ... | Parse the URI information out of the input data along with any query information found afterwards . If format errors are found then an exception is thrown . | 363 | 29 |
160,593 | private void parseScheme ( byte [ ] data ) { // we know the first character is correct, find the colon for ( int i = 1 ; i < data . length ; i ++ ) { if ( ' ' == data [ i ] ) { SchemeValues val = SchemeValues . match ( data , 0 , i ) ; if ( null == val ) { throw new IllegalArgumentException ( "Invalid scheme inside URL... | Parse the scheme marker out of the input data and then start the parse for the next section . If any errors are encountered then an exception is thrown . | 229 | 31 |
160,594 | @ Override public void setRequestURI ( byte [ ] uri ) { if ( null == uri || 0 == uri . length ) { throw new IllegalArgumentException ( "setRequestURI: null input" ) ; } super . setFirstLineChanged ( ) ; if ( ' ' == uri [ 0 ] ) { // URI of "*" can only be one character long to be valid if ( 1 != uri . length && ' ' != u... | Allow the user to set the URI in the HttpRequest to the given byte array prior to sending the request . | 380 | 23 |
160,595 | public void initScheme ( ) { // set the scheme based on whether the socket is secure or not if ( null == getServiceContext ( ) || null == getServiceContext ( ) . getTSC ( ) ) { // discrimination path, not ready for this yet return ; } if ( getServiceContext ( ) . isSecure ( ) ) { this . myScheme = SchemeValues . HTTPS ... | Initialize the scheme information based on the socket being secure or not . | 99 | 14 |
160,596 | @ Override public String getScheme ( ) { // if it hasn't been set yet, then check whether the SC is secure // or not and set the value accordingly if ( null == this . myScheme ) { initScheme ( ) ; } if ( null == this . myScheme ) { // if the request has been already destroyed then it will be still null return null ; } ... | Query the value of the scheme . | 95 | 7 |
160,597 | @ Override public void setScheme ( SchemeValues scheme ) { this . myScheme = scheme ; super . setFirstLineChanged ( ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "setScheme(v): " + ( null != scheme ? scheme . getName ( ) : null ) ) ; } } | Set the value of the scheme in the Request by using the int identifiers . | 86 | 15 |
160,598 | private void deserializeMethod ( ObjectInput stream ) throws IOException , ClassNotFoundException { MethodValues method = null ; if ( SERIALIZATION_V2 == getDeserializationVersion ( ) ) { method = MethodValues . find ( readByteArray ( stream ) ) ; } else { method = MethodValues . find ( ( String ) stream . readObject (... | Deserialize the method information from the input stream . | 108 | 11 |
160,599 | private void deserializeScheme ( ObjectInput stream ) throws IOException , ClassNotFoundException { SchemeValues scheme = null ; if ( SERIALIZATION_V2 == getDeserializationVersion ( ) ) { byte [ ] value = readByteArray ( stream ) ; if ( null == value ) { throw new IOException ( "Missing scheme" ) ; } scheme = SchemeVal... | Deserialize the scheme information from the input stream . | 122 | 11 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.