finished refactoring client for additions to protocol
This commit is contained in:
parent
11d8516417
commit
9eb18219cb
2 changed files with 19 additions and 5 deletions
|
|
@ -94,8 +94,25 @@ public class JobServClient {
|
|||
}
|
||||
|
||||
int newProcess = this.api.sendNewJobMessage(command);
|
||||
// TODO: switch here for negative returns
|
||||
System.out.printf("Process started, assigned pid is %d\n", newProcess);
|
||||
switch(newProcess) {
|
||||
case -1:
|
||||
System.out.println(this.serversideTimeoutErrorMessage);
|
||||
break;
|
||||
|
||||
case -2:
|
||||
System.out.println("Server failed to create job, check server logs.");
|
||||
break;
|
||||
|
||||
case -3:
|
||||
// error logged by API Connector
|
||||
break;
|
||||
|
||||
default:
|
||||
System.out.printf("Process started, assigned pid is %d\n", newProcess);
|
||||
break;
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue