Examples of StreamConfig


Examples of com.ning.metrics.meteo.binder.StreamConfig

    @Test(groups = "fast")
    public void testInstantiateListener() throws Exception
    {
        final PublishersCompiler compiler = new PublishersCompiler(statementsConfig.getPublishers(), new ArrayList<StreamConfig>(), null);
        final StreamConfig streamConfig = statementsConfig.getStatements().get(0);
        compiler.configurePublishersForStream(streamConfig);

        final String streamName = streamConfig.getName();
        final PublisherConfig publisherConfig = compiler.getStreamConfigs().get(streamName).getPublishers().get(0);
        assertTrue(publisherConfig instanceof DummyPublisherConfig);

        final DummyPublisherConfig config = (DummyPublisherConfig) publisherConfig;
        assertEquals(config.getName(), "OpenTSDB");
View Full Code Here

Examples of org.apache.flink.streaming.api.StreamConfig

    setInputsOutputs();
    setInvokable();
  }

  protected void initialize() {
    this.configuration = new StreamConfig(getTaskConfiguration());
    this.name = configuration.getVertexName();
    this.isMutable = configuration.getMutability();
    this.functionName = configuration.getFunctionName();
    this.function = configuration.getFunction();
    this.states = configuration.getOperatorStates();
View Full Code Here

Examples of org.apache.flink.streaming.api.StreamConfig

  private StreamVertex<IN,?> streamVertex;
  private StreamConfig configuration;

  public InputHandler(StreamVertex<IN,?> streamComponent) {
    this.streamVertex = streamComponent;
    this.configuration = new StreamConfig(streamComponent.getTaskConfiguration());
    try {
      setConfigInputs();
    } catch (Exception e) {
      throw new StreamVertexException("Cannot register inputs for "
          + getClass().getSimpleName(), e);
View Full Code Here

Examples of org.apache.flink.streaming.api.StreamConfig

  SerializationDelegate<StreamRecord<OUT>> outSerializationDelegate = null;

  public OutputHandler(StreamVertex<?, OUT> streamComponent) {
    this.streamVertex = streamComponent;
    this.outputs = new LinkedList<RecordWriter<SerializationDelegate<StreamRecord<OUT>>>>();
    this.configuration = new StreamConfig(streamComponent.getTaskConfiguration());

    try {
      setConfigOutputs();
    } catch (StreamVertexException e) {
      throw new StreamVertexException("Cannot register outputs for "
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.