its Working!

master
mrbesen 6 years ago
parent cf9c0d0c54
commit 798b06ca91
  1. 3
      Server/BesenBoincServer/src/Comunication/Client.java
  2. 6
      Server/BesenBoincServer/src/Job/JobManager.java
  3. 4
      Server/BesenBoincServer/src/Job/Worker.java
  4. 7
      test-factorial/BBTestprogram/.classpath

@ -71,9 +71,6 @@ public class Client implements Runnable{
try {
handler.HandleData((Data) in.readObject(), this);
// System.out.println("Recived data!");
} catch(NullPointerException|SocketException|EOFException e) {
e.printStackTrace();
disconnect();
} catch (Exception e) {
e.printStackTrace();
disconnect();

@ -29,7 +29,7 @@ public class JobManager implements Iterator<Job>{
update();
}
public Thread getnewThread() {
private Thread getnewThread() {
return new Thread(new Runnable() {
@Override
public void run() {
@ -155,9 +155,7 @@ public class JobManager implements Iterator<Job>{
public int jobs_compiledtarget() {
int w = 7 * Server.getServer().getConnectionCount();
if(w < 10)
w = 10;
return w;
return (w < 10) ? 10 : w;
}
private void startCompile() {

@ -36,7 +36,9 @@ public class Worker implements PacketHandler, Runnable{
while(!client.hasConnection()) {//waiting for connection
Thread.sleep(500);
}
} catch(Exception e) {}
} catch(Exception e) {
e.printStackTrace();
}
while (run) {
if(jobs.size()>0) {
Result r = justrun(jobs.get(0));

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry combineaccessrules="false" kind="src" path="/BesenBoincServer"/>
<classpathentry kind="output" path="bin"/>
</classpath>
Loading…
Cancel
Save