void setSenderThreads() throws Exception { int threads=Util.readIntFromStdin("Number of sender threads: "); int old=this.num_threads; this.num_threads=threads; System.out.println("sender threads set to " + num_threads + " (from " + old + ")"); }
void setMessageSize() throws Exception { msg_size=Util.readIntFromStdin("Message size: "); System.out.println("set msg_size=" + msg_size); }
void setSenderThreads() throws Exception { int threads=Util.readIntFromStdin("Number of sender threads: "); int old=this.num_threads; this.num_threads=threads; System.out.println("sender threads set to " + num_threads + " (from " + old + ")"); }
void setNumMessages() throws Exception { num_msgs=Util.readIntFromStdin("Number of RPCs: "); System.out.println("Set num_msgs=" + num_msgs); print=num_msgs / 10; }
void setSenderThreads() throws Exception { int threads=Util.readIntFromStdin("Number of sender threads: "); int old=this.num_threads; this.num_threads=threads; System.out.println("sender threads set to " + num_threads + " (from " + old + ")"); }
void setSenderThreads() throws Exception { int threads=Util.readIntFromStdin("Number of sender threads: "); int old=this.num_threads; this.num_threads=threads; System.out.println("sender threads set to " + num_threads + " (from " + old + ")"); }
void setNumMessages() throws Exception { num_msgs=Util.readIntFromStdin("Number of messages: "); System.out.println("Set num_msgs=" + num_msgs); }
void setMessageSize() throws Exception { msg_size=Util.readIntFromStdin("Message size: "); System.out.println("set msg_size=" + msg_size); }
void setNumMessages() throws Exception { num_msgs=Util.readIntFromStdin("Number of RPCs: "); System.out.println("Set num_msgs=" + num_msgs); print=num_msgs / 10; }
void setSenderThreads() throws Exception { int threads=Util.readIntFromStdin("Number of sender threads: "); int old=this.num_threads; this.num_threads=threads; System.out.println("sender threads set to " + num_threads + " (from " + old + ")"); }
void setMessageSize() throws Exception { msg_size=Util.readIntFromStdin("Message size: "); System.out.println("set msg_size=" + msg_size); }
void setNumMessages() throws Exception { num_msgs=Util.readIntFromStdin("Number of messages: "); System.out.println("Set num_msgs=" + num_msgs); }
void setMessageSize() throws Exception { msg_size=Util.readIntFromStdin("Message size: "); System.out.println("set msg_size=" + msg_size); }
void setNumMessages() throws Exception { num_msgs=Util.readIntFromStdin("Number of messages: "); System.out.println("Set num_msgs=" + num_msgs); }
void setMessageSize() throws Exception { msg_size=Util.readIntFromStdin("Message size: "); System.out.println("set msg_size=" + msg_size); }
int getAnycastCount() throws Exception { int tmp=Util.readIntFromStdin("Anycast count: "); View tmp_view=channel.getView(); if(tmp > tmp_view.size()) { System.err.println("anycast count must be smaller or equal to the view size (" + tmp_view + ")\n"); return -1; } return tmp; }
void setAnycastCount() throws Exception { int tmp=Util.readIntFromStdin("Anycast count: "); View view=channel.getView(); if(tmp > view.size()) { System.err.println("anycast count must be smaller or equal to the view size (" + view + ")\n"); return; } anycast_count=tmp; System.out.println("set anycast_count=" + anycast_count); }
protected void configChange(String name) throws Exception { int tmp=Util.readIntFromStdin(name + ": "); ConfigChange change=new ConfigChange(name, tmp); send(null, change, MPerfHeader.CONFIG_CHANGE, Message.Flag.RSVP); }
protected void loop() { boolean looping=true; while(looping) { try { int c=Util.keyPress(String.format(format, num, oob, dont_bundle)); switch(c) { case '1': invokeRpcs(); break; case '2': num=Util.readIntFromStdin("num: "); break; case 'o': oob=!oob; break; case 'b': dont_bundle=!dont_bundle; break; case 'x': case -1: looping=false; break; } } catch(Exception e) { e.printStackTrace(); } } }
protected void configChange(String name) throws Exception { int tmp=Util.readIntFromStdin(name + ": "); ConfigChange change=new ConfigChange(name, tmp); invokeRpc(configChange, RequestOptions.SYNC().flags(Message.Flag.RSVP), change); }