Package org.apache.cocoon.components.thread

Examples of org.apache.cocoon.components.thread.RunnableManager


            File file = new File(arguments[9] + ".backup");
            if (file.exists() && file.delete()) {
                getLogger().info("HSQLDB backup file has been deleted.");
            }

            RunnableManager runnableManager = null;
            try
            {
            this.getLogger().debug("Intializing hsqldb server thread");
                runnableManager = (RunnableManager)m_serviceManager.lookup(RunnableManager.ROLE);
                runnableManager.execute( m_daemonThreadPoolName, this );
            }
            catch( final ServiceException se )
            {
                throw new CascadingRuntimeException( "Cannot get RunnableManager", se );
            }
View Full Code Here


            try {
               
                if ( timeout != null ) {
                    final int milli = timeout.intValue() * 1000;
                    LoaderThread loader = new LoaderThread(this, coplet, buffer);
                    final RunnableManager runnableManager = (RunnableManager)this.manager.lookup( RunnableManager.ROLE );
                    try {
                        runnableManager.execute( new CocoonRunnable(loader) );
                    } finally {
                        this.manager.release( runnableManager );
                    }
                    try {
                        read = loader.join( milli );
View Full Code Here

TOP

Related Classes of org.apache.cocoon.components.thread.RunnableManager

Copyright © 2018 www.massapicom. 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.