when i started to run the S4Node.class, i have changed the main method to a s4Node method and then invoke them 5 times. like this :
public static String[] commanderNode = new String[] { "-c", "cluster1" }; for (int i = 0; i < 5; i++) { S4Node.s4Node(DeployFrameStream.commanderNode); } but it always stopped in the first invoke. And then i noticed: signalOneAppLoaded.await(); how can i avoid this situation.