Change-Id: I4014ca0b1f133137e33680b6b971acf2ee107933
Signed-off-by: minkee.lee <minkee.lee@samsung.com>
public boolean launch(VMProperty property) throws VMLauncherException;
public boolean launch(VMProperty property, boolean wait) throws VMLauncherException;
public Process launch(List<String> cmd);
+
+ public void sendRemoteLog(String msg);
}
prop.setRunning(false);
} else {
connectToECS(prop);
+ prop.getWorker().getLauncher().sendRemoteLog("start");
}
}
try {
size = sc.read(length);
if (size == -1) {
- disconnect(vms);
+ setVMExit(vms);
return;
}
buffer.limit(len);
size = sc.read(buffer);
if (size == -1) {
- disconnect(vms);
+ setVMExit(vms);
return;
}
}
} catch (IOException e){
EMLogger.getLogger().warning(e.getMessage());
- disconnect(vms);
+ setVMExit(vms);
}
}
}
}
+ private static void setVMExit(VMSocket vms) {
+ vms.getProperty().getWorker().getLauncher().sendRemoteLog("stop");
+ disconnect(vms);
+ }
+
public static void disconnect(VMSocket vms) {
// disconnect
if (vms != null) {