Example #1
0
        // throws FuseException
        //
        // byte level API
        public static void mount(String[] args, FuseFS fuseFS)
        {
            ThreadGroup threadGroup = new ThreadGroup("FUSE Threads");
            threadGroup.setDaemon(true);

            log.Info("Mounting filesystem");

            mount(args, fuseFS, threadGroup);

            log.Info("Filesystem is unmounted");

            if (log.IsDebugEnabled)
            {
                int n = threadGroup.activeCount();
                log.Debug("ThreadGroup(\"" + threadGroup.getName() + "\").activeCount() = " + n);

                Thread[] threads = new Thread[n];
                threadGroup.enumerate(threads);
                for (int i = 0; i < threads.Length; i++)
                {
                    log.Debug("thread[" + i + "] = " + threads[i] + ", isDaemon = " + threads[i].isDaemon() );
                }
            }
        }
Example #2
0
 // throws FuseException;
 private static void mount(String[] args, FuseFS fuseFS, ThreadGroup threadGroup)
 {
 }