本文整理汇总了Java中com.ociweb.pronghorn.stage.scheduling.GraphManager.addNota方法的典型用法代码示例。如果您正苦于以下问题:Java GraphManager.addNota方法的具体用法?Java GraphManager.addNota怎么用?Java GraphManager.addNota使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.ociweb.pronghorn.stage.scheduling.GraphManager
的用法示例。
在下文中一共展示了GraphManager.addNota方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: HTTPClientRequestTrafficStage
import com.ociweb.pronghorn.stage.scheduling.GraphManager; //导入方法依赖的package包/类
/**
* Parse HTTP data on feed and sends back an ack to the SSLEngine as each message is decrypted.
*
* @param graphManager
* @param hardware
* @param input
* @param goPipe
* @param ackPipe
* @param output
*/
public HTTPClientRequestTrafficStage(
GraphManager graphManager,
MsgRuntime<?,?> runtime,
BuilderImpl hardware,
ClientCoordinator ccm,
Pipe<ClientHTTPRequestSchema>[] input,
Pipe<TrafficReleaseSchema>[] goPipe,
Pipe<TrafficAckSchema>[] ackPipe,
Pipe<NetPayloadSchema>[] output
) {
super(graphManager, runtime, hardware, input, goPipe, ackPipe, output);
this.input = input;
this.output = output;
this.ccm = ccm;
assert(ccm.isTLS == hardware.getHTTPClientConfig().isTLS());
GraphManager.addNota(graphManager, GraphManager.DOT_BACKGROUND, "lavenderblush", this);
GraphManager.addNota(graphManager, GraphManager.LOAD_MERGE, GraphManager.LOAD_MERGE, this);
}
示例2: ClientHTTPSocketRequestGeneratorStage
import com.ociweb.pronghorn.stage.scheduling.GraphManager; //导入方法依赖的package包/类
public ClientHTTPSocketRequestGeneratorStage(GraphManager gm, int iterations, CharSequence[] paths, int port) {
super(gm, NONE, NONE);
this.verb = "GET ";
//= "GET "; // .6M msg/sec
//= "HEAD "; //1.8M msg/sec
this.iterations = iterations;
this.iterationCount = iterations;
this.pos = 0;
this.paths = paths;
this.batchSize = paths.length;
// System.out.println("batching "+batchSize);
this.portNumber = port;
GraphManager.addNota(gm, GraphManager.PRODUCER, GraphManager.PRODUCER, this);
}
示例3: buildSocketWriters
import com.ociweb.pronghorn.stage.scheduling.GraphManager; //导入方法依赖的package包/类
private static void buildSocketWriters(GraphManager graphManager, ServerCoordinator coordinator,
int socketWriters, Pipe<NetPayloadSchema>[] toWiterPipes,
int writeBufferMultiplier) {
///////////////
//all the writer stages
///////////////
Pipe[][] req = Pipe.splitPipes(socketWriters, toWiterPipes);
int w = socketWriters;
while (--w>=0) {
ServerSocketWriterStage writerStage = new ServerSocketWriterStage(graphManager, coordinator, writeBufferMultiplier, req[w]); //pump bytes out
GraphManager.addNota(graphManager, GraphManager.DOT_RANK_NAME, "SocketWriter", writerStage);
coordinator.processNota(graphManager, writerStage);
}
}
示例4: populateGraphWithUnWrapStages
import com.ociweb.pronghorn.stage.scheduling.GraphManager; //导入方法依赖的package包/类
public static Pipe<NetPayloadSchema>[] populateGraphWithUnWrapStages(GraphManager graphManager, ServerCoordinator coordinator,
int requestUnwrapUnits, PipeConfig<NetPayloadSchema> handshakeDataConfig, Pipe[] encryptedIncomingGroup,
Pipe[] planIncomingGroup, Pipe[] acks) {
Pipe<NetPayloadSchema>[] handshakeIncomingGroup = new Pipe[requestUnwrapUnits];
int c = requestUnwrapUnits;
Pipe[][] in = Pipe.splitPipes(c, encryptedIncomingGroup);
Pipe[][] out = Pipe.splitPipes(c, planIncomingGroup);
while (--c>=0) {
handshakeIncomingGroup[c] = new Pipe(handshakeDataConfig);
SSLEngineUnWrapStage unwrapStage = new SSLEngineUnWrapStage(graphManager, coordinator, in[c], out[c], acks[c], handshakeIncomingGroup[c], true, 0);
GraphManager.addNota(graphManager, GraphManager.DOT_RANK_NAME, "UnWrap", unwrapStage);
coordinator.processNota(graphManager, unwrapStage);
}
return handshakeIncomingGroup;
}
示例5: ClientSocketReaderStage
import com.ociweb.pronghorn.stage.scheduling.GraphManager; //导入方法依赖的package包/类
public ClientSocketReaderStage(GraphManager graphManager,
ClientCoordinator coordinator,
Pipe<ReleaseSchema>[] parseAck,
Pipe<NetPayloadSchema>[] output) {
super(graphManager, parseAck, output);
this.coordinator = coordinator;
this.output = output;
this.releasePipes = parseAck;
coordinator.setStart(this);
//this resolves the problem of detecting this loop by the scripted fixed scheduler.
GraphManager.addNota(graphManager, GraphManager.PRODUCER, GraphManager.PRODUCER, this);
GraphManager.addNota(graphManager, GraphManager.DOT_BACKGROUND, "lavenderblush", this);
//GraphManager.addNota(graphManager, GraphManager.SCHEDULE_RATE, 10000, this);
}
示例6: APIStage
import com.ociweb.pronghorn.stage.scheduling.GraphManager; //导入方法依赖的package包/类
protected APIStage(GraphManager graphManager, Pipe idGenIn, Pipe fromC, Pipe toC, int ttlSec) {
super(graphManager, new Pipe[]{idGenIn,fromC}, toC);
this.idGenIn = idGenIn;
this.fromCon = fromC;
this.toCon = toC;
this.ttlSec = ttlSec;
this.sizeOfPacketIdFragment = Pipe.from(idGenIn).fragDataSize[theOneMsg];
this.sizeOfPubRel = Pipe.from(toCon).fragDataSize[ConInConst.MSG_CON_IN_PUB_REL];
//add one more ring buffer so apps can write directly to it since this stage needs to copy from something.
//this makes testing much easier, it makes integration tighter
//it may add a copy?
//must be set so this stage will get shut down and ignore the fact that is has un-consumed messages coming in
GraphManager.addNota(graphManager,GraphManager.PRODUCER, GraphManager.PRODUCER, this);
}
示例7: HTTP1xRouterStage
import com.ociweb.pronghorn.stage.scheduling.GraphManager; //导入方法依赖的package包/类
public HTTP1xRouterStage(GraphManager gm,
int parallelId,
Pipe<NetPayloadSchema>[] input, Pipe<HTTPRequestSchema>[][] outputs,
Pipe<ServerResponseSchema> errorResponsePipe, Pipe<ReleaseSchema> ackStop,
HTTP1xRouterStageConfig<T,R,V,H> config, ServerCoordinator coordinator, boolean catchAll) {
this(gm, parallelId, input, join(outputs), errorResponsePipe, ackStop, config, coordinator, catchAll);
int inMaxVar = PronghornStage.maxVarLength(input);
int outMaxVar = PronghornStage.minVarLength(outputs);
if (outMaxVar <= inMaxVar) {
throw new UnsupportedOperationException("Input has field lenght of "+inMaxVar+" while output pipe is "+outMaxVar+", output must be larger");
}
GraphManager.addNota(gm, GraphManager.DOT_BACKGROUND, "lemonchiffon3", this);
}
示例8: configureStageRate
import com.ociweb.pronghorn.stage.scheduling.GraphManager; //导入方法依赖的package包/类
protected void configureStageRate(Object listener, ReactiveListenerStage stage) {
//if we have a time event turn it on.
long rate = builder.getTriggerRate();
if (rate>0 && listener instanceof TimeListener) {
stage.setTimeEventSchedule(rate, builder.getTriggerStart());
//Since we are using the time schedule we must set the stage to be faster
long customRate = (rate*nsPerMS)/NonThreadScheduler.granularityMultiplier;// in ns and guanularityXfaster than clock trigger
long appliedRate = Math.min(customRate,builder.getDefaultSleepRateNS());
GraphManager.addNota(gm, GraphManager.SCHEDULE_RATE, appliedRate, stage);
}
}
示例9: TrafficCopStage
import com.ociweb.pronghorn.stage.scheduling.GraphManager; //导入方法依赖的package包/类
public TrafficCopStage(GraphManager graphManager, long msAckTimeout,
Pipe<TrafficOrderSchema> primaryIn,
Pipe<TrafficAckSchema>[] ackIn,
Pipe<TrafficReleaseSchema>[] goOut,
MsgRuntime<?,?> runtime,
BuilderImpl builder) {
super(graphManager, join(ackIn, primaryIn), goOut);
assert(ackIn.length == goOut.length);
this.msAckTimeout = msAckTimeout;
this.primaryIn = primaryIn;
this.ackIn = ackIn;
this.goOut = goOut;
this.graphManager = graphManager;//for toString
this.builder = builder;
this.runtime = runtime;
//force all commands to happen upon publish and release
this.supportsBatchedPublish = false;
this.supportsBatchedRelease = false;
GraphManager.addNota(graphManager, GraphManager.DOT_BACKGROUND, "cadetblue2", this);
GraphManager.addNota(graphManager, GraphManager.TRIGGER, GraphManager.TRIGGER, this);
}
示例10: ReactiveIoTListenerStage
import com.ociweb.pronghorn.stage.scheduling.GraphManager; //导入方法依赖的package包/类
public ReactiveIoTListenerStage(GraphManager graphManager, Behavior listener,
Pipe<?>[] inputPipes,
Pipe<?>[] outputPipes,
ArrayList<ReactiveManagerPipeConsumer> consumers,
HardwareImpl hardware, int parallelInstance, String nameId) {
super(graphManager, listener, inputPipes, outputPipes, consumers, hardware, parallelInstance, nameId);
if (listener instanceof DigitalListener) {
toStringDetails = toStringDetails + "DigitalListener\n";
}
if (listener instanceof AnalogListener) {
toStringDetails = toStringDetails + "AnalogListener\n";
}
if (listener instanceof I2CListener) {
toStringDetails = toStringDetails + "I2CListener\n";
}
if (listener instanceof SerialListener) {
toStringDetails = toStringDetails + "SerialListener\n";
}
if (listener instanceof RotaryListener) {
toStringDetails = toStringDetails + "RotaryListener\n";
}
this.builder = hardware;
//allow for shutdown upon shutdownRequest we have new content
GraphManager.addNota(graphManager, GraphManager.PRODUCER, GraphManager.PRODUCER, this);
}
示例11: BlockStorageStage
import com.ociweb.pronghorn.stage.scheduling.GraphManager; //导入方法依赖的package包/类
public BlockStorageStage(GraphManager graphManager,
String filePath, //single file accessed by multiple pipes
Pipe<BlockStorageXmitSchema>[] input,
Pipe<BlockStorageReceiveSchema>[] output) {
super(graphManager, input, output);
this.filePath = filePath;
this.input = input;
this.output = output;
assert(null!=filePath && filePath.trim().length()>0);
GraphManager.addNota(graphManager, GraphManager.DOT_BACKGROUND, "cornsilk2", this);
}
示例12: FileReadModuleStage
import com.ociweb.pronghorn.stage.scheduling.GraphManager; //导入方法依赖的package包/类
public FileReadModuleStage(GraphManager graphManager, Pipe<HTTPRequestSchema>[] inputs, Pipe<ServerResponseSchema>[] outputs,
HTTPSpecification<T,R,V,H> httpSpec,
File rootPath) {
super(graphManager, inputs, outputs, httpSpec);
this.inputs = inputs;
this.outputs = outputs;
this.trailingReader = 0;
this.trailingBlobReader = 0;
assert( httpSpec.verbMatches(VERB_GET, "GET") );
assert( httpSpec.verbMatches(VERB_HEAD, "HEAD") );
this.inIdx = inputs.length;
this.folderRootFile = rootPath.isFile()? rootPath.getParentFile() : rootPath;
this.folderRootString = folderRootFile.toString();
if (rootPath.isFile()) {
defaultPathFile = rootPath.toString();
}
this.shutdownCount = inputs.length;
GraphManager.addNota(graphManager, GraphManager.DOT_RANK_NAME, "ModuleStage", this);
GraphManager.addNota(graphManager, GraphManager.DOT_BACKGROUND, "lemonchiffon3", this);
}
示例13: ServerSocketWriterStage
import com.ociweb.pronghorn.stage.scheduling.GraphManager; //导入方法依赖的package包/类
public ServerSocketWriterStage(GraphManager graphManager, ServerCoordinator coordinator, int bufferMultiplier, Pipe<NetPayloadSchema>[] input, Pipe<ReleaseSchema> releasePipe) {
super(graphManager, input, releasePipe);
this.coordinator = coordinator;
this.input = input;
this.releasePipe = releasePipe;
this.bufferMultiplier = bufferMultiplier;
this.graphManager = graphManager;
GraphManager.addNota(graphManager, GraphManager.DOT_BACKGROUND, "lemonchiffon3", this);
GraphManager.addNota(graphManager, GraphManager.LOAD_MERGE, GraphManager.LOAD_MERGE, this);
}
示例14: MonitorConsoleStage
import com.ociweb.pronghorn.stage.scheduling.GraphManager; //导入方法依赖的package包/类
private MonitorConsoleStage(GraphManager graphManager, Pipe ... inputs) {
super(graphManager, inputs, NONE);
this.inputs = inputs;
this.graphManager = graphManager;
this.batchSize = inputs.length>=64?64:inputs.length;
validateSchema(inputs);
GraphManager.addNota(graphManager, GraphManager.MONITOR, GraphManager.MONITOR, this);
}
示例15: WebSocketServerPronghornStage
import com.ociweb.pronghorn.stage.scheduling.GraphManager; //导入方法依赖的package包/类
public WebSocketServerPronghornStage(GraphManager graphManager, Pipe[] inputPipes, Pipe[] outputPipes, EventLoopGroup bossGroup, EventLoopGroup workerGroup) {
super(graphManager, inputPipes, outputPipes);
//enable shutdown to be called without looking for any pipes first
GraphManager.addNota(graphManager, GraphManager.PRODUCER, GraphManager.PRODUCER, this);
if (null!=SystemPropertyUtil.get("web.application.dir")) {
System.out.println("The web application must be in:"+SystemPropertyUtil.get("web.application.dir"));
} else {
System.out.println("Using internal resources for web application");
}
this.manager = new PronghornFullDuplexManager(outputPipes, inputPipes);
this.bossGroup = bossGroup;
this.workerGroup = workerGroup;
}