/** * @see stream.AbstractProcessor#init(stream.ProcessContext) */ @Override public void init(ProcessContext ctx) throws Exception { super.init(ctx); // start = System.currentTimeMillis(); }
@Override public void init(ProcessContext ctx) throws Exception { super.init(ctx); }
@Override public void init(ProcessContext ctx) throws Exception { super.init(ctx); }
@Override public void init(ProcessContext ctx) throws Exception { super.init(ctx); if (indexId == null) { indexId = "@index:" + id; } }
/** * @see stream.AbstractProcessor#init(stream.ProcessContext) */ @Override public void init(ProcessContext ctx) throws Exception { super.init(ctx); // start = System.currentTimeMillis(); }
/** * @see stream.AbstractProcessor#init(stream.ProcessContext) */ @Override public void init(ProcessContext ctx) throws Exception { super.init(ctx); dateFormat = new SimpleDateFormat(format); }
/** * @see stream.AbstractProcessor#init(stream.ProcessContext) */ @Override public void init(ProcessContext ctx) throws Exception { super.init(ctx); dateFormat = new SimpleDateFormat(format); }
@Override public void init(ProcessContext ctx) throws Exception { super.init(ctx); if (keys == null || sourceCtx == null || targetCtx == null) throw new IllegalArgumentException( "Keys, sourceCtx and targetCtx must be specified!"); }
@Override public void init(ProcessContext ctx) throws Exception { super.init(ctx); if (keys == null || sourceCtx == null || targetCtx == null) throw new IllegalArgumentException( "Keys, sourceCtx and targetCtx must be specified!"); }
@Override public void init(ProcessContext ctx) throws Exception { super.init(ctx); data = new ConcurrentHashMap<String, T>(capacity); }
@Override public void init(ProcessContext ctx) throws Exception { super.init(ctx); data = new ConcurrentHashMap<String, T>(capacity); }
/** * @see stream.AbstractProcessor#init(stream.ProcessContext) */ @Override public void init(ProcessContext ctx) throws Exception { super.init(ctx); out = new PrintStream(new FileOutputStream(file, append)); }
/** * @see stream.AbstractProcessor#init(stream.ProcessContext) */ @Override public void init(ProcessContext ctx) throws Exception { super.init(ctx); out = new PrintStream(new FileOutputStream(file, append)); }
@Override public void init(ProcessContext ctx) throws Exception { super.init(ctx); this.baseUrl = "https://dweet.io:443/dweet/for/"; String prefix = this.machine + "_" + id; this.postKeys = new String[keys.length]; for (int i = 0; i < keys.length; i++) { postKeys[i] = prefix + "_" + keys[i] + "="; postKeys[i] = postKeys[i].replace(":", "_"); postKeys[i] = postKeys[i].replace("@", "_"); postKeys[i] = postKeys[i].replace("-", "_"); } }
/** * @see stream.AbstractProcessor#init(stream.ProcessContext) */ @Override public void init(ProcessContext ctx) throws Exception { super.init(ctx); if (file.getAbsolutePath().endsWith(".gz")) { out = new ObjectOutputStream(new GZIPOutputStream( new FileOutputStream(file, true))); } else out = new ObjectOutputStream(new FileOutputStream(file, true)); }
/** * @see stream.DataProcessor#init(stream.Context) */ @Override public void init(ProcessContext context) throws Exception { super.init(context); this.context = context; for (Processor p : processors) { if (p instanceof StatefulProcessor) { ((StatefulProcessor) p).init(context); } } }
/** * @see stream.AbstractProcessor#init(stream.ProcessContext) */ @Override public void init(ProcessContext ctx) throws Exception { super.init(ctx); // start = System.currentTimeMillis(); if (group != null) { log.info("Registering to data-rate-group '{}'", group); dataRateGroup = DataRateGroup.get(group); dataRateGroup.register(internalId); } }
/** * @see stream.AbstractProcessor#init(stream.ProcessContext) */ @Override public void init(ProcessContext ctx) throws Exception { super.init(ctx); if (format != null) { ParserGenerator pg = new ParserGenerator(format); parser = pg.newParser(); } }
/** * @see stream.AbstractProcessor#init(stream.ProcessContext) */ @Override public void init(ProcessContext ctx) throws Exception { super.init(ctx); server = new ServerThread(address, port, gzip); server.start(); }
/** * @see stream.AbstractProcessor#init(stream.ProcessContext) */ @Override public void init(ProcessContext ctx) throws Exception { super.init(ctx); if (format != null) { ParserGenerator pg = new ParserGenerator(format); parser = pg.newParser(); } }