use of es.bsc.compss.nio.commands.workerFiles.CommandGenerateWorkerDebugFiles in project compss by bsc-wdc.
the class NIOWorkerNode method generateWorkersDebugInfo.
@Override
public boolean generateWorkersDebugInfo() {
if (started) {
LOGGER.debug("Sending command to generate worker debug files for " + this.getHost());
if (node == null) {
LOGGER.error("Worker debug files generation has failed.");
}
Connection c = NIOAgent.getTransferManager().startConnection(node);
CommandGenerateWorkerDebugFiles cmd = new CommandGenerateWorkerDebugFiles();
c.sendCommand(cmd);
c.receive();
c.finishConnection();
commManager.waitUntilWorkersDebugInfoGenerated();
LOGGER.debug("Worker debug files generated");
return true;
} else {
LOGGER.debug("Worker debug files not generated because worker was not started");
return false;
}
}
Aggregations