idx int64 0 41.2k | question stringlengths 83 4.15k | target stringlengths 5 715 |
|---|---|---|
40,100 | public static boolean walkPath ( File appRoot , String relativePath ) throws IOException { String [ ] relativePathElements = relativePath . replace ( File . separatorChar , '/' ) . split ( "/" ) ; File currentPath = new File ( appRoot . getCanonicalPath ( ) ) ; for ( int i = 0 ; i < relativePathElements . length ; i ++... | end 94578 Security Defect . |
40,101 | public static void staticHandleControlMessage ( ControlMessage cMsg , DestinationManager DM , MessageProcessor MP ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "staticHandleControlMessage" , new Object [ ] { cMsg , DM , MP } ) ; ControlMessageType type = cMsg . getC... | This is the only message handling method which should be invoked on the DurableOutputHandler . This method will receive control messages giving the status of durable subcription creation or deletion as well as stream creation requests . |
40,102 | protected static void handleCreateDurable ( DestinationManager DM , ControlCreateDurable msg , MessageProcessor MP ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "handleCreateDurable" , new Object [ ] { DM , msg , MP } ) ; int status = STATUS_SUB_GENERAL_ERROR ; SIBU... | Attempt to create a new durable subscription and send back either a ControlDurableConfirm giving the result . |
40,103 | protected static void handleDeleteDurable ( DestinationManager DM , ControlDeleteDurable msg , MessageProcessor MP ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "handleDeleteDurable" , new Object [ ] { DM , msg , MP } ) ; int status = STATUS_SUB_GENERAL_ERROR ; try ... | Attempt to delete the durable subscription specified by the sender and send back a ControlDurableConfirm giving the result . |
40,104 | protected static ControlDurableConfirm createDurableConfirm ( MessageProcessor MP , SIBUuid8 target , long reqID , int status ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "createDurableConfirm" , new Object [ ] { MP , target , new Long ( reqID ) , new Integer ( sta... | Create a DurableConfirm reply . |
40,105 | protected static ControlCardinalityInfo createCardinalityInfo ( MessageProcessor MP , SIBUuid8 target , long reqID , int card ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "createCardinalityInfo" , new Object [ ] { MP , target , new Long ( reqID ) , new Integer ( ca... | Create a CardinalityInfo reply . |
40,106 | protected static void initializeControlMessage ( SIBUuid8 sourceME , ControlMessage msg , SIBUuid8 remoteMEId ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "initializeControlMessage" , new Object [ ] { msg , remoteMEId } ) ; SIMPUtils . setGuaranteedDeliveryProperti... | Common initialization for all messages sent by the DurableOutputHandler . |
40,107 | private void associateConnection ( ManagedConnectionFactory mcf , Subject subject , ConnectionRequestInfo cri , Object connection ) throws ResourceException { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . entry ( this , tc , "associateConnection" )... | not associated with a connection to get reassociated with a valid connection . |
40,108 | private void reassociateConnectionHandle ( Object connection , MCWrapper fromMCWrapper , MCWrapper toMCWrapper , UOWCoordinator uowCoord ) throws ResourceException { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . entry ( this , tc , "reassociateConn... | with a new MCWrapper . The fromMCWrapper can be null - needed for SmartHandle support . |
40,109 | public void inactiveConnectionClosed ( Object connection , ManagedConnectionFactory managedConnectionFactory ) { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) { Tr . entry ( this , tc , "inactiveConnectionClosed" ) ; } if ( isTraceOn && tc . isEntryEnab... | This method is called by resource adapters that support lazy associable connections in order to notify the connection manager that it moved the a connection handle from the inactive state to closed . |
40,110 | private boolean raSupportsCCILocalTran ( ManagedConnectionFactory mcf ) throws ResourceException { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; ConnectionFactory cf ; ResourceAdapterMetaData raMetaData ; boolean cciLocalTranSupported = false ; if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . ent... | This method returns a boolean value indicating whether or not CCI Local Transaction support is provided by the resource adapter . |
40,111 | private void readObject ( ObjectInputStream s ) throws java . io . IOException , java . lang . ClassNotFoundException { throw new UnsupportedOperationException ( ) ; } | Overrides the default deserialization for reading this object |
40,112 | public void purgePool ( ) throws ResourceException { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) { Tr . entry ( this , tc , "purgePool" ) ; } _pm . purgePoolContents ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) { Tr . exit ( this , tc , "purgePoo... | This is called by the RRA only when db2 reroute is being used |
40,113 | protected int supportsBranchCoupling ( int couplingType , ManagedConnectionFactory managedConnectionFactory ) { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; int startFlag ; if ( isJDBC ) { startFlag = ( ( WSManagedConnectionFactory ) managedConnectionFactory ) . getXAStartFlagForBranchCoupling (... | Only called if couplingType indicates LOOSE or TIGHT |
40,114 | protected boolean matchBranchCoupling ( int couplingType1 , int couplingType2 , ManagedConnectionFactory managedConnectionFactory ) { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; boolean matched = true ; if ( isJDBC && couplingType1 != couplingType2 ) { if ( couplingType1 == ResourceRefInfo . BR... | May be called if couplingType indicates LOOSE or TIGHT or is UNSET |
40,115 | private final Subject getFinalSubject ( ConnectionRequestInfo requestInfo , final ManagedConnectionFactory mangedConnectionFactory , Object CM ) throws ResourceException { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; Subject subj = null ; if ( this . containerManagedAuth ) { final Map < String ,... | Returns the subject for container managed authentication . |
40,116 | protected void dumpJFapServerStatus ( final IncidentStream is ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "dumpJFapServerStatus" , is ) ; dumpMEtoMEConversations ( is ) ; dumpInboundConversations ( is ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc ... | Dump all information relating to server side comms . |
40,117 | private void dumpMEtoMEConversations ( final IncidentStream is ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "dumpMEtoMEConversations" , is ) ; final ServerConnectionManager scm = ServerConnectionManager . getRef ( ) ; final List obc = scm . getActiveOutbound... | Dump out all outbound ME to ME conversations . |
40,118 | private void dumpInboundConversations ( final IncidentStream is ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "dumpInboundConversations" , is ) ; final List serverConvs = ServerTransportAcceptListener . getInstance ( ) . getActiveConversations ( ) ; is . writ... | This method dumps the status of any inbound conversations that are currently active . It does this by asking the accept listeners for their list of active conversations and dumping out the details in their conversation states . |
40,119 | private void dumpServerConversation ( IncidentStream is , Conversation conv ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "dumpServerConversation" , new Object [ ] { is , conv } ) ; final ConversationState convState = ( ConversationState ) conv . getAttachmen... | Dumps the details of a particular server conversation . |
40,120 | private void dumpMEtoMEConversation ( IncidentStream is , Conversation conv ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "dumpMEtoMEConversation" , new Object [ ] { is , conv } ) ; final ConversationState convState = ( ConversationState ) conv . getAttachmen... | Dumps the particulars of a ME to ME client side conversation . |
40,121 | public int getAccessor ( JMFSchema schema ) { for ( Accessor acc = accessor ; acc != null ; acc = acc . next ) if ( schema == acc . schema ) return acc . accessor ; return - 1 ; } | Implement the general getAccessor method |
40,122 | public Object copyValue ( Object val , int indirect ) throws JMFSchemaViolationException { if ( indirect == 0 ) return copy ( val , 0 ) ; else return coder . copy ( val , indirect - 1 ) ; } | Create a copy of the value of this JSField s type |
40,123 | public void getGroupsForUserInTopGroup ( ) throws Exception { Assume . assumeTrue ( ! LDAPUtils . USE_LOCAL_LDAP_SERVER ) ; String user = topGroupUser ; Log . info ( logClass , "getGroupsForUserInTopGroup" , "Checking with a valid user." ) ; List < String > list = myServlet . getGroupsForUser ( user ) ; System . out . ... | Hit the test servlet to see if getGroupsForUser works when supplied with a valid user in top level nested group . This test expects that only the top level nested group nested_g1 will be returned . This verifies the various required bundles got installed and are working . |
40,124 | public void getUniqueGroupIdsForUserInNestedGroup ( ) throws Exception { Assume . assumeTrue ( ! LDAPUtils . USE_LOCAL_LDAP_SERVER ) ; String user = getCN ( ) + nestedUser + getSuffix ( ) ; Log . info ( logClass , "getUniqueGroupIdsForUserInNestedGroup" , "Checking with a valid user." ) ; List < String > list = myServl... | Hit the test servlet to see if getUniqueGroupIdsForUser works when supplied with a valid user in a nested group . This verifies the various required bundles got installed and are working . |
40,125 | private MetricImpl getCommittedMetric ( MetricImpl . MetricType metricType ) { return ( MetricImpl ) committedMetrics . get ( metricType . name ( ) ) ; } | Since this is a non - trivial behavior to support let s keep it internal rather than exposing it . |
40,126 | public Iterable < RemoteInstanceDetails > getLogLists ( ) { ArrayList < RemoteInstanceDetails > result = new ArrayList < RemoteInstanceDetails > ( ) ; for ( Date startTime : resultList ) { result . add ( new RemoteInstanceDetails ( query , startTime , new String [ 0 ] ) ) ; } return result ; } | returns list of server instances satisfying the request . |
40,127 | public static Expectations successfullyReachedUrl ( String url ) { Expectations expectations = new Expectations ( ) ; expectations . addSuccessCodeForCurrentAction ( ) ; expectations . addExpectation ( new ResponseUrlExpectation ( Constants . STRING_EQUALS , url , "Did not reach the expected URL." ) ) ; return expectat... | Set success for current action only |
40,128 | public void destroy ( String name , Object instance ) { if ( instance != null && isManagedBean ( name ) ) { try { _lifecycleProvider . destroyInstance ( instance ) ; } catch ( IllegalAccessException e ) { log . log ( Level . SEVERE , "Could not access @PreDestroy method of managed bean " + name , e ) ; } catch ( Invoca... | Destroys the given managed bean . |
40,129 | public Map < String , Object > cacheVendorConnectionProps ( Connection sqlConn ) throws SQLException { try { Class < ? > c = OracleConnection . get ( ) ; if ( c == null ) OracleConnection . set ( c = WSManagedConnectionFactoryImpl . priv . loadClass ( mcf . jdbcDriverLoader , oracle_jdbc_OracleConnection ) ) ; Map < St... | This method is called to cache the default set of properties for a Connection . The properties only need to be cached when applications are invoking a set of specific Vendor APIs which change properties that must be returned to default values before pooling a connection . |
40,130 | public boolean doConnectionCleanup ( Connection conn ) throws SQLException { final boolean trace = TraceComponent . isAnyTracingEnabled ( ) ; if ( trace && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "doConnectionCleanup" ) ; boolean result = false ; try { Class < ? > c = OracleConnection . get ( ) ; if ( c == null ) O... | Closes the proxy session . |
40,131 | public void psSetString ( PreparedStatement pstmtImpl , int i , String x ) throws SQLException { int length = ( x == null ? 0 : x . getBytes ( ) . length ) ; if ( tc . isDebugEnabled ( ) ) { Tr . debug ( this , tc , "string length: " + length ) ; } if ( length > 4000 ) { if ( tc . isDebugEnabled ( ) ) Tr . debug ( this... | - allow for special handling of Oracle prepared statement setString |
40,132 | private < T extends Annotation > boolean checkReusable ( MetricResolver . Of < T > of ) { String name = of . metadata ( ) . getName ( ) ; if ( ! of . isInitialDiscovery ( ) ) { return true ; } Metadata existingMetadata = registry . getMetadata ( ) . get ( name ) ; if ( existingMetadata != null && ( existingMetadata . i... | Checks whether the metric should be re - usable |
40,133 | public TagAttribute [ ] getAll ( String namespace ) { int idx = 0 ; if ( namespace == null ) { idx = Arrays . binarySearch ( _namespaces , "" ) ; } else { idx = Arrays . binarySearch ( _namespaces , namespace ) ; } if ( idx >= 0 ) { return _nsattrs . get ( idx ) ; } return EMPTY ; } | Get all TagAttributes for the passed namespace |
40,134 | private static void createRestorerInstance ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "createRestorerInstance" ) ; try { Class cls = Class . forName ( SI_MESSAGE_HANDLE_RESTORER_CLASS ) ; instance = ( SIMessageHandleRestorer ) cls . newInstance ( ) ; } catch ( ... | Create the singleton Restorer instance . |
40,135 | public void queueTimerToStart ( TimerNpImpl timer ) { if ( globalTransaction ) { if ( timersQueuedToStart == null ) { timersQueuedToStart = new HashMap < String , TimerNpImpl > ( ) ; } timersQueuedToStart . put ( timer . getTaskId ( ) , timer ) ; } else { timer . start ( ) ; if ( TraceComponent . isAnyTracingEnabled ( ... | Add the input non - persistent timer to the queue of timers to be started upon commit of the global transaction . If not in a global transaction start the timer immediately . |
40,136 | public BeanO find ( BeanId beanId ) { BeanO bean = null ; if ( beanOs != null ) { bean = beanOs . get ( beanId ) ; } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { ivTxCacheSearch ++ ; if ( bean != null ) { ivTxCacheHits ++ ; Tr . debug ( tc , "Bean found in Transaction cache (Hit Rate:" +... | d173022 . 4 |
40,137 | protected void setIsolationLevel ( int isolationLevel ) throws IsolationLevelChangeException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEventEnabled ( ) ) { Tr . event ( tc , "current isolation level = " + MethodAttribUtils . getIsolationLevelString ( ivIsolationLevel ) + ", attempting to change to = " +... | Set the isolation level for the current transacion and ensure that it has not changed within the transaction . |
40,138 | public void setCompleting ( boolean isCompleting ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) Tr . debug ( tc , "setCompleting= " + isCompleting ) ; isActivitySessionCompleting = isCompleting ; if ( finderSyncList != null ) { int numberofCallers = finderSyncList . size ( ) ; for ( int ... | d126930 . 3 |
40,139 | public void enlistContainerSync ( Synchronization s ) throws CPIException { if ( ! ( s instanceof ContainerSynchronization ) ) { throw new CPIException ( "Must implement ContainerSynchronization interface" ) ; } if ( finderSyncList == null ) { finderSyncList = new ArrayList < Synchronization > ( ) ; } finderSyncList . ... | d139562 . 11 |
40,140 | protected void releaseResources ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) Tr . debug ( tc , "releaseResources : State = " + stateStrs [ state ] ) ; if ( state != COMMITTED && state != ROLLEDBACK ) { return ; } afterList = null ; beanOList = null ; beanOs = null ; cmdAccessor = nul... | d154342 . 10 d215317 |
40,141 | protected static String uowIdToString ( Object uowId ) { String tidStr = null ; if ( uowId != null ) { if ( uowId instanceof LocalTransactionCoordinator ) { tidStr = "tid=" + Integer . toHexString ( uowId . hashCode ( ) ) + "(LTC)" ; } else { int idx ; tidStr = uowId . toString ( ) ; if ( ( idx = tidStr . lastIndexOf (... | LI3795 - 56 |
40,142 | @ FFDCIgnore ( Exception . class ) protected static final String [ ] parseToken ( String tokenStr ) throws InvalidTokenException { String [ ] fields = new String [ 3 ] ; int tokenLen = tokenStr . length ( ) ; char c ; int signBegin = - 1 , expireBegin = - 1 ; try { for ( int i = tokenLen - 1 ; i > - 1 ; i -- ) { c = to... | Parse the String form of a LTPA token and extract the UserData expiration limit and the signature . |
40,143 | private static void addAttributes ( String data , Map < String , ArrayList < String > > attribs ) { String key ; String value ; int keyIndex = 0 ; int dataLen = data . length ( ) ; for ( keyIndex = 0 ; keyIndex < dataLen ; keyIndex ++ ) { if ( ( data . charAt ( keyIndex ) == USER_ATTRIB_DELIM ) && ( data . charAt ( key... | Given a specified String parse to find attributes and add to specified Map . |
40,144 | protected static final Map < String , ArrayList < String > > parseUserData ( String userData ) { int tokenLen = userData . length ( ) ; int numOfAttribs = 1 ; int lastDelim = 0 ; int i = 0 ; Map < String , ArrayList < String > > attribs = new HashMap < String , ArrayList < String > > ( ) ; for ( i = 0 ; i < tokenLen ; ... | Parse the String form of a UserData and get a Map of the UserData . |
40,145 | static Library getSharedLibrary ( String id ) { if ( bundleContext == null ) { return null ; } String filter = "(" + "id=" + id + ")" ; Collection < ServiceReference < Library > > refs = null ; try { refs = bundleContext . getServiceReferences ( Library . class , filter ) ; } catch ( InvalidSyntaxException e ) { if ( t... | Retrieve a library from the service registry . |
40,146 | private static BundleContext checkBundleContext ( ) { if ( bundleContext == null ) { if ( tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "BundleContext is null and should not be" ) ; } } return bundleContext ; } | Check to make sure the bundleContext has been set . |
40,147 | public static void tracePreInvokeBegins ( EJSDeployedSupport s , EJSWrapperBase wrapper ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { StringBuffer sbuf = new StringBuffer ( ) ; sbuf . append ( MthdPreInvokeEntry_Type_Str ) . append ( DataDelimiter ) . append ( MthdPreInvokeEntry_Type ... | This is called by the EJB container server code to write a EJB method call preinvoke begins record to the trace log if enabled . |
40,148 | public static void tracePreInvokeEnds ( EJSDeployedSupport s , EJSWrapperBase wrapper ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { StringBuffer sbuf = new StringBuffer ( ) ; sbuf . append ( MthdPreInvokeExit_Type_Str ) . append ( DataDelimiter ) . append ( MthdPreInvokeExit_Type ) . ... | This is called by the EJB container server code to write a EJB method call preinvoke ends record to the trace log if enabled . |
40,149 | public static void tracePreInvokeException ( EJSDeployedSupport s , EJSWrapperBase wrapper , Throwable t ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { StringBuffer sbuf = new StringBuffer ( ) ; sbuf . append ( MthdPreInvokeException_Type_Str ) . append ( DataDelimiter ) . append ( Mth... | This is called by the EJB container server code to write a EJB method call preinvoke exceptions record to the trace log if enabled . |
40,150 | public static void tracePostInvokeBegins ( EJSDeployedSupport s , EJSWrapperBase wrapper ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { StringBuffer sbuf = new StringBuffer ( ) ; sbuf . append ( MthdPostInvokeEntry_Type_Str ) . append ( DataDelimiter ) . append ( MthdPostInvokeEntry_Ty... | This is called by the EJB container server code to write a EJB method call postinvoke begins record to the trace log if enabled . |
40,151 | public static void tracePostInvokeEnds ( EJSDeployedSupport s , EJSWrapperBase wrapper ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { StringBuffer sbuf = new StringBuffer ( ) ; sbuf . append ( MthdPostInvokeExit_Type_Str ) . append ( DataDelimiter ) . append ( MthdPostInvokeExit_Type )... | This is called by the EJB container server code to write a EJB method call postinvoke ends record to the trace log if enabled . |
40,152 | protected void assertMessageHandlerNotCorrupt ( ) throws SIMPException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "assertMessageHandlerNotCorrupt" ) ; if ( baseDest . isCorruptOrIndoubt ( ) ) { String nlsMsg = nls . getFormattedMessage ( "MESSAGE_HANDLER_CORRUPT_ER... | A utility method for methods which can only execute if the underlying message handler is not corrupt or waiting to be reset on restart . |
40,153 | public void remove ( ) { Thread thread = Thread . currentThread ( ) ; if ( thread instanceof ThreadPool . Worker ) { Object [ ] wsLocals = getThreadLocals ( ( ThreadPool . Worker ) thread ) ; wsLocals [ index ] = null ; } else { super . remove ( ) ; } } | doesn t ) and that it resets the value to its initial value |
40,154 | private String getManagedBeansInternalEJBName ( ClassInfo classInfo , AnnotationInfo managedBeanAnn ) { String name = getStringValue ( managedBeanAnn , "value" ) ; if ( name == null ) { name = '$' + classInfo . getName ( ) ; } return name ; } | Return the ManagedBean name to be used internally by the EJBContainer . |
40,155 | public void mdbMethodPostInvoke ( ) throws Throwable { Map < String , Object > meContext = ivEJSDeployedSupport . getMessageEndpointContext ( ) ; if ( meContext != null ) { MessageEndpointCollaborator meCollaborator = container . getEJBRuntime ( ) . getMessageEndpointCollaborator ( this . bmd ) ; if ( meCollaborator !=... | Must be called when MDB method completes so that internal state is updated to reflect the completion of MDB method invocation . |
40,156 | public static void discard ( MessageEndpointBase proxy ) { proxy . ivMDB = null ; proxy . ivMessageEndpointFactory = null ; proxy . ivMethod = null ; proxy . ivXAResource = null ; proxy . ivRecoverableXAResource = false ; proxy . container = null ; proxy . ivEJSDeployedSupport = null ; proxy . ivTransactionManager = nu... | Called after the pool discards the object . This gives the object an opportunity to perform any required clean up . |
40,157 | protected Future < ? > dispatch ( final int eventType , final String factoryPid , final String pid ) { final ConfigurationEvent event = createConfigurationEvent ( eventType , factoryPid , pid ) ; if ( event == null ) return null ; final ServiceReference < ConfigurationListener > [ ] refs = st . getServiceReferences ( )... | Dispatch ConfigurationEvent to the ConfigurationListeners . |
40,158 | private static void addDefaultEqualsMethod ( ClassWriter cw , String implClassName ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) Tr . debug ( tc , INDENT + "adding method : equals (Ljava/lang/Object;)Z" ) ; final String desc = "(Ljava/lang/Object;)Z" ; MethodVisitor mv = cw . visitMetho... | Adds the default definition for the Object . equals method . |
40,159 | private static void addDefaultHashCodeMethod ( ClassWriter cw , String implClassName ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) Tr . debug ( tc , INDENT + "adding method : hashCode ()I" ) ; final String desc = "()I" ; MethodVisitor mv = cw . visitMethod ( ACC_PUBLIC , "hashCode" , de... | Adds the default definition for the Object . hashCode method . |
40,160 | private static Class < ? > getInvalidBusinessExtends ( Class < ? > wrapperInterface ) { if ( ( EJBLocalObject . class ) . isAssignableFrom ( wrapperInterface ) ) return EJBLocalObject . class ; if ( ( EJBLocalHome . class ) . isAssignableFrom ( wrapperInterface ) ) return EJBLocalHome . class ; if ( ( EJBObject . class... | d457128 . 2 |
40,161 | public PooledWsByteBufferImpl getEntry ( ) { PooledWsByteBufferImpl returnValue = pool . get ( ) ; if ( returnValue == null ) { returnValue = create ( ) ; } if ( inUseTable != null ) { inUseTable . put ( returnValue , returnValue ) ; } return returnValue ; } | Return a buffer from the pool or allocate a new buffer is the pool is full . |
40,162 | public void release ( PooledWsByteBufferImpl buffer ) { if ( inUseTable != null ) { inUseTable . remove ( buffer ) ; } boolean pooled = pool . put ( buffer ) ; if ( isDirectPool && ! pooled ) { destroy ( buffer ) ; } } | Return a buffer to the pool or free the buffer to be garbage collected if the pool is full . |
40,163 | @ SuppressWarnings ( "unchecked" ) public Object [ ] getInUse ( ) { return inUseTable != null ? ( ( ( Hashtable < PooledWsByteBufferImpl , PooledWsByteBufferImpl > ) inUseTable . clone ( ) ) . keySet ( ) . toArray ( ) ) : new Object [ 0 ] ; } | Return the inUse table . |
40,164 | public void removeFromInUse ( Object buffer ) { if ( inUseTable != null ) { if ( null == buffer ) { throw new NullPointerException ( ) ; } inUseTable . remove ( buffer ) ; } } | Remove a buffer from the InUse pool . To be used when the buffer should be removed without waiting for the release logic to remove it . |
40,165 | void internalDeactivate ( ) { final String methodName = "internalDeactivate" ; if ( TraceComponent . isAnyTracingEnabled ( ) && TRACE . isEntryEnabled ( ) ) { SibTr . entry ( this , TRACE , methodName ) ; } synchronized ( _sessionsByMeUuid ) { _sessionsByMeUuid . clear ( ) ; } super . deactivate ( ) ; if ( TraceCompone... | This method performs tidy up on the endpoint activation and calls the base class s deactivate method |
40,166 | protected void closeConnection ( final String meUuid , boolean alreadyClosed ) { final String methodName = "closeConnection" ; if ( TraceComponent . isAnyTracingEnabled ( ) && TRACE . isEntryEnabled ( ) ) { SibTr . entry ( this , TRACE , methodName , meUuid ) ; } synchronized ( _sessionsByMeUuid ) { super . closeConnec... | Closes the connection for the given messaging engine if there is one open . Removes any corresponding sessions from the maps . |
40,167 | static SibRaDispatchEndpointActivation getEndpointActivation ( final String j2eeName ) { final String methodName = "getEndpointActivation" ; if ( TraceComponent . isAnyTracingEnabled ( ) && TRACE . isEntryEnabled ( ) ) { SibTr . entry ( SibRaDispatchEndpointActivation . class , TRACE , methodName , new Object [ ] { j2e... | Returns the endpoint activation for the message - driven bean with the given J2EE name . There is an array of endpoint activations and this method will return one by going round robin through them all . The round robin behaviour is obtained by using an internal cursor to iterate through the endpoints in the array . |
40,168 | public void associateLog ( DistributedRecoveryLog otherLog , boolean failAssociatedLog ) { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "associateLog" , new Object [ ] { otherLog , failAssociatedLog , this } ) ; if ( otherLog instanceof RecoveryLogImpl ) _recoveryLog . associateLog ( ( ( RecoveryLogImpl ) otherLog ... | Associates another log with this one . |
40,169 | public void setTMS ( TransactionManagerService tms ) { if ( tc . isDebugEnabled ( ) ) Tr . debug ( tc , "setTMS " + tms ) ; tmsRef = tms ; } | The setTMS method call is used to alert the JTMConfigurationProvider to the presence of a TransactionManagerService . |
40,170 | private void checkDataSourceRef ( ) { Object configuredDSR = _props . get ( "dataSourceRef" ) ; if ( configuredDSR == null ) { if ( tc . isDebugEnabled ( ) ) Tr . debug ( tc , "dataSourceRef is not specified, log to filesys" ) ; _isSQLRecoveryLog = false ; } else { if ( tc . isDebugEnabled ( ) ) Tr . debug ( tc , "data... | Determine whether the server is configured to store Tran Logs in an RDBMS |
40,171 | private String parseTransactionLogDirectory ( ) { if ( tc . isDebugEnabled ( ) ) Tr . debug ( tc , "parseTransactionLogDirectory working with " + _props ) ; String configuredLogDir = ( String ) _props . get ( "transactionLogDirectory" ) ; if ( configuredLogDir == null ) { if ( TraceComponent . isAnyTracingEnabled ( ) &... | This method should only be used where logging to a file system . |
40,172 | public List < FacesConfig > getClassloaderFacesConfig ( ExternalContext ectx ) { List < FacesConfig > appConfigResources = new ArrayList < FacesConfig > ( ) ; try { FacesConfigResourceProvider provider = FacesConfigResourceProviderFactory . getFacesConfigResourceProviderFactory ( ectx ) . createFacesConfigResourceProvi... | This method fixes MYFACES - 208 |
40,173 | public void handleMessage ( MessageItem msg , TransactionCommon transaction , SIBUuid8 sourceMEUuid ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "handleMessage" , new Object [ ] { msg , transaction , sourceMEUuid } ) ; SIErrorException e = new SIErrorException ( nl... | This method is a NOP for durable handlers . |
40,174 | public void handleControlMessage ( SIBUuid8 sourceMEUuid , ControlMessage cMsg ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "handleControlMessage" , new Object [ ] { sourceMEUuid , cMsg } ) ; InvalidOperationException e = new InvalidOperationException ( nls . getFo... | NOP for the durable handlers . |
40,175 | public static void staticHandleControlMessage ( ControlMessage cMsg ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "staticHandleControlMessage" , new Object [ ] { cMsg } ) ; ControlMessageType type = cMsg . getControlMessageType ( ) ; if ( ( type == ControlMessageTyp... | This is the only message handling method which should be invoked on the DurableInputHandler . This method will receive control messages giving the status of durable subcription creation or deletion as well as stream creation requests . |
40,176 | protected static void wakeupWaiter ( long reqID , Object result ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "wakeupWaiter" , new Object [ ] { new Long ( reqID ) , result } ) ; synchronized ( _requestMap ) { Long key = new Long ( reqID ) ; Object [ ] waiter = _requ... | Attempt to wake up a blocked thread waiting for a request reply . |
40,177 | protected static ControlCreateStream createDurableCreateStream ( MessageProcessor MP , ConsumerDispatcherState subState , long reqID , SIBUuid8 dme ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "createDurableCreateStream" , new Object [ ] { MP , subState , new Long ... | Create a CreateStream request for an existing durable connection . |
40,178 | protected static ControlCreateDurable createDurableCreateDurable ( MessageProcessor MP , ConsumerDispatcherState subState , long reqID , SIBUuid8 dme ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "createDurableCreateDurable" , new Object [ ] { MP , subState , new Lo... | Create a CreateDurable request for a new durable connection . |
40,179 | protected static ControlDeleteDurable createDurableDeleteDurable ( MessageProcessor MP , String subName , String userName , long reqID , SIBUuid8 dme ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "createDurableDeleteDurable" , new Object [ ] { MP , subName , userNam... | Create a DeleteDurable request for an existing durable connection . |
40,180 | public static Object issueRequest ( MessageProcessor MP , ControlMessage msg , SIBUuid8 remoteUuid , long retry , int tries , long requestID ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "issueRequest" , new Object [ ] { MP , msg , remoteUuid , new Long ( retry ) , ... | Issue a general request wait for the reply then return it . |
40,181 | public static int issueCreateDurableRequest ( MessageProcessor MP , ConsumerDispatcherState subState , SIBUuid8 remoteMEUuid , SIBUuid12 destinationID ) throws SIResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "issueCreateDurableRequest" , new Object [... | Issue a CreateDurable request for a new remote durable subscription . The caller is blocked until we receive a reply for this request . |
40,182 | public static int issueDeleteDurableRequest ( MessageProcessor MP , String subName , String userName , SIBUuid8 remoteMEUuid ) throws SIResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "issueDeleteDurableRequest" , new Object [ ] { MP , subName , userNa... | Issue a DeleteDurable request for an existing remote durable subscription . The caller is blocked until we receive a reply for this request . |
40,183 | protected static void internalAlarmHandler ( Object arg ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "internalAlarmHandler" , arg ) ; ResendRecord record = ( ResendRecord ) arg ; synchronized ( _requestMap ) { Long key = new Long ( record . requestID ) ; if ( _requ... | Process a retry alarm . |
40,184 | public static void createRemoteDurableSubscription ( MessageProcessor MP , ConsumerDispatcherState subState , SIBUuid8 remoteMEUuid , SIBUuid12 destinationID ) throws SIDurableSubscriptionAlreadyExistsException , SIResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . en... | Attempt to create a durable subscription on a remote ME . |
40,185 | public static void deleteRemoteDurableSub ( MessageProcessor MP , String subName , String userName , SIBUuid8 remoteMEUuid ) throws SIResourceException , SIDurableSubscriptionNotFoundException , SIDestinationLockedException , SINotAuthorizedException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnable... | Attempt to delete a durable subscription on a remote ME . |
40,186 | public Subject performLogin ( String jaasEntryName , CallbackHandler callbackHandler , Subject partialSubject ) throws LoginException { LoginContext loginContext = null ; loginContext = doLoginContext ( jaasEntryName , callbackHandler , partialSubject ) ; return ( loginContext == null ? null : loginContext . getSubject... | Performs a JAAS login . |
40,187 | public void configReady ( ) { if ( authenticationService != null ) { JAASChangeNotifier notifier = jaasChangeNotifierService . getService ( ) ; if ( notifier != null ) { notifier . notifyListeners ( ) ; } } } | Notify interested parties that the configuration was changed only if the authentication service is already up and running . |
40,188 | protected void deactivate ( ComponentContext context ) { if ( TraceComponent . isAnyTracingEnabled ( ) && LoggingUtil . SESSION_LOGGER_CORE . isLoggable ( Level . FINER ) ) { LoggingUtil . SESSION_LOGGER_CORE . entering ( CLASS_NAME , "deactivate" , context ) ; } this . unregisterSessionManager ( ) ; if ( TraceComponen... | Since this service is immediate and dynamic it will not be deactivated unless the Servlet feature is removed . When this happens we assume that an external feature stops applications appropariately . The deactivate should NOT stop applications via the appRecycleService because it will NOT be able to issue a correspondi... |
40,189 | protected void setLocationService ( WsLocationAdmin wsLocationAdmin ) { if ( TraceComponent . isAnyTracingEnabled ( ) && LoggingUtil . SESSION_LOGGER_CORE . isLoggable ( Level . FINER ) ) { LoggingUtil . SESSION_LOGGER_CORE . entering ( CLASS_NAME , "setLocationService" , wsLocationAdmin ) ; } this . wsLocationAdmin = ... | Since the location service is only used during SessionManager initialization we don t need to re - register the SessionManager service or restart applications if there s a change to the location service . |
40,190 | protected void setScheduledExecutorService ( ScheduledExecutorService scheduledExecutorService ) { if ( TraceComponent . isAnyTracingEnabled ( ) && LoggingUtil . SESSION_LOGGER_CORE . isLoggable ( Level . FINER ) ) { LoggingUtil . SESSION_LOGGER_CORE . entering ( CLASS_NAME , "setScheduledExecutorService" , scheduledEx... | Tracing is also added for debugging purposes |
40,191 | public RaConnector getProcessedConnector ( ) throws ResourceAdapterInternalException { final boolean trace = TraceComponent . isAnyTracingEnabled ( ) ; String jcaVersion = getAdapterVersion ( deploymentDescriptor ) ; boolean processAnno = checkProcessAnnotations ( deploymentDescriptor , jcaVersion ) ; if ( ! processAnn... | Create a RaConnector xml object and all its associated xml objects that represents the combined ra . xml wlp - ra . xml and annotations if any that are present in the rar file . |
40,192 | @ SuppressWarnings ( "unchecked" ) private List < RaConfigProperty > mergeConfigProperties ( List < RaConfigProperty > rxConfigProperties , List < RaConfigProperty > annotatedConfigProperties ) { final boolean trace = TraceComponent . isAnyTracingEnabled ( ) ; LinkedList < RaConfigProperty > configProperties = new Link... | Merge config properties |
40,193 | public long getMaximumTimeInStore ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "getMaximumTimeInStore" ) ; long originalExpiryTime = super . getMaximumTimeInStore ( ) ; long rejectTime = aih . getRCD ( ) . getRejectTimeout ( ) ; if ( originalExpiryTime == NEVER_E... | Expiry at the Remote ME causes the message to be rejected by the Remote ME . |
40,194 | public void eventLocked ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "eventLocked" ) ; synchronized ( this ) { RemoteDispatchableKey dkey = key . getRemoteDispatchableKey ( ) ; RemoteQPConsumerKey ck = null ; if ( dkey instanceof RemoteQPConsumerKey ) ck = ( Remo... | Notification that this message has been locked . |
40,195 | @ SuppressWarnings ( "unchecked" ) public HttpServletRequest getChainedRequest ( ) throws IOException , ServletException { if ( super . containsError ( ) ) { throw super . getError ( ) ; } ChainedRequest req = new ChainedRequest ( this , _req ) ; Hashtable headers = getAutoTransferringHeaders ( ) ; Enumeration names = ... | Returns a chained request that contains the data that was written to this response . |
40,196 | @ SuppressWarnings ( "unchecked" ) public void setAutoTransferringHeader ( String name , String value ) { Hashtable headers = getAutoTransferringHeaders ( ) ; headers . put ( name , value ) ; } | Set a header that should be automatically transferred to all requests in a chain . These headers will be backed up in a request attribute that will automatically read and transferred by all ChainedResponses . This method is useful for transparently transferring the original headers sent by the client without forcing se... |
40,197 | @ SuppressWarnings ( "unchecked" ) private Hashtable getAutoTransferringHeaders ( ) { Hashtable headers = ( Hashtable ) _req . getAttribute ( AUTO_XFER_HEADERS_ATTR ) ; if ( headers == null ) { headers = new Hashtable ( ) ; _req . setAttribute ( AUTO_XFER_HEADERS_ATTR , headers ) ; } return headers ; } | Get the headers that are designated as auto - transfer . |
40,198 | protected void registerInstrumentationService ( BundleContext systemContext ) { Instrumentation inst = config . getInstrumentation ( ) ; if ( inst != null ) { inst = ( Instrumentation ) Proxy . newProxyInstance ( TraceInstrumentation . class . getClassLoader ( ) , new Class [ ] { Instrumentation . class } , new TraceIn... | Register the instrumentation class as a service in the OSGi registry |
40,199 | protected void registerPauseableComponentController ( BundleContext systemContext ) { PauseableComponentControllerImpl pauseableComponentController = new PauseableComponentControllerImpl ( systemContext ) ; if ( pauseableComponentController != null ) { Hashtable < String , String > svcProps = new Hashtable < String , S... | Register the PauseableComponentController class as a service in the OSGi registry |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.