public static List < TraceEvent > filterPoolEvents ( List < TraceEvent > data ) throws Exception { List < TraceEvent > result = new ArrayList < TraceEvent > ( ) ; for ( TraceEvent te : data ) { if ( te . getType ( ) == TraceEvent . CREATE_CONNECTION_LISTENER_GET || te . getType ( ) == TraceEvent . CREATE_CONNECTION_LISTENER_PREFILL || te . getType ( ) == TraceEvent . CREATE_CONNECTION_LISTENER_INCREMENTER || te . getType ( ) == TraceEvent . DESTROY_CONNECTION_LISTENER_RETURN || te . getType ( ) == TraceEvent . DESTROY_CONNECTION_LISTENER_IDLE || te . getType ( ) == TraceEvent . DESTROY_CONNECTION_LISTENER_INVALID || te . getType ( ) == TraceEvent . DESTROY_CONNECTION_LISTENER_FLUSH || te . getType ( ) == TraceEvent . DESTROY_CONNECTION_LISTENER_ERROR || te . getType ( ) == TraceEvent . DESTROY_CONNECTION_LISTENER_PREFILL || te . getType ( ) == TraceEvent . DESTROY_CONNECTION_LISTENER_INCREMENTER || te . getType ( ) == TraceEvent . MANAGED_CONNECTION_POOL_CREATE || te . getType ( ) == TraceEvent . MANAGED_CONNECTION_POOL_DESTROY || te . getType ( ) == TraceEvent . PUSH_CCM_CONTEXT || te . getType ( ) == TraceEvent . POP_CCM_CONTEXT || te . getType ( ) == TraceEvent . REGISTER_CCM_CONNECTION || te . getType ( ) == TraceEvent . UNREGISTER_CCM_CONNECTION || te . getType ( ) == TraceEvent . CCM_USER_TRANSACTION || te . getType ( ) == TraceEvent . UNKNOWN_CCM_CONNECTION || te . getType ( ) == TraceEvent . CLOSE_CCM_CONNECTION || te . getType ( ) == TraceEvent . VERSION ) continue ; result . add ( te ) ; } return result ; }
Filter the pool events