@Test public void getMachineResourceInfo() throws Exception { Machine machine = new Machine(); machine.setHost("127.0.0.1"); machine.setUserName("xxx"); machine.setPassword("xxx"); Map<String, String> machineResourceInfo = LinuxInfoUtil.getLinuxInfo(machine); System.err.println(machineResourceInfo); }
public static Map<String, String> getLinuxInfo(Machine machine) throws Exception { String result = SSH2Util.execute(machine, getInfoCommand()); return formatResult(result); }
LinuxInfoUtil { public static Map<String, String> getLinuxInfo(Machine machine) throws Exception { String result = SSH2Util.execute(machine, getInfoCommand()); return formatResult(result); } }
LinuxInfoUtil { public static Map<String, String> getLinuxInfo(Machine machine) throws Exception { String result = SSH2Util.execute(machine, getInfoCommand()); return formatResult(result); } private  LinuxInfoUtil(); }
LinuxInfoUtil { public static Map<String, String> getLinuxInfo(Machine machine) throws Exception { String result = SSH2Util.execute(machine, getInfoCommand()); return formatResult(result); } private  LinuxInfoUtil(); static String getIp(); static boolean login(Machine machine); static Map<String, String> getLinuxInfo(Machine machine); }
LinuxInfoUtil { public static Map<String, String> getLinuxInfo(Machine machine) throws Exception { String result = SSH2Util.execute(machine, getInfoCommand()); return formatResult(result); } private  LinuxInfoUtil(); static String getIp(); static boolean login(Machine machine); static Map<String, String> getLinuxInfo(Machine machine); static final String MEMORY_FREE; static final String VERSION; }