@ProbeAtEntry
    @ProbeSite(clazz = "com.ibm.ejs.j2c.MCWrapper", method = "isNotAlreadyFreeActive")
    public void incFreePoolSize(@This Object ob) {
        try {
            if (tc.isEntryEnabled()) {
                Tr.entry(tc, "incFreePoolSize");
            }
            JCAPMIHelper mObject = (JCAPMIHelper) ob;
            String JNDIName = mObject.getJNDIName(); //First get the actual JNDIName
            if (JNDIName == null) { //Check for null
                JNDIName = mObject.getUniqueId(); //IF it is null then use getUniqueId.JndiName will be null when no JNDI name is given.
            }
            if (JNDIName == null) {
                if (tc.isDebugEnabled()) {
                    Tr.debug(tc, "JNDI Name returned is null this will only come when DS is created but no JNDI name is provided.We Should not handle this case");
                }
                if (tc.isEntryEnabled()) {
                    Tr.exit(tc, "incFreePoolSize");
                }
                return;
            }
            if (JNDIName.contains(":")) {
                JNDIName = JNDIName.replace(":", "-");
            }
            ConnectionPoolStats cStats = connectionPoolCountByName.get(JNDIName);
            if (cStats == null) {
                if (tc.isDebugEnabled()) {
                    Tr.debug(tc,
                             "Do not create new ConnectionPooLStas  at this point if w dnt get ConnectionPoolStats as we are sure that by this time CStats should be created");
                }
                if (tc.isEntryEnabled()) {
                    Tr.exit(tc, "incFreePoolSize");
                }
                return;
            }
            Long iuTime = tlocalforiuTime.get();
            if (iuTime != null) {
                long elapsed = (System.currentTimeMillis() - tlocalforiuTime.get());
                cStats.updateInUseTime(elapsed);
                if (tlocalforiumconThread.get() < 2) {
                    tlocalforiuTime.set(null);
                } else {
                    tlocalforiumconThread.set(tlocalforiumconThread.get() - 1);
                }
            }
            cStats.incFreeConnectionCount();
            tlocalfpsize.set(true);
            if (tc.isEntryEnabled()) {
                Tr.exit(tc, "incFreePoolSize");
            }
        } catch (

        Exception e) {
            e.getMessage();
        }
    }
@ ProbeAtEntry @ ProbeSite ( clazz = "com.ibm.ejs.j2c.MCWrapper" , method = "isNotAlreadyFreeActive" ) public void incFreePoolSize ( @ This Object ob ) { try { if ( tc . isEntryEnabled ( ) ) { Tr . entry ( tc , "incFreePoolSize" ) ; } JCAPMIHelper mObject = ( JCAPMIHelper ) ob ; String JNDIName = mObject . getJNDIName ( ) ; if ( JNDIName == null ) { JNDIName = mObject . getUniqueId ( ) ; } if ( JNDIName == null ) { if ( tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "JNDI Name returned is null this will only come when DS is created but no JNDI name is provided.We Should not handle this case" ) ; } if ( tc . isEntryEnabled ( ) ) { Tr . exit ( tc , "incFreePoolSize" ) ; } return ; } if ( JNDIName . contains ( ":" ) ) { JNDIName = JNDIName . replace ( ":" , "-" ) ; } ConnectionPoolStats cStats = connectionPoolCountByName . get ( JNDIName ) ; if ( cStats == null ) { if ( tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "Do not create new ConnectionPooLStas  at this point if w dnt get ConnectionPoolStats as we are sure that by this time CStats should be created" ) ; } if ( tc . isEntryEnabled ( ) ) { Tr . exit ( tc , "incFreePoolSize" ) ; } return ; } Long iuTime = tlocalforiuTime . get ( ) ; if ( iuTime != null ) { long elapsed = ( System . currentTimeMillis ( ) - tlocalforiuTime . get ( ) ) ; cStats . updateInUseTime ( elapsed ) ; if ( tlocalforiumconThread . get ( ) < 2 ) { tlocalforiuTime . set ( null ) ; } else { tlocalforiumconThread . set ( tlocalforiumconThread . get ( ) - 1 ) ; } } cStats . incFreeConnectionCount ( ) ; tlocalfpsize . set ( true ) ; if ( tc . isEntryEnabled ( ) ) { Tr . exit ( tc , "incFreePoolSize" ) ; } } catch ( Exception e ) { e . getMessage ( ) ; } }
@param MCWrapper Object
This particular Method is called when when a connection going through cleanup was not already in the Free Active
state. This means the free pool connection count should be incremented. The connection is either going to be
added to the free pool, or will be destroyed (and the free pool count will be decremented in destroy).