Package com.sun.enterprise.diagnostics

Examples of com.sun.enterprise.diagnostics.Data


     *
     * @ throws DiagnosticException
     */
    public Data capture() throws DiagnosticException {

         Data data = null;

        if(adminPassword==null ){
            logger.log(Level.WARNING,"Admin Password in HADBInfoCollector is null");
            return data;
        }
View Full Code Here


    /** Captures data, writes HTML report and archives it in local mode
     * @return Data object
     */
    public java.util.zip.ZipFile generate()
    throws DiagnosticException {
        Data data = collectData();
        writeReportSummary(data);
        return archive(config.getTarget(), config.getCLIOptions().getReportFile());
    }
View Full Code Here

    private void traverse() {
        if(typeToData == null)
            typeToData = new HashMap(5);
        Iterator<Data> children = dataObj.getChildren();
        while(children.hasNext()) {
            Data child = children.next();
            ArrayList list = (ArrayList)typeToData.get(child.getType());
            if (list == null) {
                list = new ArrayList(5);
                typeToData.put(child.getType(), list);
            }
            list.add(child);
        }
    }
View Full Code Here

                    try {
                        String dest = destFolder + File.separator + childName;
                        //File destFile = new File(dest);
                        if(!child.isFile()){
                            FileUtils.copyDir(absoluteChildName, dest, false);
                            Data data = captureGeneratedFilesRelatedInfo(childName, filter);
                            dataImpl.addChild(data);
                        }else{
                            FileUtils.copyFile(absoluteChildName, dest);
                        }
                        dataImpl.addChild(new FileData(dest, DataType.APPL_INFO));
View Full Code Here

    /**
     * Capture information
     * @ throw DiagnosticException
     */
    public Data capture() throws DiagnosticException {
        Data systemInfo = null;
        Collector systemInfoCollector = null;
            String osName = System.getProperty("os.name");
            osName = osName.toUpperCase();

            if (osName.indexOf("WIN") >= 0) {
View Full Code Here

TOP

Related Classes of com.sun.enterprise.diagnostics.Data

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.