com.scudata.dm.ZoneManager 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.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