Browse Source

its Working!

tags/v0.2
mrbesen 2 years ago
parent
commit
798b06ca91
4 changed files with 12 additions and 8 deletions
  1. +0
    -3
      Server/BesenBoincServer/src/Comunication/Client.java
  2. +2
    -4
      Server/BesenBoincServer/src/Job/JobManager.java
  3. +3
    -1
      Server/BesenBoincServer/src/Job/Worker.java
  4. +7
    -0
      test-factorial/BBTestprogram/.classpath

+ 0
- 3
Server/BesenBoincServer/src/Comunication/Client.java View File

@@ -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();

+ 2
- 4
Server/BesenBoincServer/src/Job/JobManager.java View File

@@ -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() {

+ 3
- 1
Server/BesenBoincServer/src/Job/Worker.java View File

@@ -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));

+ 7
- 0
test-factorial/BBTestprogram/.classpath View File

@@ -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