idx int64 0 41.2k | question stringlengths 73 5.81k | target stringlengths 5 918 |
|---|---|---|
25,500 | void topicSpaceDeleted ( DestinationHandler destination ) throws SIResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "topicSpaceDeleted" , destination ) ; synchronized ( _topicSpaces ) { final HashMap pubsubOutputHandlers = ( HashMap ) ( destination . ge... | If a topicSpace is deleted remove all the PubSubOutputHandlers registered against it and add them to an in memory reference table . |
25,501 | protected void removeNeighbour ( SIBUuid8 meUUID , String busId , Transaction transaction ) throws SIConnectionLostException , SIResourceException , SIErrorException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "removeNeighbour" , new Object [ ] { busId , transaction... | Removes a Neighbouring ME . |
25,502 | protected void removeRecoveredNeighbour ( SIBUuid8 neighbourUuid , Transaction transaction ) throws SIConnectionLostException , SIResourceException , SIErrorException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "removeRecoveredNeighbour" , new Object [ ] { neighbour... | Removes a Neighbour that has been deleted by Admin but it existed in the MessageStore |
25,503 | private void removeRegisteredProxies ( Neighbour neighbour , Transaction transaction , boolean wasRecovered ) throws SIResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "removeRegisteredProxies" , new Object [ ] { neighbour , transaction , new Boolean ( ... | Removes all the proxies associated with this Neighbour . |
25,504 | private BusGroup findBus ( String name ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "findBus" , name ) ; for ( int i = 0 ; i < _buses . length ; ++ i ) if ( _buses [ i ] . getName ( ) . equals ( name ) ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEnt... | Finds a Bus given its name . |
25,505 | private BusGroup createBus ( String busId ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "createBus" , busId ) ; boolean isLocalBus = busId . equals ( _localBusName ) ; final BusGroup group = new BusGroup ( busId , _proxyHandler , isLocalBus ) ; final BusGroup [ ] te... | Creates a BusGroup with the given name . |
25,506 | private void deleteBus ( BusGroup group ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "deleteBus" , group ) ; final BusGroup [ ] t = _buses ; for ( int i = 0 ; i < _buses . length ; i ++ ) { if ( _buses [ i ] . equals ( group ) ) { _buses = new BusGroup [ t . length... | Removes the Bus with the given name from the list of all Buss . |
25,507 | Neighbour getRecoveredNeighbour ( SIBUuid8 neighbourUuid ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "getRecoveredNeighbour" , neighbourUuid ) ; Neighbour neighbour = null ; synchronized ( _recoveredNeighbours ) { neighbour = ( Neighbour ) _recoveredNeighbours . g... | Gets the Recovered Neighbour based on the UUID supplied |
25,508 | protected boolean createProxy ( Neighbour neighbour , DestinationHandler destination , MESubscription subscription , SIBUuid12 topicSpace , String topic , boolean warmRestarted ) throws SIResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "createProxy" , ... | Creates the proxy based on the meName topicSpace and topic for the originating ME . |
25,509 | protected boolean deleteProxy ( DestinationHandler destination , MESubscription subscription , Neighbour neighbour , SIBUuid12 topicSpace , String topic , boolean wasRecovered , boolean deleteHandler ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "deleteProxy" , new ... | Removes the reference to the PubSubOutHandler on the given topic space for the topic on the ME . |
25,510 | private void addSubscriptionsToBus ( BusGroup group , String busId ) throws SIResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "addSubscriptionsToBus" , new Object [ ] { group , busId } ) ; final ArrayList cdList = _proxyHandler . getMessageProcessor ( ... | Adds the subscriptions to the Bus |
25,511 | protected void resetBusSubscriptionList ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "resetBusSubscriptionList" ) ; for ( int i = 0 ; i < _buses . length ; i ++ ) { BusGroup group = _buses [ i ] ; group . reset ( ) ; try { addSubscriptionsToBus ( group , group . ... | Resets the list of subscriptions that the bus knows about . |
25,512 | protected JDBCDataSourceMBeanImpl setDataSourceChild ( String key , JDBCDataSourceMBeanImpl ds ) { return dataSourceMBeanChildrenList . put ( key , ds ) ; } | setDataSourceChild add a child of type JDBCDataSourceMBeanImpl to this MBean . |
25,513 | private ConversationContext getConversationContext ( String id ) { if ( conversationContext == null ) { synchronized ( this ) { if ( conversationContext == null ) { Container container = Container . instance ( id ) ; conversationContext = container . deploymentManager ( ) . instance ( ) . select ( HttpConversationConte... | Get conversation context . |
25,514 | public EJSHome getStartedHome ( J2EEName beanName ) { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isDebugEnabled ( ) ) Tr . debug ( tc , "getStartedHome : " + beanName ) ; HomeRecord hr = homeOfHomes . getHomeRecord ( beanName ) ; EJSHome hi = hr . getHomeAndInitialize ( ... | Gets a home by name . |
25,515 | EJSWrapperCommon getHomeWrapperCommon ( J2EEName beanName ) throws CSIException { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "getHomeWrapperCommon : " + beanName ) ; EJSHome hi = getStartedHome ( beanName ) ; EJSWrapperCommon result... | Return the local home named beanName . |
25,516 | public void stopBean ( BeanMetaData bmd ) throws CSIException { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "stopBean : " + bmd . j2eeName ) ; try { uninstallBean ( bmd , false ) ; } catch ( Throwable ex ) { FFDCFilter . processExcep... | Stop the bean instance specified by the beanName . ManagedContainer wrapper around uninstallBean |
25,517 | public EJSHome startBean ( BeanMetaData bmd ) throws ContainerException { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "startBean: " + bmd . j2eeName ) ; J2EEName homeKey = bmd . j2eeName ; EJSHome ejsHome = null ; try { internalBeanM... | Registers the bean with the container and creates enables and returns the home instance . |
25,518 | public ContainerTx getCurrentTx ( SynchronizationRegistryUOWScope uowId , boolean isLocal ) throws CSITransactionRolledbackException { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "getCurrentTx (" + ContainerTx . uowIdToString ( uowId... | d139352 - 2 |
25,519 | public ContainerAS getCurrentSessionalUOW ( boolean checkMarkedReset ) throws CSIException , CSITransactionRolledbackException { ContainerAS result = null ; Object currASKey = uowCtrl . getCurrentSessionalUOW ( checkMarkedReset ) ; if ( currASKey == null ) { return null ; } result = containerASMap . get ( currASKey ) ;... | Added checMarkedRest parameter . d348420 |
25,520 | public static EJBThreadData getUserTransactionThreadData ( ) { EJBThreadData threadData = getThreadData ( ) ; BeanO beanO = threadData . getCallbackBeanO ( ) ; if ( beanO == null ) { EJBException ex = new EJBException ( "EJB UserTransaction can only be used from an EJB" ) ; if ( TraceComponent . isAnyTracingEnabled ( )... | Returns the EJB thread data if an EJB context is active on the current thread and that EJB may use UserTransaction . |
25,521 | public void processTxContextChange ( EJBThreadData threadData , boolean isLocal ) throws RemoteException { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "processTxContextChange (" + isLocal + ")" ) ; SynchronizationRegistryUOWScope uow... | LIDB1181 . 23 . 5 . 1 For BMT beans userTransction calls may transition the bean back and forth between local and global transactions . This method provides a means to create the new ContainerTx and and associate it with the EJSDeployedSupport object for the method invocation |
25,522 | boolean transitionToStickyGlobalTran ( BeanId beanId , ContainerTx currentTx , ContainerTx expectedTx ) { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "transitionToStickyGlobalTran (" + beanId + "," + currentTx + ", " + expectedTx + "... | d671368 d671368 . 1 |
25,523 | public int getIsolationLevel ( int preferred ) { int isolationLevel ; final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "getIsolationLevel: " + preferred ) ; ContainerTx ctx = null ; try { ctx = getCurrentTx ( false ) ; } catch ( CSITransa... | d128344 . 1 |
25,524 | public void removeBean ( BeanO beanO ) throws CSITransactionRolledbackException { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "removeBean with BeanO" ) ; BeanId id = beanO . getId ( ) ; if ( id != null ) { try { ContainerTx currentTx... | Remove bean from container in current transaction context . Used to clean up from create failures . It is not an error if the bean does not exist in this container . |
25,525 | public boolean removeStatefulBean ( Object bean ) throws RemoteException , RemoveException { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "removeStatefulBean : " + Util . identity ( bean ) ) ; EJSWrapperBase wrapper = null ; if ( bean... | F743 - 29185 |
25,526 | public static Object resolveWrapperProxy ( EJSLocalWrapperProxy proxy ) { WrapperProxyState state = proxy . ivState ; Object wrapper = state . ivWrapper ; if ( wrapper == null ) { do { state = state . reconnect ( ) ; wrapper = state . ivWrapper ; } while ( wrapper == null ) ; proxy . ivState = state ; } else { if ( Tra... | Resolves the wrapper for a local object wrapper proxy . |
25,527 | private EJBMethodInfoImpl mapMethodInfo ( EJSDeployedSupport s , EJSWrapperBase wrapper , int methodId , String methodSignature ) { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "mapMethodInfo(" + methodId + "," + methodSignature + ")"... | d140003 . 20 return signature change |
25,528 | final public boolean doesJaccNeedsEJBArguments ( EJSWrapperBase wrapper ) { EJBSecurityCollaborator < ? > securityCollaborator = ivSecurityCollaborator ; boolean result = securityCollaborator != null && securityCollaborator . areRequestMethodArgumentsRequired ( ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . ... | d209070 rewrote method . |
25,529 | public EnterpriseBean preInvoke ( EJSWrapperBase wrapper , int methodId , EJSDeployedSupport s , Object [ ] args ) throws RemoteException { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; EJBMethodInfoImpl methodInfo = mapMethodInfo ( s , wrapper , methodId , null ) ; try { if ( isTraceOn ) { if ( ... | LIDB2617 . 11 added this method . |
25,530 | public EnterpriseBean preInvoke ( EJSWrapperBase wrapper , int methodId , EJSDeployedSupport s , EJBMethodInfoImpl methodInfo ) throws RemoteException { s . methodId = methodId ; s . ivWrapper = wrapper ; return preInvokePmInternal ( wrapper , methodId , s , methodInfo ) ; } | This method is called LinkTargetHelper . getLink when PM wants to provide AccessIntent to use for ejbLink processing . When this method is called the methodId should be in the negative range to indicate this is a special method with the method signature passed in . This method signature is then used to create the EJSMe... |
25,531 | public EnterpriseBean preInvoke ( EJSWrapperBase wrapper , int methodId , EJSDeployedSupport s , String methodSignature ) throws RemoteException { EJBMethodInfoImpl methodInfo = mapMethodInfo ( s , wrapper , methodId , methodSignature ) ; return preInvokePmInternal ( wrapper , methodId , s , methodInfo ) ; } | This method is called by the generated code to support PMgr home finder methods . When this method is called the methodId should be in the negative range to indicate this is a special method with the method signature passed in . This method signature is then used to create the EJSMethodInfo in mapMethodInfo call . The ... |
25,532 | private void preInvokeAfterActivate ( EJSWrapperBase wrapper , Object bean , EJSDeployedSupport s , Object [ ] args ) throws RemoteException { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; s . ivEJBMethodArguments = args ; if ( ! s . isLightweight ) { try { EJBSecurityCollaborator < ? > securityC... | LIDB2617 . 11 |
25,533 | private Object notifySecurityCollaboratorPreInvoke ( EJBSecurityCollaborator < ? > collaborator , EJBRequestData request ) throws CSIException { try { return collaborator . preInvoke ( request ) ; } catch ( EJBAccessException ex ) { CSIAccessException csiEx = new CSIAccessException ( ex . getMessage ( ) ) ; csiEx . set... | Notify the security collaborator for pre - invoke . This method handles exception mapping for EJBSecurityCollaborator that throw EJBAccessException rather than the legacy CSIAccessException . |
25,534 | public void preInvokeForLifecycleInterceptors ( LifecycleInterceptorWrapper wrapper , int methodId , EJSDeployedSupport s , BeanO beanO ) throws RemoteException { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; EJBThreadData threadData = s . ivThreadData ; EJBMethodInfoImpl methodInfo = mapMethodIn... | A subset of preInvoke specifically for the lifecycle interceptors of a Singleton Session bean . This method must be paired with a call to postInvokeForLifecycleInterceptors . |
25,535 | void postInvokePopCallbackContexts ( EJSDeployedSupport s ) { if ( s . ivPopCallbackBeanORequired ) { s . ivThreadData . popCallbackBeanO ( ) ; BeanO beanO = s . beanO ; if ( beanO != null ) { BeanMetaData bmd = beanO . home . beanMetaData ; if ( bmd . type == InternalConstants . TYPE_STATELESS_SESSION || bmd . type ==... | Pop contexts from the thread for the callback bean . |
25,536 | private void postInvokeRolledbackException ( EJSDeployedSupport s , CSITransactionRolledbackException ex ) throws RemoteException { if ( ( ! s . ivBeginnerSetRollbackOnly && ( ! s . began || s . exType != ExceptionType . CHECKED_EXCEPTION ) ) || s . methodInfo . ivInterface == MethodInterface . TIMED_OBJECT ) { final b... | Called by postInvoke methods when CSIRolledbackException is caught from UOWControl . postInvoke . |
25,537 | public void postInvokeForLifecycleInterceptors ( LifecycleInterceptorWrapper wrapper , int methodId , EJSDeployedSupport s ) throws RemoteException { EJBMethodInfoImpl methodInfo = s . methodInfo ; final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn ) { if ( TEEJBInvocationInfo . isTrace... | A subset of postInvoke specifically for the lifecycle interceptors of a Singleton Session bean . This method must be paired with preInvokeForLifecycleInterceptors . |
25,538 | public static ClassLoader getClassLoader ( J2EEName beanName ) { ClassLoader cl = null ; final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "getClassLoader(" + beanName + ")" ) ; HomeInternal hi = homeOfHomes . getHome ( beanName ) ; if ( h... | Get the ClassLoader for the bean specified by beanName |
25,539 | public Object preInvokeORBDispatch ( Object object , String operation ) { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isDebugEnabled ( ) ) { String objStr = null ; if ( object != null ) objStr = object . getClass ( ) . getName ( ) ; Tr . debug ( tc , "preInvokeORBDispatch... | This method is driven when dispatch is called upon a server request . It should return a cookie Object which uniquely identifies this preinvoke . This cookie should be passed as a paramater when the corresponding postinvoke is called . |
25,540 | public void postInvokeORBDispatch ( Object object ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) Tr . debug ( tc , "postInvokeORBDispatch: " + ( object != null ) ) ; if ( object != null ) { ( ( EJBThreadData ) object ) . popClassLoader ( ) ; } } | This method is driven just before the server side interceptors are driven for a server response . |
25,541 | public EJBHome getEJBHome ( J2EEName name ) throws ContainerEJBException { try { EJSWrapperCommon wrapperCommon = getHomeWrapperCommon ( name ) ; EJSWrapper wrapper = wrapperCommon . getRemoteWrapper ( ) ; return ( EJBHome ) PortableRemoteObject . toStub ( wrapper ) ; } catch ( RemoteException re ) { FFDCFilter . proce... | Returns a reference to the EJBHome associated with a specified J2EEName . |
25,542 | public EJBLocalHome getEJBLocalHome ( J2EEName name ) throws ContainerEJBException { try { EJSWrapperCommon wrapperCommon = getHomeWrapperCommon ( name ) ; return ( EJBLocalHome ) wrapperCommon . getLocalObject ( ) ; } catch ( Throwable t ) { FFDCFilter . processException ( t , CLASS_NAME + ".getEJBLocalHome" , "2993" ... | Returns a reference to the EJBLocalHome associated with a specified J2EEName . |
25,543 | public void setPreferredCacheSize ( long size ) { int intSize = ( int ) size ; activator . setCachePreferredMaxSize ( intSize ) ; wrapperManager . setWrapperCacheSize ( 2 * intSize ) ; } | Set the cache size used by this container . |
25,544 | public Class < ? > getEJBPrimaryKeyClass ( J2EEName j2eeName ) { Class < ? > rtnPKeyClass = null ; BeanMetaData bmd = internalBeanMetaDataStore . get ( j2eeName ) ; if ( bmd != null ) { rtnPKeyClass = bmd . pKeyClass ; } return rtnPKeyClass ; } | Returns the primary key class associated to the input j2eeName or null if j2eeName or primary key is not specified . |
25,545 | public Object invokeProceed ( EJSDeployedSupport s , Method businessMethod , Object bean , Object [ ] methodParameters , boolean parametersModified ) throws Exception { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "EJBinvokeProceed(" ... | LIDB3294 - 41 |
25,546 | public String serverName ( ) { if ( tc . isDebugEnabled ( ) ) Tr . debug ( tc , "serverName" , new Object [ ] { this , _serverName } ) ; return _serverName ; } | Returns the name of the server represented by the managed failure scope . |
25,547 | public void registerTransaction ( TransactionImpl tran , boolean recovered ) { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "registerTransaction" , new Object [ ] { this , tran , recovered } ) ; if ( isConcurrent ) _transactions . add ( tran ) ; if ( ! isConcurrent || recovered ) { synchronized ( this ) { if ( ! is... | This method is called to register the creation of a new transaction associated with the managed failure scope . |
25,548 | public void deregisterTransaction ( TransactionImpl tran , boolean recovered ) { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "deregisterTransaction" , new Object [ ] { this , tran , recovered } ) ; if ( isConcurrent ) _transactions . remove ( tran ) ; if ( ! isConcurrent || recovered ) { synchronized ( this ) { if... | This method is called to register the completion of a transaction associated with the managed failure scope . |
25,549 | public void setFormatString ( String format ) { this . stringFormat = format ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "Set access format to " + format ) ; } parseFormat ( ) ; } | Set the access log format to a String |
25,550 | private AccessLogRecordData toAccessLogRecordData ( final HttpRequestMessage request , final HttpResponseMessage response , final String version , final String userId , final String remoteAddr , final long numBytes ) { final HttpRequestMessage request2 = request ; final HttpResponseMessage response2 = response ; final ... | Return a AccessLogRecordData instance |
25,551 | protected ResourceAdapterMBeanImpl setResourceAdapterChild ( String key , ResourceAdapterMBeanImpl ra ) { return raMBeanChildrenList . put ( key , ra ) ; } | setResourceAdapterChild add a child of type ResourceAdapterMBeanImpl to this MBean . |
25,552 | private synchronized void addedLoginModule ( ) { boolean changedEntries = false ; synchronized ( pendingContextEntryRefs ) { Iterator < ServiceReference < JAASLoginContextEntry > > i = pendingContextEntryRefs . iterator ( ) ; while ( i . hasNext ( ) ) { ServiceReference < JAASLoginContextEntry > contextEntryRef = i . n... | Iterate through pending context entries find any entries that are now satisfied and move them to the main list . |
25,553 | private SIBusMessage _receiveNoWait ( SITransaction tran ) throws SISessionUnavailableException , SISessionDroppedException , SIConnectionUnavailableException , SIConnectionDroppedException , SIResourceException , SIConnectionLostException , SILimitExceededException , SIErrorException , SINotAuthorizedException , SIInc... | This private version of receiveNoWait just simply processes the receive request without doing any checking on the state of the connection session or transaction and without getting any locks needed . This method should be called by a method that does do this . |
25,554 | private void _close ( ) throws SIResourceException , SIConnectionLostException , SIErrorException , SIConnectionDroppedException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "_close" ) ; CommsByteBuffer request = getCommsByteBuffer ( ) ; request . putShort ( g... | Sends a close flow to the peer . |
25,555 | public void close ( boolean closingConnection ) throws SIResourceException , SIConnectionLostException , SIErrorException , SIConnectionDroppedException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "close" , closingConnection ) ; if ( executingOnCallbackThread... | Closes the consumer session . |
25,556 | public void close ( ) throws SIResourceException , SIConnectionLostException , SIErrorException , SIConnectionDroppedException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "close" ) ; close ( false ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEn... | Closes the ConsumerSession . Any subsequent attempt to call methods on the ConsumerSession will be ignored . |
25,557 | private void _deleteSet ( SIMessageHandle [ ] msgHandles , SITransaction tran ) throws SISessionUnavailableException , SISessionDroppedException , SIConnectionUnavailableException , SIConnectionDroppedException , SIResourceException , SIConnectionLostException , SILimitExceededException , SIIncorrectCallException , SIM... | Used to delete a set of messages . |
25,558 | public void activateAsynchConsumer ( boolean deliveryImmediately ) throws SISessionUnavailableException , SISessionDroppedException , SIConnectionUnavailableException , SIConnectionDroppedException , SIResourceException , SIConnectionLostException , SIErrorException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc... | This method is designed to drive an async consumer once and once only if it can be driven . However this is not supported remotely and so calling this method will result in an SICommsException . |
25,559 | public long getId ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "getId" ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( this , tc , "getId" , "" + messageProcessorId ) ; return messageProcessorId ; } | This method returns the id for this consumer session that was assigned to it by the message processor on the server . This is needed when creating a bifurcated consumer session . |
25,560 | public void deliverAsyncException ( Throwable e ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "deliverAsyncException" , e ) ; if ( proxyQueue != null ) { proxyQueue . deliverException ( e ) ; } else { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDe... | This method is used when an asynchronous exception occurs and we want to send a message to any associated exception listeners on this connection . |
25,561 | protected final void setLevel ( int traceLevel ) { switch ( traceLevel ) { case Trace . Level_All : debugEnabled = true ; eventEnabled = true ; entryEnabled = true ; break ; case Trace . Level_Entry : debugEnabled = false ; eventEnabled = false ; entryEnabled = true ; break ; case Trace . Level_Debug : debugEnabled = t... | Enable tracing of this component . |
25,562 | public void afterCompletion ( int status ) { if ( status == Status . STATUS_COMMITTED ) controller . notifyOfTaskAssignment ( partitionId , taskId , expectedExecTime , binaryFlags , txTimeout ) ; } | Upon successful transaction commit automatically schedules a task via the controller . |
25,563 | public static final void appendState ( StringBuilder sb , short bits ) { if ( ( bits & TaskState . SCHEDULED . bit ) != 0 ) sb . append ( TaskState . SCHEDULED . name ( ) ) . append ( ',' ) ; if ( ( bits & TaskState . ENDED . bit ) != 0 ) sb . append ( TaskState . ENDED . name ( ) ) . append ( ',' ) ; if ( ( bits & Tas... | Prints a state . |
25,564 | public static final String normalizeString ( String str ) { return ( str == null || str . length ( ) == 0 ) ? " " : str ; } | Normalizes an empty or a null string into a space string . |
25,565 | @ SuppressWarnings ( "unchecked" ) public Collection < EsaResource > findMatchingEsas ( String searchString , ProductDefinition definition , Visibility visible ) throws RepositoryException { Collection < ? extends RepositoryResource > resources = findResources ( searchString , Collections . singleton ( definition ) , C... | Find the features that match the supplied search string ProductDefinition and Visibility |
25,566 | public Collection < ProductResource > getMatchingAddons ( ProductDefinition definition ) throws RepositoryBackendException { @ SuppressWarnings ( "unchecked" ) Collection < ProductResourceImpl > addonList = ( Collection < ProductResourceImpl > ) getAllResources ( ResourceType . ADDON ) ; Collection < ProductResource > ... | This will obtain the addons from the repository that match the specified product definition |
25,567 | public Collection < RepositoryResource > getMatchingResources ( final FilterPredicate ... predicates ) throws RepositoryBackendException { Collection < RepositoryResource > resources = cycleThroughRepositories ( new RepositoryInvoker < RepositoryResource > ( ) { public Collection < RepositoryResource > performActionOnR... | Returns all resources which match the supplied set of FilterPredicate objects . |
25,568 | public Collection < ? extends RepositoryResource > getAllResourcesWithDupes ( ) throws RepositoryBackendException { Collection < RepositoryResource > resources = cycleThroughRepositoriesWithDupes ( new RepositoryInvoker < RepositoryResource > ( ) { @ SuppressWarnings ( "unchecked" ) public Collection < RepositoryResour... | This method gets all the resources in this list of repositories this list may contain dupes if the same asset is found in multiple repositories . |
25,569 | public Collection < ? extends RepositoryResource > getAllResources ( LicenseType licenseType , ResourceType type ) throws RepositoryBackendException { Collection < ? extends RepositoryResource > allResources = getAllResources ( type ) ; if ( licenseType != null ) { Collection < RepositoryResource > licensedResources = ... | Gets all resources of the specified type and license type from the repositories . |
25,570 | @ SuppressWarnings ( "unchecked" ) public Collection < EsaResource > getAllFeatures ( ) throws RepositoryBackendException { return ( Collection < EsaResource > ) getAllResources ( ResourceType . FEATURE ) ; } | This methods returns a list of all features in the supplied repositories |
25,571 | @ SuppressWarnings ( "unchecked" ) public Collection < ProductResourceImpl > getAllProducts ( LicenseType licenseType ) throws RepositoryBackendException { Collection < ProductResourceImpl > product = ( Collection < ProductResourceImpl > ) getAllResources ( licenseType , ResourceType . INSTALL ) ; Collection < ProductR... | Get all products with a given license type |
25,572 | private static int getOpenPort ( ) throws IOException { Log . info ( c , "getOpenPort" , "Entry." ) ; ServerSocket s = new ServerSocket ( 0 ) ; Log . info ( c , "getOpenPort" , "Got socket." ) ; int port = s . getLocalPort ( ) ; Log . info ( c , "getOpenPort" , "Got port " + s ) ; s . close ( ) ; Log . info ( c , "getO... | Get a free port . |
25,573 | public void add ( Entry entry ) throws LdapException { CoreSession session = this . service . getAdminSession ( ) ; session . add ( entry ) ; } | Convenience method to add an entry using the admin session . |
25,574 | public Partition addPartition ( String partitionId , String partitionDn ) throws Exception { Log . info ( c , "addPartition" , "entry " + partitionId + " " + partitionDn ) ; JdbmPartition partition = new JdbmPartition ( this . service . getSchemaManager ( ) ) ; partition . setId ( partitionId ) ; partition . setPartiti... | Add a new partition to the server |
25,575 | private void initSchemaPartition ( ) throws Exception { final InstanceLayout instanceLayout = this . service . getInstanceLayout ( ) ; final File schemaPartitionDirectory = new File ( instanceLayout . getPartitionsDirectory ( ) , "schema" ) ; if ( schemaPartitionDirectory . exists ( ) ) { System . out . println ( "sche... | initialize the schema manager and add the schema partition to diectory service |
25,576 | public void stopService ( ) throws Exception { Log . info ( c , "stopService" , "Stopping LdapServer" ) ; this . server . stop ( ) ; Log . info ( c , "stopService" , "Stopping DirectoryService" ) ; service . shutdown ( ) ; Log . info ( c , "stopService" , "Ldap stopped." ) ; } | Stop the LdapServer and the Directory service . Use for JUnit teardown . If the service is not stopped then future instances with the same name cannot clean up the file directory . |
25,577 | public void complete ( VirtualConnection vc , TCPReadRequestContext rsc ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "complete() called: vc=" + vc ) ; } HttpOutboundServiceContextImpl osc = ( HttpOutboundServiceContextImpl ) vc . getStateMap ( ) . get ( CallbackIDs ... | If the read completes with data then this method will be called . It then depends on what state the actual connection is in on what should happen next . |
25,578 | public void error ( VirtualConnection vc , TCPReadRequestContext rsc , IOException ioe ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "error() called: vc=" + vc + " ioe=" + ioe ) ; } HttpOutboundServiceContextImpl osc = ( HttpOutboundServiceContextImpl ) vc . getState... | If an error occurs such as the server side closing down the socket then this method will be called . Depending on what state the connection is in this error is either sent to the application channel immediately or delayed until the actual read for the response would start when it can then hand the error off to the appl... |
25,579 | public static String dumpTree ( Event event , boolean includeContextInfo ) { return new EventStackFormatter ( ) . getStackFormat ( event , includeContextInfo ) . toString ( ) ; } | This method is used to dump the event in Tree structure . Currently used for Request Timing where it will keep a log of timing of request execution in case it exceeds it will call this method and dump the tree of Request Dumping would be for log file or into Fight Data Recorder |
25,580 | public SourcedValue getSourced ( ) { boolean fromCache = true ; int cacheVersion = stampedValue . getStamp ( ) ; int latestVersion = parentContainer . getMasterVersion ( ) ; String key = parentContainer . getKey ( ) ; SourcedValue sourcedValue = null ; if ( cacheVersion != latestVersion ) { SourcedValue currentValue = ... | Fetch the latest version of the property . If not up to date then resolve to the latest value inline . |
25,581 | private ThreadContextDescriptor appendInflowContext ( ) throws WorkCompletedException { ThreadContextDescriptor merged = threadContextDescriptor . clone ( ) ; Set < String > inflowContext = new HashSet < String > ( ) ; if ( workContexts != null ) for ( WorkContext workContext : workContexts ) if ( workContext instanceo... | Append work inflow context to the captured thread context . |
25,582 | private WorkCompletedException contextSetupFailure ( Object context , String errorCode , Throwable cause ) { if ( context instanceof WorkContextLifecycleListener ) ( ( WorkContextLifecycleListener ) context ) . contextSetupFailed ( errorCode ) ; String message = null ; if ( WorkContextErrorCodes . DUPLICATE_CONTEXTS . ... | Handle a work context setup failure . |
25,583 | public void run ( ) { JCASecurityContext ctx = bootstrapContext . getJCASecurityContext ( ) ; if ( ctx != null ) ctx . runInInboundSecurityContext ( work ) ; else work . run ( ) ; } | When this is invoked the work is running with context on the thread . |
25,584 | Long waitForStart ( ) throws InterruptedException , WorkRejectedException { long timeout = startTimeout == WorkManager . UNKNOWN ? WorkManager . INDEFINITE : startTimeout < fudgeFactor ? fudgeFactor : startTimeout ; Object o = startupDurationQueue . poll ( timeout , TimeUnit . MILLISECONDS ) ; if ( o instanceof WorkRej... | Waits for the work to start . |
25,585 | public static FacesInitializer getFacesInitializer ( ServletContext context ) { FacesInitializer initializer = _getFacesInitializerFromInitParam ( context ) ; if ( initializer == null ) { initializer = _getDefaultFacesInitializer ( context ) ; } return initializer ; } | Gets the FacesInitializer for the system . |
25,586 | private static FacesInitializer _getFacesInitializerFromInitParam ( ServletContext context ) { String initializerClassName = context . getInitParameter ( FACES_INITIALIZER_PARAM ) ; if ( initializerClassName != null ) { try { Class < ? > clazz = ClassUtils . classForName ( initializerClassName ) ; if ( ! FacesInitializ... | Gets a FacesInitializer from the web . xml config param . |
25,587 | public BaseDestinationHandler getDestination ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , "getDestination" ) ; SibTr . exit ( tc , "getDestination" , _baseDestHandler ) ; } return _baseDestHandler ; } | Get the BaseDestinationHandler object to which this CD belongs |
25,588 | public SIBUuid8 getUuid ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , "getUuid" ) ; SibTr . exit ( tc , "getUuid" , _cmUuid ) ; } return _cmUuid ; } | Get the Uuid for this consumer manager . |
25,589 | public ConsumerKeyGroup joinKeyGroup ( ConsumerKey consumerKey , OrderingContextImpl orderingGroup ) throws SIResourceException , SISessionDroppedException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "joinKeyGroup" , new Object [ ] { consumerKey , orderingGroup } ) ... | Add the supplied consumerKey to a keyGroup create the keyGroup if required |
25,590 | public void removeKeyGroup ( LocalQPConsumerKeyGroup keyGroup ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "removeKeyGroup" , keyGroup ) ; synchronized ( _baseDestHandler . getReadyConsumerPointLock ( ) ) { Iterator keys = keyGroups . keySet ( ) . iterator ( ) ; wh... | Remove the keyGroup from the CD this occurs when the last member is removed from the group |
25,591 | void parseHeader ( String header , Set < String > packages ) { if ( header != null && header . length ( ) > 0 ) { List < String > splitPackages = new ArrayList < String > ( ) ; int lastIndex = 0 ; boolean inQuotedSection = false ; int i = 0 ; for ( i = 0 ; i < header . length ( ) ; i ++ ) { if ( ( header . charAt ( i )... | This algorithm is nuts . Bnd has a nice on in OSGIHeader . |
25,592 | public static void addShutdownHook ( final Thread shutdownHook ) { Object token = ThreadIdentityManager . runAsServer ( ) ; try { AccessController . doPrivileged ( new PrivilegedAction < Void > ( ) { public Void run ( ) { Runtime . getRuntime ( ) . addShutdownHook ( shutdownHook ) ; return null ; } } ) ; } finally { Th... | Add a shutdown hook as a privileged action . |
25,593 | public synchronized AnnotationHelper getAnnotationHelper ( ) { if ( aHelper == null ) { this . aHelper = new AnnotationHelper ( wApp ) ; if ( com . ibm . ejs . ras . TraceComponent . isAnyTracingEnabled ( ) && logger . isLoggable ( Level . FINE ) ) { logger . logp ( Level . FINE , CLASS_NAME , "getAnnotationHelper" , "... | Retrieves an AnnotationHelper instance . |
25,594 | protected void unsetItemInterface ( ServiceReference < ItemInterface > ref ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) SibTr . entry ( tc , "unsetItemInterface" , ref ) ; itemInterfaceRef . setReference ( ref ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( )... | Declarative Services method for unsetting the ItemInterface service reference . |
25,595 | public static AbstractItem getItemStreamInstance ( String itemClassName ) { AbstractItem itemStream = itemInterfaceRef . getService ( ) . getItemStreamInstance ( itemClassName ) ; ; return itemStream ; } | Static method for getting the ItemStream instance from the runtime . |
25,596 | public void busReloaded ( Object newBus , boolean busChanged , boolean destChg , boolean medChg ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( this , tc , "busReloaded" ) ; SibTr . exit ( this , tc , "busReloaded" ) ; } } | Notification that the configuration of the bus has changed . |
25,597 | public void commitPreparedTransaction ( String xid ) throws TransactionException , PersistenceException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "commitPreparedTransaction" , xid ) ; if ( _manager != null ) { try { PersistentTranId pid = new PersistentTran... | Commit the given transaction . Given a string representing an xid create a PersistentTranId from it and then request the XidManager to commit it . Part of MBean interface for resolving in - doubt transactions . |
25,598 | public void dump ( FormattedWriter fw ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "dump" ) ; try { xmlRequestWriteOnFile ( fw ) ; } catch ( IOException e ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEventEnabled ( ) ) SibTr . event ( this , t... | Dump message store dynamic diagnostic information . |
25,599 | public void dump ( FormattedWriter fw , String arg ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "dump" , arg ) ; if ( arg != null ) { if ( arg . equalsIgnoreCase ( "raw" ) ) { dumpRaw ( fw ) ; } else if ( arg . equalsIgnoreCase ( "all" ) ) { dumpAll ( fw ) ;... | Dump message store . This method is called from the Messaging Engine MBean . |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.