idx int64 0 165k | question stringlengths 73 5.81k | target stringlengths 5 918 |
|---|---|---|
162,600 | public void sendSilenceMessage ( long startStamp , long endStamp , long completedPrefix , boolean requestedOnly , int priority , Reliability reliability , SIBUuid12 stream ) throws SIResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "sendSilenceMessage" ... | sendSilenceMessage may be called from InternalOutputStream when a Nack is recevied |
162,601 | public void sendLinkMessage ( MessageItem msgItem , boolean rollback ) throws SIResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "sendLinkMessage" , msgItem ) ; JsMessage jsMsg = null ; try { jsMsg = msgItem . getMessage ( ) . getReceived ( ) ; } catch ... | properties need to be set on the mssage |
162,602 | public void removeStream ( SIBUuid12 stream ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "removeStream" , stream ) ; _internalOutputStreamManager . remove ( stream ) ; deregisterControlAdapterMBean ( ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntry... | This method is called by the input handler when it flushes a local stream . This is our cue to remove any data structures we may be maintaining for this stream . |
162,603 | public void setTopicSpaceMapping ( String foreignTSName ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "setTopicSpaceMapping" , foreignTSName ) ; _routingDestination = SIMPUtils . createJsDestinationAddress ( foreignTSName , null , _neighbour . getBusId ( ) ) ; this ... | Creates the JsDestinationAddress object passed over in publications to foreign buses . |
162,604 | public SynchronizationRegistryUOWScope getCurrentTransactionalUOW ( boolean checkMarkedRollback ) throws CSITransactionRolledbackException { UOWCoordinator coord = uowCurrent . getUOWCoord ( ) ; if ( coord != null ) { if ( checkMarkedRollback && coord . getRollbackOnly ( ) ) { if ( TraceComponent . isAnyTracingEnabled ... | Added checkMarkedRollback parameter . d166414 |
162,605 | public void setRollbackOnly ( ) { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) { Tr . entry ( tc , "setRollbackOnly" , this ) ; } LocalTransactionCoordinator lCoord = getLocalCoord ( ) ; if ( lCoord != null ) { lCoord . setRollbackOnly ( ) ; } else { t... | Marks the current local or global transaction to be rolled back |
162,606 | public boolean getRollbackOnly ( ) { LocalTransactionCoordinator lCoord = getLocalCoord ( ) ; if ( lCoord != null ) { return ( lCoord . getRollbackOnly ( ) ) ; } else { int status = Status . STATUS_NO_TRANSACTION ; try { status = txService . getStatus ( ) ; } catch ( SystemException e ) { FFDCFilter . processException ... | Returns true iff the current local or global transaction has been marked rollback only |
162,607 | public void enlistWithTransaction ( javax . transaction . Synchronization sync ) throws CSIException { SynchronizationRegistryUOWScope uowScope = getCurrentTransactionalUOW ( false ) ; if ( uowScope == null ) { throw new IllegalStateException ( "No active transaction" ) ; } enlistWithTransaction ( uowScope , sync ) ; } | Enlist synchronization instance with the current local or global transaction . |
162,608 | public void enlistWithTransaction ( SynchronizationRegistryUOWScope uowCoord , Synchronization sync ) throws CSIException { try { if ( uowCoord . getUOWType ( ) == UOWSynchronizationRegistry . UOW_TYPE_GLOBAL_TRANSACTION ) { ( ( Transaction ) uowCoord ) . registerSynchronization ( sync ) ; } else { ( ( LocalTransaction... | Enlist synchronization instance with the specified UOWCoord |
162,609 | final LocalTransactionCoordinator beginLocalTx ( ) { LocalTransactionCoordinator lCoord = null ; try { ltcCurrent . begin ( ) ; lCoord = getLocalCoord ( ) ; if ( TraceComponent . isAnyTracingEnabled ( ) ) { if ( tc . isEventEnabled ( ) ) { if ( lCoord != null ) { Tr . event ( tc , "Began LTC cntxt: tid=" + Integer . to... | Begin a new local trasaction context |
162,610 | final Transaction suspendGlobalTx ( int action ) throws CSIException { Transaction ctrl = null ; try { ctrl = txService . suspend ( ) ; if ( TraceComponent . isAnyTracingEnabled ( ) ) { if ( tc . isEventEnabled ( ) ) Tr . event ( tc , "Suspending TX cntxt: " + ctrl ) ; if ( TETxLifeCycleInfo . isTraceEnabled ( ) ) { St... | Suspend the current global transaction and return the Control instance for it ; the inactivity timeout is either started or stopped according to action . If no global transaction exists on the thread do nothing ; returned Control object will be null is this case |
162,611 | final void resumeGlobalTx ( Transaction ctrl , int action ) throws SystemException , InvalidTransactionException { try { txService . resume ( ctrl ) ; } catch ( SystemException e ) { FFDCFilter . processException ( e , CLASS_NAME + ".resumeGlobalTx" , "814" , this ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc... | Resume the global transaction associated with the given Control instance . The inactivity timeout is either started or stopped according to action . If InvalidTransactionException is raised by the global tx service it is passed on to the caller of this method . |
162,612 | final public void completeTxTimeout ( ) throws CSITransactionRolledbackException { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; try { if ( isTraceOn && tc . isEntryEnabled ( ) ) { Tr . entry ( tc , "completeTxTimeout" ) ; } txService . completeTxTimeout ( ) ; } catch ( TransactionRolledbackExcep... | Complete processing of passive transaction timeout . The timer pops on a timeout thread ; the transaction is rolled back on the application thread when the container has control . d171654 |
162,613 | public boolean isBmtActive ( EJBMethodInfoImpl methodInfo ) { TranStrategy ts = txStrategies [ methodInfo . getTransactionAttribute ( ) . getValue ( ) ] ; return ts . isBmtActive ( ) ; } | 167937 - added entire method |
162,614 | public BundleList findExtraBundles ( BundleList newBundleList , FeatureManager featureManager ) { List < RuntimeFeatureResource > bundles = new ArrayList < RuntimeFeatureResource > ( resources ) ; bundles . removeAll ( newBundleList . resources ) ; resources . removeAll ( bundles ) ; BundleList result = new BundleList ... | This is like retain all except it returns a list of what was removed . |
162,615 | @ FFDCIgnore ( NumberFormatException . class ) private void readWriteTimeAndJavaSpecVersion ( WsResource res , String line ) { int timeIndex = line . indexOf ( '=' ) ; int javaSpecVersionIndex = timeIndex >= 0 ? line . indexOf ( ';' , timeIndex ) : - 1 ; if ( timeIndex != - 1 ) { try { String sTime = javaSpecVersionInd... | ignore the NumberFormatException as we deal with it . |
162,616 | public synchronized void add ( int id , SICoreConnection connection ) { if ( tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "add" , "" + id ) ; map . put ( id , connection ) ; if ( tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "add" ) ; } | Adds an SICoreConnection into this map with the specified ID . |
162,617 | public synchronized SICoreConnection get ( int id ) { if ( tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "get" , "" + id ) ; SICoreConnection retValue = ( SICoreConnection ) map . get ( id ) ; if ( tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "get" , retValue ) ; return retValue ; } | Returns the SICoreConnection previously stored with the specified ID . |
162,618 | public synchronized void remove ( int id ) { if ( tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "remove" , "" + id ) ; if ( tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "remove" , "" + id ) ; map . remove ( id ) ; } | Removes an SICoreConnection from the map . |
162,619 | public Selector resolve ( Selector tree , Resolver resolver , PositionAssigner positionAssigner ) { if ( tree instanceof Identifier ) { Identifier id = ( Identifier ) tree ; return resolver . resolve ( id , positionAssigner ) ; } else if ( tree . getNumIds ( ) > 0 ) { Operator oper = ( Operator ) tree ; for ( int i = 0... | Walks a Selector tree and resolves all the Identifiers |
162,620 | private static Selector DNF0 ( Selector tree ) { if ( ! ( tree instanceof Operator ) ) return tree ; Operator oper = ( Operator ) tree ; switch ( oper . getOp ( ) ) { case Selector . AND : return processAND ( oper . getOperands ( ) [ 0 ] , oper . getOperands ( ) [ 1 ] ) ; case Selector . OR : return makeOR ( DNF0 ( ope... | Working recursive subroutine of DNF |
162,621 | private static Selector processAND ( Selector sel0 , Selector sel1 ) { sel0 = DNF0 ( sel0 ) ; sel1 = DNF0 ( sel1 ) ; if ( sel0 instanceof Operator ) { Operator oper = ( Operator ) sel0 ; if ( oper . getOp ( ) == Selector . OR ) return makeOR ( processAND ( oper . getOperands ( ) [ 0 ] , sel1 ) , processAND ( oper . get... | Subroutine of DNF0 to process AND nodes |
162,622 | private static Selector processANDRight ( Selector sel0 , Selector sel1 ) { if ( sel1 instanceof Operator ) { Operator oper = ( Operator ) sel1 ; if ( oper . getOp ( ) == Selector . OR ) return makeOR ( processANDRight ( sel0 , oper . getOperands ( ) [ 0 ] ) , processANDRight ( sel0 , oper . getOperands ( ) [ 1 ] ) ) ;... | Subroutine of DNF0 to process AND nodes whose left child is an atom |
162,623 | private static Selector makeOR ( Selector sel0 , Selector sel1 ) { if ( sel0 . getNumIds ( ) == 0 ) { Boolean staticResult = ( Boolean ) Matching . getEvaluator ( ) . eval ( sel0 ) ; if ( staticResult != null && staticResult . booleanValue ( ) ) return new LiteralImpl ( Boolean . TRUE ) ; else return evalOf ( sel1 ) ; ... | must be true . |
162,624 | private static Selector makeAND ( Selector sel0 , Selector sel1 ) { if ( sel0 . getNumIds ( ) == 0 ) { Boolean staticResult = ( Boolean ) Matching . getEvaluator ( ) . eval ( sel0 ) ; if ( staticResult == null || ! staticResult . booleanValue ( ) ) return new LiteralImpl ( Boolean . FALSE ) ; else return evalOf ( sel1 ... | must be false . |
162,625 | private static Selector evalOf ( Selector arg ) { if ( arg . getNumIds ( ) > 0 ) return arg ; return new LiteralImpl ( Matching . getEvaluator ( ) . eval ( arg ) ) ; } | if the argument has no identifiers |
162,626 | private static Selector simplifyTree ( Selector tree ) { if ( ! ( tree instanceof Operator ) || tree instanceof ExtensionOperatorImpl ) return tree ; Operator oper = ( Operator ) tree ; switch ( oper . getOp ( ) ) { case Selector . NOT : return simplifyNOT ( oper . getOperands ( ) [ 0 ] ) ; case Selector . EQ : return ... | and OR nodes |
162,627 | private static Selector simplifyNOT ( Selector tree ) { if ( tree instanceof Literal ) return new LiteralImpl ( EvaluatorImpl . not ( ( Boolean ) ( ( Literal ) tree ) . getValue ( ) ) ) ; if ( ! ( tree instanceof Operator ) ) return new OperatorImpl ( Selector . NOT , tree ) ; Operator oper = ( Operator ) tree ; switch... | Subroutine of simplifyTree to handle NOT nodes |
162,628 | private static Selector simplifyEQ ( Selector sel0 , Selector sel1 ) { if ( sel0 . getType ( ) != Selector . BOOLEAN ) return new OperatorImpl ( Selector . EQ , sel0 , sel1 ) ; else return makeOR ( makeAND ( simplifyTree ( sel0 ) , simplifyTree ( sel1 ) ) , makeAND ( simplifyNOT ( sel0 ) , simplifyNOT ( sel1 ) ) ) ; } | Subroutine of simplifyTree to handle EQ nodes |
162,629 | private static Selector simplifyNE ( Selector sel0 , Selector sel1 ) { if ( sel0 . getType ( ) == Selector . BOOLEAN ) return makeOR ( makeAND ( simplifyTree ( sel0 ) , simplifyNOT ( sel1 ) ) , makeAND ( simplifyNOT ( sel0 ) , simplifyTree ( sel1 ) ) ) ; else if ( sel0 . getType ( ) == Selector . STRING || sel0 . getTy... | Subroutine of simplifyTree to handle NE nodes |
162,630 | private static boolean augmentConjunction ( ConjunctionImpl target , Selector toAdd ) { if ( toAdd instanceof Operator ) { Operator oper = ( Operator ) toAdd ; if ( oper . getOp ( ) == Selector . AND ) return augmentConjunction ( target , oper . getOperands ( ) [ 0 ] ) && augmentConjunction ( target , oper . getOperand... | or false if the Conjunction will always be false . |
162,631 | public static String getRandomAlphaNumeric ( int length ) { if ( length <= 0 ) { return "" ; } Random r = getRandom ( ) ; StringBuffer result = new StringBuffer ( length ) ; for ( int i = 0 ; i < length ; i ++ ) { int n = r . nextInt ( alphaNumChars . length ) ; result . append ( alphaNumChars [ n ] ) ; } return result... | Generates a random alphanumeric string of length n . |
162,632 | static String getLogHeader ( Map < String , String > config ) { StringBuilder builder = new StringBuilder ( 512 ) ; String productInfo = config . get ( "websphere.product.info" ) ; if ( productInfo != null ) { builder . append ( "product = " ) . append ( productInfo ) . append ( LoggingConstants . nl ) ; } String insta... | Returns the header to be written at the beginning of all log files . |
162,633 | public synchronized void init ( LogProviderConfig config ) { ffdcSummaryPolicy = ( ( LogProviderConfigImpl ) config ) . getFfdcSummaryPolicy ( ) ; update ( config ) ; } | Initialize the FFDC service based on the provided configuration |
162,634 | public synchronized void update ( LogProviderConfig config ) { File location = config . getLogDirectory ( ) ; if ( location == null ) { location = new File ( "." ) ; } location = new File ( location , FFDCConfigurator . FFDC_DIR ) ; ffdcLogDirectory = location ; int maxFiles = config . getMaxFiles ( ) ; Object token = ... | Update the FFDC service based on the provided configuration |
162,635 | public synchronized void stop ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEventEnabled ( ) ) { Tr . event ( tc , "Stopping the basic FFDC service" ) ; } logSummary ( true ) ; } | Stop this FFDC service instance and free up any resources currently used . |
162,636 | public void processException ( Throwable th , String sourceId , String probeId , Object callerThis , Object [ ] objectArray ) { log ( sourceId , probeId , th , callerThis , objectArray ) ; } | Process an exception |
162,637 | @ FFDCIgnore ( PrivilegedActionException . class ) private void log ( String sourceId , String probeId , Throwable th , Object callerThis , Object [ ] objectArray ) { IncidentImpl incident = getIncident ( sourceId , probeId , th , callerThis , objectArray ) ; incident . log ( th , callerThis , objectArray ) ; if ( Syst... | Log a problem to the global incident stream ( creating it if necessary |
162,638 | private OutputStream createSummaryStream ( File targetFile ) throws IOException { if ( targetFile == null ) return null ; TextFileOutputStreamFactory factory = FFDCConfigurator . getFileOutputStreamFactory ( ) ; OutputStream newStream = null ; Object token = ThreadIdentityManager . runAsServer ( ) ; try { newStream = f... | This wrapper method for creating streams should be called while synchronized on the targetFile .. |
162,639 | public void alertClose ( ) { if ( com . ibm . ejs . ras . TraceComponent . isAnyTracingEnabled ( ) && logger . isLoggable ( Level . FINE ) ) logger . logp ( Level . FINE , CLASS_NAME , "alertClose" , " _outWriter: + _outWriter ) ; writerClosed = true ; if ( com . ibm . ejs . ras . TraceComponent . isAnyTracingEnabled ... | Alert message that the outputstream has been closed . |
162,640 | public void alertException ( ) { if ( com . ibm . ejs . ras . TraceComponent . isAnyTracingEnabled ( ) && logger . isLoggable ( Level . FINE ) ) logger . logp ( Level . FINE , CLASS_NAME , "alertException" , "entry _outWriter: + _outWriter ) ; writerException = true ; if ( com . ibm . ejs . ras . TraceComponent . isA... | Alert message that there has been an exception in the outputstream . |
162,641 | public boolean writerObtained ( ) { if ( com . ibm . ejs . ras . TraceComponent . isAnyTracingEnabled ( ) && logger . isLoggable ( Level . FINE ) ) logger . logp ( Level . FINE , CLASS_NAME , "writerObtained" , " " + String . valueOf ( _gotWriter ) , "[" + this + "]" ) ; return _gotWriter ; } | Used to check whether the writer has been obtained . |
162,642 | public boolean outputStreamObtained ( ) { if ( com . ibm . ejs . ras . TraceComponent . isAnyTracingEnabled ( ) && logger . isLoggable ( Level . FINE ) ) logger . logp ( Level . FINE , CLASS_NAME , "outputStreamObtained" , " " + String . valueOf ( _gotOutputStream ) , "[" + this + "]" ) ; return _gotOutputStream ; } | Used to check whether the output stream has been obtained . |
162,643 | public void finish ( ) { if ( com . ibm . ejs . ras . TraceComponent . isAnyTracingEnabled ( ) && logger . isLoggable ( Level . FINE ) ) logger . entering ( CLASS_NAME , "finish" , "[" + this + "]" ) ; if ( ! isCommitted ( ) ) { commit ( ) ; } try { flushBuffer ( false ) ; _rawOut . close ( ) ; } catch ( IOException e ... | Close this response . |
162,644 | protected void cleanupFromFinish ( ) { _response = null ; _bufferSize = 0 ; _encoding = null ; _gotOutputStream = false ; _gotWriter = false ; this . _pwriter = null ; } | shared cleanup from finish & finishKeepConnection |
162,645 | public void resetBuffer ( ) { if ( com . ibm . ejs . ras . TraceComponent . isAnyTracingEnabled ( ) && logger . isLoggable ( Level . FINE ) ) logger . entering ( CLASS_NAME , "resetBuffer" , "[" + this + "]" ) ; if ( isCommitted ( ) ) throw new IllegalStateException ( ) ; if ( _gotOutputStream ) { _response . resetBuff... | Clears the content of the underlying buffer in the response without clearing headers or status code . |
162,646 | public ServletOutputStream getOutputStream ( ) { final boolean isTraceOn = com . ibm . ejs . ras . TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && logger . isLoggable ( Level . FINE ) ) logger . entering ( CLASS_NAME , "getOutputStream" , "gotWriter=" + String . valueOf ( _gotWriter ) + " [" + this + "]" )... | Returns an output stream for writing binary response data . |
162,647 | public PrintWriter getWriter ( ) throws IOException , UnsupportedEncodingException { final boolean isTraceOn = com . ibm . ejs . ras . TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && logger . isLoggable ( Level . FINE ) ) logger . entering ( CLASS_NAME , "getWriter" , "gotOutputStream=" + String . valueOf ... | Returns a PrintWriter for writing formatted text output . |
162,648 | public void addCookie ( Cookie cookie ) { if ( com . ibm . ejs . ras . TraceComponent . isAnyTracingEnabled ( ) && logger . isLoggable ( Level . FINE ) ) { logger . logp ( Level . FINE , CLASS_NAME , "addCookie" , "Adding cookie + cookie . getName ( ) , "[" + this + "]" ) ; } WebAppDispatcherContext dispatchContext = ... | Uses the given HTTP response message to assign a new value to a browser - specific cookie . Updates the response to restrict caching of sensitive cookie - related data . |
162,649 | synchronized protected void commit ( ) { if ( com . ibm . ejs . ras . TraceComponent . isAnyTracingEnabled ( ) && logger . isLoggable ( Level . FINE ) ) { logger . entering ( CLASS_NAME , "commit" , "[" + this + "] ,_headersWritten + _headersWritten ) ; } if ( ! _headersWritten && ! isCommitted ( ) ) { addLocaleHeader... | Commits the response by sending response codes and headers . A response may only be commited once . |
162,650 | public String getCharacterEncoding ( ) { if ( com . ibm . ejs . ras . TraceComponent . isAnyTracingEnabled ( ) && logger . isLoggable ( Level . FINE ) ) { logger . entering ( CLASS_NAME , "getCharacterEncoding" , "[" + this + "]" ) ; } if ( _encoding == null ) { setDefaultResponseEncoding ( ) ; } if ( com . ibm . ejs .... | Returns the character encoding used for writing text to the body of this response . |
162,651 | public Cookie [ ] getCookies ( ) { if ( com . ibm . ejs . ras . TraceComponent . isAnyTracingEnabled ( ) && logger . isLoggable ( Level . FINE ) ) { logger . logp ( Level . FINE , CLASS_NAME , "getCookies" , "[" + this + "]" ) ; } return ( _response . getCookies ( ) ) ; } | Get the Cookies that have been set in this response . |
162,652 | public void sendError ( int status ) throws IOException { if ( com . ibm . ejs . ras . TraceComponent . isAnyTracingEnabled ( ) && logger . isLoggable ( Level . FINE ) ) { logger . logp ( Level . FINE , CLASS_NAME , "sendError" , "error + String . valueOf ( status ) , "[" + this + "]" ) ; } Object [ ] args = { new Int... | Sends an error response to the client using the specified status code and no default message . |
162,653 | public void sendError ( int status , String msg ) throws IOException { if ( com . ibm . ejs . ras . TraceComponent . isAnyTracingEnabled ( ) && logger . isLoggable ( Level . FINE ) ) { logger . entering ( CLASS_NAME , "sendError" , "status + status + " " + msg + " [" + this + "]" ) ; } WebAppDispatcherContext dispatch... | Sends an error response to the client using the specified status code and detail message . |
162,654 | public void setReason ( String msg ) { if ( com . ibm . ejs . ras . TraceComponent . isAnyTracingEnabled ( ) && logger . isLoggable ( Level . FINE ) ) { logger . logp ( Level . FINE , CLASS_NAME , "setReason" , " message + msg , "[" + this + "]" ) ; } _response . setReason ( msg ) ; } | Sends an error response directly to the client using the specified status code and detail message . |
162,655 | public void setContentLength ( int len ) { if ( com . ibm . ejs . ras . TraceComponent . isAnyTracingEnabled ( ) && logger . isLoggable ( Level . FINE ) ) { logger . entering ( CLASS_NAME , "setContentLength" , "length + String . valueOf ( len ) + " [" + this + "]" ) ; } WebAppDispatcherContext dispatchContext = ( Web... | Defines the content length for this response . This call must be made only once . Not setting the content length may cause significant performance degradation . |
162,656 | public void setDateHeader ( String name , long t ) { if ( com . ibm . ejs . ras . TraceComponent . isAnyTracingEnabled ( ) && logger . isLoggable ( Level . FINE ) ) { logger . entering ( CLASS_NAME , "setDateHeader" , " name + name + " value + String . valueOf ( t ) + " [" + this + "]" ) ; } WebAppDispatcherContext d... | Adds a date header with the specified time . If this is called more than once the current value will replace the previous value . |
162,657 | protected boolean logWarningActionNow ( IServletWrapper w ) { if ( w instanceof IServletWrapperInternal ) { boolean firstTime = ( ( IServletWrapperInternal ) w ) . hitWarningStatus ( ) ; return firstTime ; } else { if ( com . ibm . ejs . ras . TraceComponent . isAnyTracingEnabled ( ) && logger . isLoggable ( Level . FI... | Do not sync for performance reasons . It is ok to print this warning more than once just trying to limit it for the most part . |
162,658 | public void setInternalHeader ( String name , String s ) { if ( com . ibm . ejs . ras . TraceComponent . isAnyTracingEnabled ( ) && logger . isLoggable ( Level . FINE ) ) { logger . logp ( Level . FINE , CLASS_NAME , "setInternalHeader" , " name + name + " value + s , "[" + this + "]" ) ; } setHeader ( name , s , fal... | Adds a header field with the specified string value . Does not check to see if this is an include . If this is called more than once the current value will replace the previous value . |
162,659 | public void setStatus ( int status ) { if ( com . ibm . ejs . ras . TraceComponent . isAnyTracingEnabled ( ) && logger . isLoggable ( Level . FINE ) ) { logger . entering ( CLASS_NAME , "setStatus" , " status + String . valueOf ( status ) + " [" + this + "]" ) ; } WebAppDispatcherContext dispatchContext = ( WebAppDisp... | Sets the status code and a default message for this response . |
162,660 | public TransactionParticipant start ( PersistentTranId ptid , int flags ) throws XidUnknownException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "start" , new Object [ ] { "PersistentTranId=" + ptid , xaFlagsToString ( flags ) } ) ; TransactionParticipant ret... | using either the TMJOIN or TMRESUME flags . |
162,661 | public void start ( PersistentTranId ptid , TransactionParticipant participant ) throws XidAlreadyKnownException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "start" , new Object [ ] { "PersistentTranId=" + ptid , "Participant=" + participant } ) ; synchronize... | with a NEW transaction branch . |
162,662 | public void end ( PersistentTranId ptid , int flags ) throws XidUnknownException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "end" , new Object [ ] { "PersistentTranId=" + ptid , xaFlagsToString ( flags ) } ) ; synchronized ( _associationLock ) { TransactionP... | later point . |
162,663 | public void restart ( PersistentMessageStore PM ) throws TransactionException , SevereMessageStoreException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "restart" , "PersistenceManager=" + PM ) ; if ( PM != null ) { if ( PM instanceof PersistenceManager ) { _p... | Called at server startup to rebuild our list of indoubt transactions from the datastore . |
162,664 | public Xid [ ] recover ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "recover" ) ; Xid [ ] xids = new Xid [ _indoubtXids . size ( ) ] ; _indoubtXids . toArray ( xids ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit... | This method returns the list of indoubt Xids that the MessageStore knows about at the time . This includes those recovered from the datastore at restart time and any that are currently known about as part of normal runtime processing . |
162,665 | public Xid [ ] listRemoteInDoubts ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "listRemoteInDoubts" ) ; Vector < PersistentTranId > xids = ( Vector < PersistentTranId > ) _indoubtXids . clone ( ) ; Xid [ ] retval = null ; if ( xids . size ( ) > 0 ) { retva... | This method returns a list representing all Xid known by the ME which do not match those currently known by the local Transaction Manager . The admin console can therefore use the output of this method to display a list of xids that can be completed through the ME admin console . |
162,666 | public String xaFlagsToString ( int flags ) { StringBuilder retval = new StringBuilder ( "Flags=" ) ; retval . append ( Integer . toHexString ( flags ) ) ; retval . append ( "( " ) ; if ( flags == XAResource . TMNOFLAGS ) { retval . append ( "TMNOFLAGS " ) ; } else { if ( ( flags & XAResource . TMENDRSCAN ) != 0 ) retv... | Feature SIB0048c . ms . 1 |
162,667 | public void assign ( Identifier id ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) tc . entry ( cclass , "assign" , "identifier: " + id ) ; String key = null ; switch ( id . getType ( ) ) { case Identifier . STRING : key = "S:" + id . getFullName ( ) ; break ; case Identifier . BOOLEAN : ... | Implement the assignPosition method |
162,668 | public static void processBndAndExt ( Map < JNDIEnvironmentRefType , Map < String , String > > allBindings , Map < String , String > envEntryValues , ResourceRefConfigList resRefList , RefBindingsGroup refBindingsGroup , List < com . ibm . ws . javaee . dd . commonext . ResourceRef > resRefExts ) { RefBndAndExtHelper .... | Process bindings and extensions for all JNDIEnvironmentRef . This method can be called multiple times with different source objects . |
162,669 | static void rcvStartSess ( CommsByteBuffer request , Conversation conversation , int requestNumber , boolean allocatedFromBufferPool , boolean partOfExchange , boolean restart ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "rcvStartSess" , new Object [ ] { request , ... | Start the Synchronous Consumer Session provided by the client . |
162,670 | static void rcvStopSess ( CommsByteBuffer request , Conversation conversation , int requestNumber , boolean allocatedFromBufferPool , boolean partOfExchange ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "rcvStopSess" , new Object [ ] { request , conversation , "" + ... | Stop the Synchronous Consumer Session provided by the client . |
162,671 | static void rcvRegisterAsyncConsumer ( CommsByteBuffer request , Conversation conversation , int requestNumber , boolean allocatedFromBufferPool , boolean partOfExchange , boolean stoppable ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "rcvRegisterAsyncConsumer" , n... | Register an asynchronous consumer for this consumer session . |
162,672 | static void rcvRequestMsgs ( CommsByteBuffer request , Conversation conversation , int requestNumber , boolean allocatedFromBufferPool , boolean partOfExchange ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "rcvRequestMsgs" , new Object [ ] { request , conversation ,... | Request messages for this consumer . |
162,673 | static void rcvSessReceive ( CommsServerByteBuffer request , Conversation conversation , int requestNumber , boolean allocatedFromBufferPool , boolean partOfExchange ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "rcvSessReceive" , new Object [ ] { request , conversa... | Receive a message using the Synchronous Consumer Session provided by the client . |
162,674 | static void rcvUnlockAll ( CommsByteBuffer request , Conversation conversation , int requestNumber , boolean allocatedFromBufferPool , boolean partOfExchange ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "rcvUnlockAll" , new Object [ ] { request , conversation , "" ... | Unlocks all locked messages on the server . |
162,675 | static void rcvDeleteSet ( CommsServerByteBuffer request , Conversation conversation , int requestNumber , boolean allocatedFromBufferPool , boolean partOfExchange ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "rcvDeleteSet" , new Object [ ] { request , conversation... | Deletes a set of messages that are currently locked by the server . |
162,676 | static void rcvReadSet ( CommsByteBuffer request , Conversation conversation , int requestNumber , boolean allocatedFromBufferPool , boolean partOfExchange ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "rcvReadSet" , new Object [ ] { request , conversation , "" + re... | Reads a set of messages that are currently locked by the server . |
162,677 | private void cleanupSubscription ( SubscriptionItemStream stream ) { if ( tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "cleanupSubscription" , stream ) ; try { stream . deleteIfPossible ( false ) ; } catch ( Exception e ) { FFDCFilter . processException ( e , "com.ibm.ws.sib.processor.impl.AsynchDeletionThread.cleanu... | Delete the subscription in question . |
162,678 | public void setRunning ( boolean running ) { if ( tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , "setRunning" ) ; SibTr . exit ( tc , "setRunning" ) ; } _isRunning = running ; return ; } | Method setRunning - Set indicator that the asynchDeletionThread is running |
162,679 | public boolean isRunning ( ) { if ( tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , "isRunning" ) ; SibTr . exit ( tc , "isRunning" , new Boolean ( _isRunning ) ) ; } return _isRunning ; } | Method isRunning - Determine if the AsynchDeletionThread is running or not . |
162,680 | public void setStopping ( ) { if ( tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , "setStopping" ) ; SibTr . exit ( tc , "setStopping" ) ; } _isStopping = true ; return ; } | Method setStopping - Set indicator that the asynchDeletionThread is stopping |
162,681 | public boolean isStopping ( ) { if ( tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , "isStopping" ) ; SibTr . exit ( tc , "isStopping" , new Boolean ( _isStopping ) ) ; } return _isStopping ; } | Method isStopping - Determine if the AsynchDeletionThread is stopping or not . |
162,682 | public void rerun ( ) { if ( tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "rerun" ) ; _rerunRequested = true ; if ( tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "rerun" ) ; } | Indicate that we want the Asynch deletion thread to run again |
162,683 | public static boolean waitForPageResponse ( HtmlPage page , String responseMessage ) throws InterruptedException { int i = 0 ; boolean isTextFound = false ; while ( ! isTextFound && i < 5 ) { isTextFound = page . asText ( ) . contains ( responseMessage ) ; i ++ ; Thread . sleep ( 1000 ) ; Log . info ( c , "waitForPageR... | Create a custom wait mechanism that waits for any background JavaScript to finish and verifies a message in the page response . |
162,684 | @ FFDCIgnore ( InvocationTargetException . class ) public Object invoke ( Object proxy , Method method , Object [ ] args ) throws Throwable { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "invoke" , method . toGenericString ( ) ) ; if ( actualMessageObject instan... | While Async send operation is in progress do not allow application to access message object |
162,685 | public static boolean hasClientBehavior ( String eventName , Map < String , List < ClientBehavior > > behaviors , FacesContext facesContext ) { if ( behaviors == null ) { return false ; } return ( behaviors . get ( eventName ) != null ) ; } | Checks if the given component has a behavior attachment with a given name . |
162,686 | public static boolean renderBehaviorizedAttribute ( FacesContext facesContext , ResponseWriter writer , String componentProperty , UIComponent component , String eventName , Collection < ClientBehaviorContext . Parameter > eventParameters , Map < String , List < ClientBehavior > > clientBehaviors , String htmlAttrName ... | Render an attribute taking into account the passed event the component property and the passed attribute value for the component property . The event will be rendered on the selected htmlAttrName . |
162,687 | public static boolean isHideNoSelectionOption ( UIComponent component ) { Object hideNoSelectionOptionAttr = component . getAttributes ( ) . get ( JSFAttr . HIDE_NO_SELECTION_OPTION_ATTR ) ; return ( ( hideNoSelectionOptionAttr instanceof String && "true" . equalsIgnoreCase ( ( String ) hideNoSelectionOptionAttr ) ) ||... | Returns the value of the hideNoSelectionOption attribute of the given UIComponent |
162,688 | public static void renderUnhandledFacesMessages ( FacesContext facesContext ) throws IOException { HtmlMessages messages = ( HtmlMessages ) facesContext . getApplication ( ) . createComponent ( HtmlMessages . COMPONENT_TYPE ) ; messages . setId ( "javax_faces_developmentstage_messages" ) ; messages . setTitle ( "Projec... | Renders all FacesMessages which have not been rendered yet with the help of a HtmlMessages component . |
162,689 | protected void deactivate ( ComponentContext compcontext ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "Deactivating " + this ) ; } INSTANCE . compareAndSet ( this , null ) ; } | DS method to deactivate this component |
162,690 | protected void updateConfiguration ( Map < String , Object > properties ) { if ( properties != null ) { this . properties . clear ( ) ; this . properties . putAll ( properties ) ; } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "Current Properties: " + this . properties ... | Updates the current configuration properties |
162,691 | public boolean isImplicitBeanArchivesScanningDisabled ( ) { boolean enableImplicitBeanArchivesValue = ( Boolean ) this . properties . get ( "enableImplicitBeanArchives" ) ; if ( tc . isWarningEnabled ( ) && ! hasLoggedNoImplicitMsg && ! enableImplicitBeanArchivesValue ) { hasLoggedNoImplicitMsg = true ; Tr . warning ( ... | Get the Container level configuration about whether to disable the scanning for implicit bean archives . If the value is true it means CDI Container will not scan archives without beans . xml to see whether they are implicit archives . |
162,692 | @ FFDCIgnore ( InjectionException . class ) private void processPostConstruct ( ) { ApplicationClient appClient = ( ( ClientModuleMetaData ) cmd . getModuleMetaData ( ) ) . getAppClient ( ) ; boolean isMetadataComplete = appClient . isMetadataComplete ( ) ; LifecycleCallbackHelper helper = new LifecycleCallbackHelper (... | Process PostContruct annotation or metadata for Main class or Login Callback class . |
162,693 | @ FFDCIgnore ( InjectionException . class ) private void processPreDestroy ( ) { ApplicationClient appClient = ( ( ClientModuleMetaData ) cmd . getModuleMetaData ( ) ) . getAppClient ( ) ; boolean isMetadataComplete = appClient . isMetadataComplete ( ) ; LifecycleCallbackHelper helper = new LifecycleCallbackHelper ( is... | Process PreDestroy annotation or metadata for Login Callback class . |
162,694 | public void introspect ( final PrintWriter writer ) throws Exception { writer . println ( "Network Interface Information" ) ; writer . println ( "-----------------------------" ) ; try { AccessController . doPrivileged ( new PrivilegedExceptionAction < Void > ( ) { public Void run ( ) throws IOException { Enumeration <... | Introspect all network interfaces for diagnostic information . |
162,695 | private void getInterfaceInfo ( NetworkInterface networkInterface , PrintWriter out ) throws IOException { final String indent = " " ; out . println ( ) ; out . append ( "Interface: " ) . append ( networkInterface . getDisplayName ( ) ) . println ( ) ; out . append ( indent ) . append ( " loopback: " ) . ap... | Capture interface specific information and write it to the provided writer . |
162,696 | private Object invoke ( Method method , Object [ ] args ) throws IllegalAccessException , InvocationTargetException { ArrayList < ThreadContext > contextAppliedToThread = threadContextDescriptor . taskStarting ( ) ; try { return method . invoke ( object , args ) ; } finally { threadContextDescriptor . taskStopping ( co... | Apply context invoke the method then remove the context from the thread . |
162,697 | private synchronized void initialize ( ) { if ( ! _initialized ) { FacesContext context = FacesContext . getCurrentInstance ( ) ; if ( isFacelets2Enabled ( context ) ) { logWarningIfLegacyFaceletViewHandlerIsPresent ( context ) ; if ( MyfacesConfig . getCurrentInstance ( context . getExternalContext ( ) ) . isSupportJS... | Initialize the supported view declaration languages . |
162,698 | private boolean isFacelets2Enabled ( FacesContext context ) { String param = context . getExternalContext ( ) . getInitParameter ( PARAM_DISABLE_JSF_FACELET ) ; boolean facelets2ParamDisabled = ( param != null && Boolean . parseBoolean ( param . toLowerCase ( ) ) ) ; return ! facelets2ParamDisabled ; } | Determines if the current application uses Facelets - 2 . To accomplish that it looks at the init param javax . faces . DISABLE_FACELET_JSF_VIEWHANDLER |
162,699 | @ FFDCIgnore ( { MissingResourceException . class , IllegalArgumentException . class } ) protected static Logger createLogger ( final Class < ? > cls , String name , String loggerName ) { ClassLoader orig = getContextClassLoader ( ) ; ClassLoader n = getClassLoader ( cls ) ; if ( n != null ) { setContextClassLoader ( n... | Create a logger |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.