Пример #1
0
  /*
   * (non-Javadoc)
   *
   * @see io.s4.ProcessingElement#processInputEvent(io.s4.Event)
   */
  @Override
  protected void processInputEvent(Event event) {

    counter += 1;

    if (counter % interval == 0) {
      CountEvent countEvent = new CountEvent(countStream.getName() + ": " + getId(), counter);
      countStream.put(countEvent);
    }
  }
Пример #2
0
  public void injectByKey(ObsEvent obsEvent) {

    logger.trace("Inject: " + obsEvent.toString());
    assignmentStream.put(obsEvent);
  }
Пример #3
0
 public void injectToAll(ObsEvent obsEvent) {
   logger.trace("Inject: " + obsEvent.toString());
   obsStream.put(obsEvent);
 }