public SimpleRest(GreenRuntime runtime, int maxResponseCount, int maxResponseSize) { responseService = runtime .newCommandChannel() .newHTTPResponseService(maxResponseCount, maxResponseSize); }
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 ProductsBehavior(GreenRuntime runtime, int maxProductId) { responseService = runtime.newCommandChannel().newHTTPResponseService(4,256); names = new StringBuilder[maxProductId+1]; int i = names.length; while (--i>=0) { names[i] = new StringBuilder(); } quantity = new long[maxProductId+1]; disabled = new boolean[maxProductId+1]; }
public ExternalResponse(GreenRuntime runtime) { responder = new HTTPResponder(runtime.newCommandChannel(), 300); }
public RestBehaviorLargeResponse(GreenRuntime runtime, AppendableProxy console) { this.cmd = runtime.newCommandChannel().newHTTPResponseService(4,400); this.console = console; }
public RestBehaviorEmptyResponse(GreenRuntime runtime, long nameFieldId, AppendableProxy console) { this.nameFieldId = nameFieldId; this.cmd = runtime.newCommandChannel().newHTTPResponseService(4,400); this.console = console; }
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 RestBehaviorSmallResponse(GreenRuntime runtime, AppendableProxy console) { this.cmd = runtime.newCommandChannel().newHTTPResponseService(128,400); this.console = console; }
public ShutdownRestListener(GreenRuntime runtime) { this.newCommandChannel = runtime.newCommandChannel(); this.responseService = newCommandChannel.newHTTPResponseService(); }
public ShutdownBehavior(GreenRuntime runtime, long keyFieldId) { this.keyFieldId = keyFieldId; this.channel = runtime.newCommandChannel().newHTTPResponseService(1000,100); }
public RestBehaviorSmallResponse(GreenRuntime runtime, AppendableProxy console) { this.cmd = runtime.newCommandChannel().newHTTPResponseService(4,400); this.console = console; }
public IngressBehavior(GreenRuntime runtime, String publishTopic) { cmd = runtime.newCommandChannel().newPubSubService(publishTopic); }
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; }
public TimingBehavior(GreenRuntime runtime, AppendableProxy console) { this.channel = runtime.newCommandChannel().newPubSubService(); this.console = console; this.runtime = runtime; }
public ShutdownRestListener(GreenRuntime runtime, long keyFieldId) { this.newCommandChannel = runtime.newCommandChannel(); this.responseService = newCommandChannel.newHTTPResponseService(); this.keyFieldId = keyFieldId; }
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(); }
@Override public void declareBehavior(GreenRuntime runtime) { //log the telemetry snapshot upon every pulse final GreenCommandChannel cmd = runtime.newCommandChannel(); runtime.addTimePulseListener("log",(t,i)->{ cmd.logTelemetrySnapshot(); }); }
public DBRest(GreenRuntime runtime, PgPoolOptions options, int pipelineBits, int maxResponseCount, int maxResponseSize) { pm = new PoolManager(options); HTTPResponseService service = runtime.newCommandChannel().newHTTPResponseService(maxResponseCount, maxResponseSize); processUpdate = new ProcessUpdate(pipelineBits, service, pm); processFortune = new ProcessFortune(pipelineBits, service, pm); processQuery = new ProcessQuery(pipelineBits, service, pm); }