Search in sources :

Example 1 with CommandGeneratePackage

use of es.bsc.compss.nio.commands.tracing.CommandGeneratePackage in project compss by bsc-wdc.

the class NIOWorkerNode method generatePackage.

@Override
public boolean generatePackage() {
    if (started) {
        LOGGER.debug("Sending command to generated tracing package for " + this.getHost());
        if (node == null) {
            LOGGER.error("ERROR: Package generation for " + this.getHost() + " has failed.");
            return false;
        } else {
            Connection c = NIOAgent.getTransferManager().startConnection(node);
            CommandGeneratePackage cmd = new CommandGeneratePackage();
            c.sendCommand(cmd);
            c.receive();
            c.finishConnection();
            commManager.waitUntilTracingPackageGenerated();
            LOGGER.debug("Tracing Package generated");
            return true;
        }
    } else {
        LOGGER.debug("Worker " + this.getHost() + " not started. No tracing package generated");
        return false;
    }
}
Also used : CommandGeneratePackage(es.bsc.compss.nio.commands.tracing.CommandGeneratePackage) Connection(es.bsc.comm.Connection)

Aggregations

Connection (es.bsc.comm.Connection)1 CommandGeneratePackage (es.bsc.compss.nio.commands.tracing.CommandGeneratePackage)1