/** * Performs a deep copy on <i>other</i>. */ public submitJob_result(submitJob_result other) { if (other.isSetSuccess()) { this.success = new Job(other.success); } if (other.isSetEx()) { this.ex = new WorkerNameNotFoundException(other.ex); } }
@Override public int hashCode() { int hashCode = 1; hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287); if (isSetSuccess()) hashCode = hashCode * 8191 + success.hashCode(); hashCode = hashCode * 8191 + ((isSetEx()) ? 131071 : 524287); if (isSetEx()) hashCode = hashCode * 8191 + ex.hashCode(); return hashCode; }
@Override public int hashCode() { int hashCode = 1; hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287); if (isSetSuccess()) hashCode = hashCode * 8191 + success.hashCode(); hashCode = hashCode * 8191 + ((isSetEx()) ? 131071 : 524287); if (isSetEx()) hashCode = hashCode * 8191 + ex.hashCode(); return hashCode; }
/** * Performs a deep copy on <i>other</i>. */ public getJob_result(getJob_result other) { if (other.isSetSuccess()) { this.success = new Job(other.success); } if (other.isSetEx()) { this.ex = new WorkerNameNotFoundException(other.ex); } }
/** * Performs a deep copy on <i>other</i>. */ public jobDone_args(jobDone_args other) { if (other.isSetWorkerName()) { this.workerName = other.workerName; } if (other.isSetJob()) { this.job = new Job(other.job); } }
private static <I extends Iface> java.util.Map<java.lang.String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> getProcessMap(java.util.Map<java.lang.String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> processMap) { processMap.put("submitJob", new submitJob()); processMap.put("clearClientJobQueue", new clearClientJobQueue()); processMap.put("queueCommand", new queueCommand()); processMap.put("executeCommand", new executeCommand()); processMap.put("getServerState", new getServerState()); return processMap; }
public void send_getWorkerName(java.lang.String platformInfo, java.lang.String workerName) throws org.apache.thrift.TException { getWorkerName_args args = new getWorkerName_args(); args.setPlatformInfo(platformInfo); args.setWorkerName(workerName); sendBase("getWorkerName", args); }
public void send_jobDone(java.lang.String workerName, Job job) throws org.apache.thrift.TException { jobDone_args args = new jobDone_args(); args.setWorkerName(workerName); args.setJob(job); sendBase("jobDone", args); }
public void send_executeCommand(java.lang.String name, java.util.List<java.lang.String> command) throws org.apache.thrift.TException { executeCommand_args args = new executeCommand_args(); args.setName(name); args.setCommand(command); sendBase("executeCommand", args); }
/** * Performs a deep copy on <i>other</i>. */ public jobDone_result(jobDone_result other) { if (other.isSetEx()) { this.ex = new WorkerNameNotFoundException(other.ex); } }
public clearClientJobQueue_result getResult(I iface, clearClientJobQueue_args args) throws org.apache.thrift.TException { clearClientJobQueue_result result = new clearClientJobQueue_result(); iface.clearClientJobQueue(args.forClient); return result; } }
public queueCommand_result getResult(I iface, queueCommand_args args) throws org.apache.thrift.TException { queueCommand_result result = new queueCommand_result(); iface.queueCommand(args.name, args.command, args.queueName, args.logFile); return result; } }
public executeCommand_result getResult(I iface, executeCommand_args args) throws org.apache.thrift.TException { executeCommand_result result = new executeCommand_result(); result.success = iface.executeCommand(args.name, args.command); return result; } }
/** * Performs a deep copy on <i>other</i>. */ public executeCommand_result(executeCommand_result other) { if (other.isSetSuccess()) { this.success = new CommandResult(other.success); } }
/** * Performs a deep copy on <i>other</i>. */ public getServerState_result(getServerState_result other) { if (other.isSetSuccess()) { this.success = new ServerInfo(other.success); } }
public submitJob_result getResult(I iface, submitJob_args args) throws org.apache.thrift.TException { submitJob_result result = new submitJob_result(); try { result.success = iface.submitJob(args.job, args.forClient, args.retryLimit); } catch (WorkerNameNotFoundException ex) { result.ex = ex; } return result; } }
/** * Performs a deep copy on <i>other</i>. */ public getWorkerName_result(getWorkerName_result other) { if (other.isSetSuccess()) { this.success = new GetWorkerNameResult(other.success); } }
public void send_getJob(java.lang.String workerName) throws org.apache.thrift.TException { getJob_args args = new getJob_args(); args.setWorkerName(workerName); sendBase("getJob", args); }
public getJob_result getResult(I iface, getJob_args args) throws org.apache.thrift.TException { getJob_result result = new getJob_result(); try { result.success = iface.getJob(args.workerName); } catch (WorkerNameNotFoundException ex) { result.ex = ex; } return result; } }
public void recv_clearClientJobQueue() throws org.apache.thrift.TException { clearClientJobQueue_result result = new clearClientJobQueue_result(); receiveBase(result, "clearClientJobQueue"); return; }