Package com.sun.corba.ee.spi.orbutil.threadpool

Examples of com.sun.corba.ee.spi.orbutil.threadpool.ThreadPoolManager


    public void scheduleWork(ClassLoader classLoader, Runnable target) {
        ThreadPoolWork work = new ThreadPoolWork(classLoader, target);

        try {
            ThreadPoolManager threadpoolMgr =
                S1ASThreadPoolManager.getThreadPoolManager();
            ThreadPool threadpool = threadpoolMgr.getDefaultThreadPool();
            threadpool.getAnyWorkQueue().addWork(work);
        } catch (Throwable th) {
            String errMsg =  "Error while adding work to orb threadpool. "
                + "Hence doing it in current thread";
            _ejbLogger.log(Level.WARNING, errMsg, th);
View Full Code Here


                       "for Ejb " + ejbDescriptor.getName());
        }


  if (threadPoolName != null) {
      ThreadPoolManager threadPoolManager
    = S1ASThreadPoolManager.getThreadPoolManager();
      try {
    threadPoolNumericID = threadPoolManager.getThreadPoolNumericId(
        threadPoolName);
    policies.add(new RequestPartitioningPolicy(threadPoolNumericID));
      } catch (Exception ex) {
                logger.log(Level.WARNING, "Not using threadpool-request-partitioning...", ex);
      }
View Full Code Here

    public static void addFirst(Work work) {
        addLast(work);
    }

    public static void addLast(Work work) {
        ThreadPoolManager threadpoolMgr =
            S1ASThreadPoolManager.getThreadPoolManager();
        ThreadPool threadpool = threadpoolMgr.getDefaultThreadPool();
        threadpool.getAnyWorkQueue().addWork(work);
    }
View Full Code Here

              orb.setThreadPoolManager(threadpoolMgr);
            }

            // Do the stats for the threadpool
           
            ThreadPoolManager tpool =  orb.getThreadPoolManager();
            // ORB creates its own threadpool if threadpoolMgr was null above
            ThreadPool thpool=tpool.getDefaultThreadPool();
            String ThreadPoolName = thpool.getName();
            ThreadPoolStats tpStats = new ThreadPoolStatsImpl(
                thpool.getWorkQueue(0).getThreadPool());
            StatsProviderManager.register("orb", PluginPoint.SERVER,
                "thread-pool/orb/threadpool/"+ThreadPoolName, tpStats);
View Full Code Here

TOP

Related Classes of com.sun.corba.ee.spi.orbutil.threadpool.ThreadPoolManager

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.