Package test.model

Examples of test.model.ServerInfo


  ss = new ServerServices();
  ls = new LaptopServices();
  scs = new StorageServices();
  ds = new DiskServices();

  si = new ServerInfo();
  sci = new StorageControllerInfo();

  sIList = new ArrayList<ServerInfo>();
  lIList = new ArrayList<LaptopInfo>();
  sCIList = new ArrayList<StorageControllerInfo>();
View Full Code Here


    new InputStreamReader(
      ServerServices.class.getClassLoader().getResourceAsStream(path)));
  int count = 0;
  serverCsv.readLine();
  String dataRow = serverCsv.readLine();
  ServerInfo sInfo;
  while (dataRow != null){
   sInfo= new ServerInfo();
   String[] dataArray = dataRow.split(",");
   for (String item:dataArray) {
    if (count == 0) sInfo.setWareHouseID(Integer.parseInt(item));
    if (count == 1) sInfo.setManufacturer(item);
    if (count == 2) sInfo.setModel(item);
    if (count == 3) sInfo.setProcessor(item);
    if (count == 4) sInfo.setMemory(item);
    if (count == 5) sInfo.setPciBuses(Integer.parseInt(item));
    if (count == 6) sInfo.setPciXBus(Integer.parseInt(item));
    if (count == 7) sInfo.setPciExBus(Integer.parseInt(item));
    ++count;
   }
   count = 0;
   sInfoList.add(sInfo);
   dataRow = serverCsv.readLine(); // Read next line of data.
View Full Code Here

TOP

Related Classes of test.model.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.