Skip to content
This repository has been archived by the owner on Feb 16, 2022. It is now read-only.

Commit

Permalink
Fix slow start & null result bug
Browse files Browse the repository at this point in the history
  • Loading branch information
yangzorror committed Sep 29, 2014
1 parent 1806985 commit 1981e58
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
7 changes: 1 addition & 6 deletions AgentMaster/app/RemoteCluster/SupermanApp.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,7 @@ public static synchronized void initClusterSystem(String port, String masterUrl)
if(!isClusterExist()) {
TransformLocalSystem = new SupermanActorSystem(port, masterUrl);
SystemPort = port;
// Sleep to detect all actor systems.
try {
Thread.sleep(10000);
} catch (InterruptedException e) {
e.printStackTrace();
}

}
}

Expand Down
4 changes: 3 additions & 1 deletion AgentMaster/app/models/asynchttp/response/AgentResponse.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
*/
package models.asynchttp.response;

import java.io.Serializable;

import models.asynchttp.RequestProtocol;
import models.asynchttp.request.AgentRequest;

Expand All @@ -28,7 +30,7 @@
*
*/
@JsonIgnoreProperties(ignoreUnknown = true)
public class AgentResponse {
public class AgentResponse implements Serializable{
// Response attributes
private boolean error = false;
private String errorMessage;
Expand Down

0 comments on commit 1981e58

Please sign in to comment.