public static HTTPServerConfig serverConfig(int port, GraphManager gm) { return new HTTPServerConfigImpl(port, new PipeConfigManager(), new PipeConfigManager(), gm.recordTypeData); }
@Override public HTTPServerConfig useHTTP1xServer(int bindPort) { if (server != null) { throw new RuntimeException("Server already enabled"); } if (this.behaviorTracksDefinition == null) { this.behaviorTracksDefinition = new DeclareBehavior<R>() { @Override public void declareBehavior(R runtime) { } }; } return server = new HTTPServerConfigImpl(bindPort, pcm, new PipeConfigManager(), gm.recordTypeData); }
protected PipeConfigManager buildPipeManager() { PipeConfigManager pcm = new PipeConfigManager(4,2,128); pcm.addConfig(defaultCommandChannelLength,0,TrafficOrderSchema.class ); return pcm; }
public GreenCommandChannel newCommandChannel() { PipeConfigManager pcm = new PipeConfigManager(4, defaultCommandChannelLength, defaultCommandChannelMaxPayload); pcm.addConfig(defaultCommandChannelLength, 0,TrafficOrderSchema.class); return (GreenCommandChannel) this.builder.newCommandChannel( parallelInstanceUnderActiveConstruction, pcm ); }
new PipeConfigManager(), gm.recordTypeData);
assert(convertersSub.length == internalTopicsSub.length); PipeConfigManager pcm = new PipeConfigManager(4, MsgRuntime.defaultCommandChannelLength, MsgRuntime.defaultCommandChannelMaxPayload); MsgCommandChannel cmd = MsgRuntime.builder(msgRuntime).newCommandChannel(-1, pcm);
public JoinBlockingBehavior(MsgRuntime<?,?,?> msgRuntime, Pipe<RawDataSchema>[] inputPipes, String[] targetTopics, TargetSelector selector) { this.inputPipes = inputPipes; this.selector = selector; PipeConfigManager pcm = new PipeConfigManager(4, MsgRuntime.defaultCommandChannelLength, MsgRuntime.defaultCommandChannelMaxPayload); BuilderImpl builder = MsgRuntime.builder(msgRuntime); int dataLen = PronghornStage.maxVarLength(inputPipes); int count = inputPipes[0].config().minimumFragmentsOnPipe(); //build each of the target publish services so they can be indexed by targetTopics position targetService = new PubSubFixedTopicService[targetTopics.length]; int i = targetTopics.length; while (--i>=0) { targetService[i] = builder.newCommandChannel(msgRuntime.constructingParallelInstance(), pcm) .newPubSubService(targetTopics[i], count, dataLen); } }