Package org.apache.ecs

Examples of org.apache.ecs.ElementContainer.addElement()


       
        ElementContainer ec = new ElementContainer();

        this.createCategory( ec, "Memory" );

        ec.addElement( this.getEntry( "Free Memory (K)",
                                      Long.toString( Runtime.getRuntime().freeMemory()/1024 ) ) );
        ec.addElement( this.getEntry( "Total Memory (K)",
                                      Long.toString( Runtime.getRuntime().totalMemory()/1024 ) ) );
       
        JetspeedThreadPoolService service =
View Full Code Here


        this.createCategory( ec, "Memory" );

        ec.addElement( this.getEntry( "Free Memory (K)",
                                      Long.toString( Runtime.getRuntime().freeMemory()/1024 ) ) );
        ec.addElement( this.getEntry( "Total Memory (K)",
                                      Long.toString( Runtime.getRuntime().totalMemory()/1024 ) ) );
       
        JetspeedThreadPoolService service =
            ( JetspeedThreadPoolService ) TurbineServices
            .getInstance()
View Full Code Here

            .getInstance()
            .getService( ThreadPoolService.SERVICE_NAME );
       
        this.createCategory( ec, "Thread Pool" );

        ec.addElement( this.getEntry( "Available threads: ",
                            service.getAvailableThreadCount() ) );
       
        ec.addElement( this.getEntry( "Total threads: ",
                            service.getThreadCount() ) );
View Full Code Here

        this.createCategory( ec, "Thread Pool" );

        ec.addElement( this.getEntry( "Available threads: ",
                            service.getAvailableThreadCount() ) );
       
        ec.addElement( this.getEntry( "Total threads: ",
                            service.getThreadCount() ) );

        ec.addElement( this.getEntry( "Runnable queue length: ",
                            service.getQueueLength() ) );
View Full Code Here

                            service.getAvailableThreadCount() ) );
       
        ec.addElement( this.getEntry( "Total threads: ",
                            service.getThreadCount() ) );

        ec.addElement( this.getEntry( "Runnable queue length: ",
                            service.getQueueLength() ) );

        ec.addElement( this.getEntry( "Processed thread count: ",
                            service.getThreadProcessedCount() ) );
View Full Code Here

                            service.getThreadCount() ) );

        ec.addElement( this.getEntry( "Runnable queue length: ",
                            service.getQueueLength() ) );

        ec.addElement( this.getEntry( "Processed thread count: ",
                            service.getThreadProcessedCount() ) );

        this.createCategory( ec, "PortletRegistry" );

        ec.addElement( this.getEntry( "Number of entries: ",
View Full Code Here

        ec.addElement( this.getEntry( "Processed thread count: ",
                            service.getThreadProcessedCount() ) );

        this.createCategory( ec, "PortletRegistry" );

        ec.addElement( this.getEntry( "Number of entries: ",
                            Registry.get(Registry.PORTLET).getEntryCount() ) );

        this.createCategory( ec, "Resource Manager" );

        ec.addElement( this.getEntry( "Entries in Manager",
View Full Code Here

        ec.addElement( this.getEntry( "Number of entries: ",
                            Registry.get(Registry.PORTLET).getEntryCount() ) );

        this.createCategory( ec, "Resource Manager" );

        ec.addElement( this.getEntry( "Entries in Manager",
                                      URLManager.list( URLManagerService.STATUS_ANY ).size() ) );
        ec.addElement( this.getEntry( "Bad Entries",
                                      URLManager.list( URLManagerService.STATUS_BAD ).size() ) );
        ec.addElement( this.getEntry( "URLs Loading/Refreshing",
                                      URLFetcher.getRealtimeURLs().size() ) );
View Full Code Here

        this.createCategory( ec, "Resource Manager" );

        ec.addElement( this.getEntry( "Entries in Manager",
                                      URLManager.list( URLManagerService.STATUS_ANY ).size() ) );
        ec.addElement( this.getEntry( "Bad Entries",
                                      URLManager.list( URLManagerService.STATUS_BAD ).size() ) );
        ec.addElement( this.getEntry( "URLs Loading/Refreshing",
                                      URLFetcher.getRealtimeURLs().size() ) );

        this.createCategory( ec, "Global Memory Cache" );
View Full Code Here

        ec.addElement( this.getEntry( "Entries in Manager",
                                      URLManager.list( URLManagerService.STATUS_ANY ).size() ) );
        ec.addElement( this.getEntry( "Bad Entries",
                                      URLManager.list( URLManagerService.STATUS_BAD ).size() ) );
        ec.addElement( this.getEntry( "URLs Loading/Refreshing",
                                      URLFetcher.getRealtimeURLs().size() ) );

        this.createCategory( ec, "Global Memory Cache" );
        ec.addElement( this.getEntry( "Objects in Cache",
          GlobalCache.getNumberOfObjects()));
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.