Package com.googlecode.psiprobe.model

Examples of com.googlecode.psiprobe.model.SystemInformation


    public void setCollectionPeriod(long collectionPeriod) {
        this.collectionPeriod = collectionPeriod;
    }

    protected ModelAndView handleRequestInternal(HttpServletRequest request, HttpServletResponse response) throws Exception {
        SystemInformation systemInformation = new SystemInformation();
        systemInformation.setAppBase(getContainerWrapper().getTomcatContainer().getAppBase().getAbsolutePath());
        systemInformation.setConfigBase(getContainerWrapper().getTomcatContainer().getConfigBase());

        Map sysProps = new Properties();
        sysProps.putAll(System.getProperties());

        if (!SecurityUtils.hasAttributeValueRole(getServletContext(), request)) {
            for (Iterator it = filterOutKeys.iterator(); it.hasNext();) {
                sysProps.remove(it.next());
            }
        }

        systemInformation.setSystemProperties(sysProps);

        return new ModelAndView(getViewName())
                .addObject("systemInformation", systemInformation)
                .addObject("runtime", getRuntimeInfoAccessor().getRuntimeInformation())
                .addObject("collectionPeriod", new Long(getCollectionPeriod()));
View Full Code Here

TOP

Related Classes of com.googlecode.psiprobe.model.SystemInformation

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.