Examples of enableLogging()


Examples of org.apache.avalon.excalibur.pool.ResourceLimitingPool.enableLogging()

        long trimInterval = 0;

        FixedSizePool poolA = new FixedSizePool( factory, max );

        ResourceLimitingPool poolB = new ResourceLimitingPool( factory, max, maxStrict, blocking, blockTimeout, trimInterval );
        poolB.enableLogging( m_poolLogger );

        generalTest( name, poolA, poolB, 100, factory );
    }

    /**
 
View Full Code Here

Examples of org.apache.avalon.excalibur.pool.SingleThreadedPool.enableLogging()

        boolean blocking = false;
        long blockTimeout = 0;
        long trimInterval = 0;

        SingleThreadedPool poolA = new SingleThreadedPool( factory, min, max );
        poolA.enableLogging( m_poolLogger );
        poolA.initialize();

        ResourceLimitingPool poolB = new ResourceLimitingPool( factory, max, maxStrict, blocking, blockTimeout, trimInterval );
        poolB.enableLogging( m_poolLogger );
View Full Code Here

Examples of org.apache.avalon.excalibur.pool.SoftResourceLimitingPool.enableLogging()

        boolean blocking = false;
        long blockTimeout = 0;
        long trimInterval = 0;

        SoftResourceLimitingPool poolA = new SoftResourceLimitingPool( factory, min, max );
        poolA.enableLogging( m_poolLogger );
        poolA.initialize();

        ResourceLimitingPool poolB = new ResourceLimitingPool( factory, max, maxStrict, blocking, blockTimeout, trimInterval );
        poolB.enableLogging( m_poolLogger );
View Full Code Here

Examples of org.apache.avalon.excalibur.testcase.FullLifecycleComponent.enableLogging()

    public void testCorrectLifecycle()
        throws Exception
    {
        FullLifecycleComponent component = new FullLifecycleComponent();

        component.enableLogging( new NullLogger() );
        component.contextualize( new DefaultContext() );
        component.service( new DefaultServiceManager() );
        component.configure( new DefaultConfiguration( "", "" ) );
        component.parameterize( new Parameters() );
        component.initialize();
View Full Code Here

Examples of org.apache.avalon.excalibur.testcase.LatchedThreadGroup.enableLogging()

                }
            }
        };

        LatchedThreadGroup group = new LatchedThreadGroup( runnable, threadCount );
        group.enableLogging( getLogEnabledLogger() );

        // Run the test.
        long duration;
        try
        {
View Full Code Here

Examples of org.apache.avalon.excalibur.thread.impl.DefaultThreadPool.enableLogging()

        try
        {
            final DefaultThreadPool threadPool =
                new DefaultThreadPool( name, minThreads, maxThreads );
            threadPool.setDaemon( isDaemon );
            threadPool.enableLogging( getLogger() );
            threadPools.put( name, threadPool );
        }
        catch( final Exception e )
        {
            final String message = "Error creating ThreadPool named " + name;
View Full Code Here

Examples of org.apache.avalon.excalibur.thread.impl.DefaultThreadPool.enableLogging()

    public void testWithThreadContext()
        throws Exception
    {
        final DefaultThreadPool pool = new DefaultThreadPool( "default", 10 );
        pool.setDaemon( false );
        pool.enableLogging( new ConsoleLogger( ConsoleLogger.LEVEL_INFO ) );
        pool.execute( new DummyRunnable() );
    }

    public void testWithoutThreadContext()
        throws Exception
View Full Code Here

Examples of org.apache.avalon.excalibur.thread.impl.DefaultThreadPool.enableLogging()

    public void testWithoutThreadContext()
        throws Exception
    {
        final DefaultThreadPool pool = new DefaultThreadPool( "default", 10 );
        pool.setDaemon( false );
        pool.enableLogging( new ConsoleLogger( ConsoleLogger.LEVEL_INFO ) );
        pool.execute( new DummyRunnable() );
    }

    private static class DummyRunnable
        implements Runnable
View Full Code Here

Examples of org.apache.avalon.excalibur.thread.impl.ResourceLimitingThreadPool.enableLogging()

        try
        {
            final ResourceLimitingThreadPool threadPool = new ResourceLimitingThreadPool(
                name, max, maxStrict, blocking, blockTimeout, trimInterval );
            threadPool.setDaemon( isDaemon );
            threadPool.enableLogging( getLogger() );
            threadPools.put( name, threadPool );
        }
        catch( final Exception e )
        {
            final String message = "Error creating ThreadPool named " + name;
View Full Code Here

Examples of org.apache.avalon.fortress.impl.role.ConfigurableRoleManager.enableLogging()

    frm.initialize();

    // Create a role manager with the configured roles
    final ConfigurableRoleManager rm = new ConfigurableRoleManager(frm);

    rm.enableLogging(rmLogger);

    try
    {
      rm.configure(roleConfig);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.