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

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

Go to download

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

There is a newer version: 20240823
Show newest version
package com.scudata.parallel;

import java.io.Externalizable;
import java.io.IOException;
import java.io.ObjectInput;
import java.io.ObjectOutput;

import com.scudata.dm.Context;
import com.scudata.dm.JobSpace;
import com.scudata.dm.JobSpaceManager;

/**
 * ?ڵ????Ⱥ
 * @author RunQian
 *
 */
public class Cluster implements Externalizable {
	private static final long serialVersionUID = 1L;
	
	private String []hosts; // ip????
	private int []ports; // ?˿?????
	private Context ctx; // ??????????
	
	// ???л???ʹ??
	public Cluster() {
	}
	
	/**
	 * ?????ڵ????Ⱥ
	 * @param hosts ip????
	 * @param ports ?˿?????
	 * @param ctx ??????????
	 */
	public Cluster(String[] hosts, int[] ports, Context ctx) {
		this.hosts = hosts;
		this.ports = ports;
		this.ctx = ctx;
		for(int i=0;i




© 2015 - 2024 Weber Informatics LLC | Privacy Policy