com.scudata.parallel.Cluster Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of esproc Show documentation
Show all versions of esproc Show documentation
SPL(Structured Process Language) A programming language specially for structured data computing.
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