All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.scudata.parallel.UnitJob Maven / Gradle / Ivy

Go to download

SPL(Structured Process Language) A programming language specially for structured data computing.

The newest version!
package com.scudata.parallel;

import com.scudata.thread.Job;

/**
 * ???ڶ??̸߳??ڵ??????????
 * @author WangXiaoJun
 *
 */
class UnitJob extends Job {
	private UnitClient client;
	private UnitCommand command;
	private Response response;
	
	public UnitJob(UnitClient client, UnitCommand command) {
		this.client = client;
		this.command = command;
	}

	public void run() {
		try {
			response = client.send(command);
		} finally {
			client.close();
		}
	}
	
	public Object getResult() {
		return response.checkResult();
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy