Package org.netbeans.server.uihandler.statistics.ProjectJavaEEServers

Examples of org.netbeans.server.uihandler.statistics.ProjectJavaEEServers.ProjectServer


        return Collections.emptyMap();
    }

    @Override
    protected Map<ProjectServer, Integer> process(LogRecord rec) {
        ProjectServer server = ProjectServer.valueOf(rec);
        if (server == null) {
            return Collections.emptyMap();
        } else {
            return Collections.singletonMap(server, 1);
        }
View Full Code Here


        public static ProjectServer valueOf(String str) {
            String[] parts = str.split(":"); // NOI18N
            if (parts.length != 2) {
                return null;
            }
            return new ProjectServer(ProjectType.valueOf(parts[0]), parts[1]);
        }
View Full Code Here

        }

        public static ProjectServer valueOf(LogRecord record) {
            ProjectType type = ProjectType.valueOf(record);
            if (type != null) {
                return new ProjectServer(type, getStringParam(record, 0, "Unknown"));
            }
            return null;
        }
View Full Code Here

                return false;
            }
            if (getClass() != obj.getClass()) {
                return false;
            }
            final ProjectServer other = (ProjectServer) obj;
            if (this.type != other.type) {
                return false;
            }
            if (this.name != other.name && (this.name == null || !this.name.equals(other.name))) {
                return false;
View Full Code Here

TOP

Related Classes of org.netbeans.server.uihandler.statistics.ProjectJavaEEServers.ProjectServer

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.