Package proj.zoie.admin.client.jmx

Examples of proj.zoie.admin.client.jmx.ServerInfo


  }

  public ServerInfo getServerInfo() {
    String serverString = getServletContext().getServerInfo();
   
    ServerInfo info = new ServerInfo();
    info.setServerVersion(serverString);
    info.setAvailCPU(OSMB.getAvailableProcessors());
   
    String osArch = OSMB.getArch();
    String osName = OSMB.getName();
    String osVer = OSMB.getVersion();
   
    StringBuilder osVersion = new StringBuilder();
    osVersion.append(osName).append(", version: ").append(osVer).append(", ").append(osArch);
    info.setOsVersion(osVersion.toString());
    return info;
  }
View Full Code Here

TOP

Related Classes of proj.zoie.admin.client.jmx.ServerInfo

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.