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

com.scudata.dm.ZoneManager Maven / Gradle / Ivy

Go to download

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

There is a newer version: 20241126
Show newest version
package com.scudata.dm;

import java.util.List;

import com.scudata.parallel.HostManager;
import com.scudata.parallel.Request;
import com.scudata.parallel.Response;
import com.scudata.server.unit.UnitServer;

/**
 * ?ڴ????????????
 * @author Joancy
 *
 */
public class ZoneManager {
	public static Response execute(Request req) {
		Response res = new Response();
		switch (req.getAction()) {
		case Request.ZONE_INITDFX:
			List args = (List) req.getAttr(Request.EXECDFX_ArgList);
			res = UnitServer.init((Integer)args.get(0), (Integer)args.get(1), (String)args.get(2));
			break;
		}
		Exception x = res.getException();
		if(x!=null){
			HostManager hm = HostManager.instance();
			String msg = "["+hm+"] ";
			String causemsg = x.getMessage();
			if(causemsg.startsWith("[")){
				msg = causemsg;
			}else{
				msg += causemsg;
			}
			x = new Exception( msg, x );
			res.setException(x);
		}
		
		return res;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy