Package com.sun.enterprise.admin.monitor.stats

Examples of com.sun.enterprise.admin.monitor.stats.StringStatisticImpl


   
    private void initializeStatistics() {

        long startTime = System.currentTimeMillis();
        id = new StringStatisticImpl("",
                                     "Id",
                                     "String",
                                     "ID of the connection queue",
                                     startTime,
                                     startTime);
View Full Code Here



    private void initializeStatistics() {
       
        long startTime = System.currentTimeMillis();
        id = new StringStatisticImpl("",
                                     "id",
                                     "String",
                                     "ID of the thread pool",
                                     startTime,
                                     startTime);
View Full Code Here

    private void initializeStatistics(VirtualServer vs) {

        startTime = System.currentTimeMillis();

        // ID
        idStats = new StringStatisticImpl(
                                vs.getID(),
                                "Id",
                                "String",
                                "Virtual Server ID",
                                startTime,
                                startTime);

        // Mode
        modeStats = new StringStatisticImpl(
                                vs.isActive() ? "active" : "unknown",
                                "Mode",
                                "unknown/active",
                                "Virtual Server mode",
                                startTime,
                                startTime);

        // Hosts
        String hosts = null;
        String[] aliases = vs.findAliases();
        if (aliases != null) {
            for (int i=0; i<aliases.length; i++) {
                if (hosts == null) {
                    hosts = aliases[i];
                } else {
                    hosts += ", " + aliases[i];
                }
            }
        }
        hostsStats = new StringStatisticImpl(
                                hosts,
                                "Hosts",
                                "String",
                                "The software virtual hostnames serviced by "
                                + "this Virtual Server",
                                startTime,
                                startTime);

        // Interfaces
        interfacesStats = new StringStatisticImpl(
                                "0.0.0.0", // XXX FIX
                                "Interfaces",
                                "String",
                                "The interfaces for which this Virtual Server "
                                + "has been configured",
View Full Code Here

                lastRequestTime = listener.getLastRequestCompletionTime();
                lastMethod = listener.getLastRequestMethod();
            }
        }

        return new StringStatisticImpl(
                                lastMethod,
                                "method",
                                "String",
                                "Method of the last request serviced",
                                startTime,
View Full Code Here

                lastRequestTime = listener.getLastRequestCompletionTime();
                lastURI = listener.getLastRequestURI();
            }
        }

        return new StringStatisticImpl(
                                lastURI,
                                "uri",
                                "String",
                                "URI of the last request serviced",
                                startTime,
View Full Code Here

                    sb.append(map);
                }
            }
        }

        return new StringStatisticImpl(
                    sb != null ? sb.toString(): null,
                    "Sessions",
                    "String",
                    "List of currently active sessions",
                    initTime,
View Full Code Here

   
    public StringStatistic getName() {
       
        String name = bean.getName();
       
        return new StringStatisticImpl(name,
                   localStrMgr.getString("monitor.stats.name_string"),
                   localStrMgr.getString("monitor.stats.string_units"),
                   localStrMgr.getString("monitor.stats.name_of_jit_compiler"),
                   initTime,
                   System.currentTimeMillis());
View Full Code Here

        {
            idString = idString.concat(String.valueOf(ids[i]));
            idString = idString.concat(DELIMITER);
        }

        return new StringStatisticImpl(idString,
                   localStrMgr.getString("monitor.stats.live_threads"),
                   localStrMgr.getString("monitor.stats.string_units"),
                   localStrMgr.getString("monitor.stats.live_threads_desc"),
                   initTime,
                   System.currentTimeMillis());
View Full Code Here

        }
        if((ids == null) || (ids.length == 0)) {
            idString = idString.concat(
                localStrMgr.getString("monitor.stats.no_thread_deadlock"));
        }
        return new StringStatisticImpl(idString,
                   localStrMgr.getString("monitor.stats.dlocked_threads"),
                   localStrMgr.getString("monitor.stats.string_units"),
                   localStrMgr.getString("monitor.stats.dlocked_threads_desc"),
                   initTime,
                   System.currentTimeMillis());
View Full Code Here

            
        String lockName = info.getLockName();
        if((lockName == null) || ("".equals(lockName)))
            lockName = localStrMgr.getString("monitor.stats.no_lock");

        return new StringStatisticImpl(lockName,
                   localStrMgr.getString("monitor.stats.lock_name"),
                   localStrMgr.getString("monitor.stats.string_units"),
                   localStrMgr.getString("monitor.stats.lock_desc"),
                   initTime,
                   System.currentTimeMillis());
View Full Code Here

TOP

Related Classes of com.sun.enterprise.admin.monitor.stats.StringStatisticImpl

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.