public GenerateBehavior(GreenRuntime runtime, CharSequence publishTopic, AppendableProxy target, int seed) { this.target = target; this.channel = runtime.newCommandChannel().newPubSubService(publishTopic.toString()); this.rand = new Random(seed); }
public TimingBehavior(GreenRuntime runtime, AppendableProxy console) { this.channel = runtime.newCommandChannel().newPubSubService(); this.console = console; this.runtime = runtime; }
LoadTestProgress(ParallelClientLoadTester parallelClientLoadTester, GreenRuntime runtime) { this.parallelClientLoadTester = parallelClientLoadTester; this.cmd4 = runtime.newCommandChannel().newPubSubService( ParallelClientLoadTester.ENDERS_TOPIC, Math.max(ParallelClientLoadTester.PUB_MSGS, Math.max(16, this.parallelClientLoadTester.maxInFlight) ), ParallelClientLoadTester.PUB_MSGS_SIZE); this.finished = new long[this.parallelClientLoadTester.parallelTracks]; this.timeouts = new long[this.parallelClientLoadTester.parallelTracks]; this.responsesInvalid = new long[this.parallelClientLoadTester.parallelTracks]; }
public IngressBehavior(GreenRuntime runtime, String publishTopic) { cmd = runtime.newCommandChannel().newPubSubService(publishTopic); }
public CountBehavior(GreenRuntime runtime, CharSequence publishTopic) { this.channel = runtime.newCommandChannel().newPubSubService(publishTopic.toString()); this.runtime = runtime; }
public ProductsBehavior(GreenRuntime runtime, int maxProductId, String topic, Server server) { this.server = server; this.publishService = runtime.newCommandChannel().newPubSubService(topic,4,400); }
public RestBehaviorHandoff(GreenRuntime runtime, String topic) { this.cmd = runtime.newCommandChannel().newPubSubService(topic); }
public TimeBehavior(GreenRuntime runtime, String publishTopic) { cmdChnl = runtime.newCommandChannel().newPubSubService(publishTopic); }
public RestBehaviorHandoff(GreenRuntime runtime, String topic) { this.cmd = runtime.newCommandChannel().newPubSubService(topic); }
public HTTPGetBehaviorChained(GreenRuntime runtime, ClientHostPortInstance session) { GreenCommandChannel newCommandChannel = runtime.newCommandChannel(); this.cmd = newCommandChannel.newHTTPClientService(); this.x = newCommandChannel.newPubSubService(); this.session = session; }
public KickoffBehavior(GreenRuntime runtime, Appendable target) { this.channel0 = runtime.newCommandChannel().newPubSubService("Next"); this.target = new AppendableProxy(target); }
public HTTPGetBehaviorSingle(GreenRuntime runtime, ClientHostPortInstance session) { this.session = session; GreenCommandChannel cmd = runtime.newCommandChannel(); clientService = cmd.newHTTPClientService(); pubSubService = cmd.newPubSubService(); }
callService = newCommandChannel.newPubSubService(CALL_TOPIC, maxInFlight*sessionCount, PUB_MSGS_SIZE); pubService = newCommandChannel.newPubSubService(parallelTracks*2, PUB_MSGS_SIZE);
public ExternalRequest(GreenRuntime runtime, ClientHostPortInstance session, String path, String topic) { this.clientService = runtime.newCommandChannel().newHTTPClientService(4,400); this.pubSubService = runtime.newCommandChannel().newPubSubService(topic,4,400); this.session = session; this.path = path; }