org.apache.flink.streaming.runtime.tasks.StreamTaskException Java Examples
The following examples show how to use
org.apache.flink.streaming.runtime.tasks.StreamTaskException.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: StreamConfig.java From flink with Apache License 2.0 | 5 votes |
public <T> TypeSerializer<T> getTypeSerializerOut(ClassLoader cl) { try { return InstantiationUtil.readObjectFromConfig(this.config, TYPE_SERIALIZER_OUT_1, cl); } catch (Exception e) { throw new StreamTaskException("Could not instantiate serializer.", e); } }
Example #2
Source File: StreamConfig.java From flink with Apache License 2.0 | 5 votes |
public void setStatePartitioner(int input, KeySelector<?, ?> partitioner) { try { InstantiationUtil.writeObjectToConfig(partitioner, this.config, STATE_PARTITIONER + input); } catch (IOException e) { throw new StreamTaskException("Could not serialize state partitioner.", e); } }
Example #3
Source File: StreamConfig.java From flink with Apache License 2.0 | 5 votes |
public void setOutEdgesInOrder(List<StreamEdge> outEdgeList) { try { InstantiationUtil.writeObjectToConfig(outEdgeList, this.config, EDGES_IN_ORDER); } catch (IOException e) { throw new StreamTaskException("Could not serialize outputs in order.", e); } }
Example #4
Source File: StreamConfig.java From flink with Apache License 2.0 | 5 votes |
public void setStateKeySerializer(TypeSerializer<?> serializer) { try { InstantiationUtil.writeObjectToConfig(serializer, this.config, STATE_KEY_SERIALIZER); } catch (IOException e) { throw new StreamTaskException("Could not serialize state key serializer.", e); } }
Example #5
Source File: StreamConfig.java From flink with Apache License 2.0 | 5 votes |
public <K> TypeSerializer<K> getStateKeySerializer(ClassLoader cl) { try { return InstantiationUtil.readObjectFromConfig(this.config, STATE_KEY_SERIALIZER, cl); } catch (Exception e) { throw new StreamTaskException("Could not instantiate state key serializer from task config.", e); } }
Example #6
Source File: StreamConfig.java From flink with Apache License 2.0 | 5 votes |
public KeySelector<?, Serializable> getStatePartitioner(int input, ClassLoader cl) { try { return InstantiationUtil.readObjectFromConfig(this.config, STATE_PARTITIONER + input, cl); } catch (Exception e) { throw new StreamTaskException("Could not instantiate state partitioner.", e); } }
Example #7
Source File: StreamConfig.java From flink with Apache License 2.0 | 5 votes |
public void setStateBackend(StateBackend backend) { if (backend != null) { try { InstantiationUtil.writeObjectToConfig(backend, this.config, STATE_BACKEND); } catch (Exception e) { throw new StreamTaskException("Could not serialize stateHandle provider.", e); } } }
Example #8
Source File: StreamConfig.java From flink with Apache License 2.0 | 5 votes |
public Map<Integer, StreamConfig> getTransitiveChainedTaskConfigs(ClassLoader cl) { try { Map<Integer, StreamConfig> confs = InstantiationUtil.readObjectFromConfig(this.config, CHAINED_TASK_CONFIG, cl); return confs == null ? new HashMap<Integer, StreamConfig>() : confs; } catch (Exception e) { throw new StreamTaskException("Could not instantiate configuration.", e); } }
Example #9
Source File: StreamConfig.java From flink with Apache License 2.0 | 5 votes |
public void setTransitiveChainedTaskConfigs(Map<Integer, StreamConfig> chainedTaskConfigs) { try { InstantiationUtil.writeObjectToConfig(chainedTaskConfigs, this.config, CHAINED_TASK_CONFIG); } catch (IOException e) { throw new StreamTaskException("Could not serialize configuration.", e); } }
Example #10
Source File: StreamConfig.java From flink with Apache License 2.0 | 5 votes |
public List<StreamEdge> getOutEdgesInOrder(ClassLoader cl) { try { List<StreamEdge> outEdgesInOrder = InstantiationUtil.readObjectFromConfig(this.config, EDGES_IN_ORDER, cl); return outEdgesInOrder == null ? new ArrayList<StreamEdge>() : outEdgesInOrder; } catch (Exception e) { throw new StreamTaskException("Could not instantiate outputs in order.", e); } }
Example #11
Source File: StreamConfig.java From flink with Apache License 2.0 | 5 votes |
public StateBackend getStateBackend(ClassLoader cl) { try { return InstantiationUtil.readObjectFromConfig(this.config, STATE_BACKEND, cl); } catch (Exception e) { throw new StreamTaskException("Could not instantiate statehandle provider.", e); } }
Example #12
Source File: StreamConfig.java From flink with Apache License 2.0 | 5 votes |
public void setOutputSelectors(List<OutputSelector<?>> outputSelectors) { try { InstantiationUtil.writeObjectToConfig(outputSelectors, this.config, OUTPUT_SELECTOR_WRAPPER); } catch (IOException e) { throw new StreamTaskException("Could not serialize output selectors", e); } }
Example #13
Source File: StreamConfig.java From flink with Apache License 2.0 | 5 votes |
public void setStreamOperatorFactory(StreamOperatorFactory<?> factory) { if (factory != null) { try { InstantiationUtil.writeObjectToConfig(factory, this.config, SERIALIZEDUDF); } catch (IOException e) { throw new StreamTaskException("Cannot serialize operator object " + factory.getClass() + ".", e); } } }
Example #14
Source File: StreamConfig.java From flink with Apache License 2.0 | 5 votes |
private void setTypeSerializer(String key, TypeSerializer<?> typeWrapper) { try { InstantiationUtil.writeObjectToConfig(typeWrapper, this.config, key); } catch (IOException e) { throw new StreamTaskException("Could not serialize type serializer.", e); } }
Example #15
Source File: StreamConfig.java From flink with Apache License 2.0 | 5 votes |
public <T> TypeSerializer<T> getTypeSerializerSideOut(OutputTag<?> outputTag, ClassLoader cl) { Preconditions.checkNotNull(outputTag, "Side output id must not be null."); try { return InstantiationUtil.readObjectFromConfig(this.config, TYPE_SERIALIZER_SIDEOUT_PREFIX + outputTag.getId(), cl); } catch (Exception e) { throw new StreamTaskException("Could not instantiate serializer.", e); } }
Example #16
Source File: StreamConfig.java From flink with Apache License 2.0 | 5 votes |
public <T> List<OutputSelector<T>> getOutputSelectors(ClassLoader userCodeClassloader) { try { List<OutputSelector<T>> selectors = InstantiationUtil.readObjectFromConfig(this.config, OUTPUT_SELECTOR_WRAPPER, userCodeClassloader); return selectors == null ? Collections.<OutputSelector<T>>emptyList() : selectors; } catch (Exception e) { throw new StreamTaskException("Could not read output selectors", e); } }
Example #17
Source File: StreamConfig.java From flink with Apache License 2.0 | 5 votes |
public <T> TypeSerializer<T> getTypeSerializerIn(int index, ClassLoader cl) { try { return InstantiationUtil.readObjectFromConfig( this.config, String.format(TYPE_SERIALIZERS_IN_PATTERN, index), cl); } catch (Exception e) { throw new StreamTaskException( String.format("Could not instantiate serializer for [%d] input.", index), e); } }
Example #18
Source File: StreamConfig.java From flink with Apache License 2.0 | 5 votes |
public <K> TypeSerializer<K> getStateKeySerializer(ClassLoader cl) { try { return InstantiationUtil.readObjectFromConfig(this.config, STATE_KEY_SERIALIZER, cl); } catch (Exception e) { throw new StreamTaskException("Could not instantiate state key serializer from task config.", e); } }
Example #19
Source File: StreamConfig.java From flink with Apache License 2.0 | 5 votes |
public void setStateKeySerializer(TypeSerializer<?> serializer) { try { InstantiationUtil.writeObjectToConfig(serializer, this.config, STATE_KEY_SERIALIZER); } catch (IOException e) { throw new StreamTaskException("Could not serialize state key serializer.", e); } }
Example #20
Source File: StreamConfig.java From flink with Apache License 2.0 | 5 votes |
public KeySelector<?, Serializable> getStatePartitioner(int input, ClassLoader cl) { try { return InstantiationUtil.readObjectFromConfig(this.config, STATE_PARTITIONER + input, cl); } catch (Exception e) { throw new StreamTaskException("Could not instantiate state partitioner.", e); } }
Example #21
Source File: StreamConfig.java From flink with Apache License 2.0 | 5 votes |
public void setStatePartitioner(int input, KeySelector<?, ?> partitioner) { try { InstantiationUtil.writeObjectToConfig(partitioner, this.config, STATE_PARTITIONER + input); } catch (IOException e) { throw new StreamTaskException("Could not serialize state partitioner.", e); } }
Example #22
Source File: StreamConfig.java From flink with Apache License 2.0 | 5 votes |
public StateBackend getStateBackend(ClassLoader cl) { try { return InstantiationUtil.readObjectFromConfig(this.config, STATE_BACKEND, cl); } catch (Exception e) { throw new StreamTaskException("Could not instantiate statehandle provider.", e); } }
Example #23
Source File: StreamConfig.java From flink with Apache License 2.0 | 5 votes |
public void setStateBackend(StateBackend backend) { if (backend != null) { try { InstantiationUtil.writeObjectToConfig(backend, this.config, STATE_BACKEND); } catch (Exception e) { throw new StreamTaskException("Could not serialize stateHandle provider.", e); } } }
Example #24
Source File: StreamConfig.java From flink with Apache License 2.0 | 5 votes |
public Map<Integer, StreamConfig> getTransitiveChainedTaskConfigs(ClassLoader cl) { try { Map<Integer, StreamConfig> confs = InstantiationUtil.readObjectFromConfig(this.config, CHAINED_TASK_CONFIG, cl); return confs == null ? new HashMap<Integer, StreamConfig>() : confs; } catch (Exception e) { throw new StreamTaskException("Could not instantiate configuration.", e); } }
Example #25
Source File: StreamConfig.java From flink with Apache License 2.0 | 5 votes |
public void setTransitiveChainedTaskConfigs(Map<Integer, StreamConfig> chainedTaskConfigs) { try { InstantiationUtil.writeObjectToConfig(chainedTaskConfigs, this.config, CHAINED_TASK_CONFIG); } catch (IOException e) { throw new StreamTaskException("Could not serialize configuration.", e); } }
Example #26
Source File: StreamConfig.java From flink with Apache License 2.0 | 5 votes |
public List<StreamEdge> getOutEdgesInOrder(ClassLoader cl) { try { List<StreamEdge> outEdgesInOrder = InstantiationUtil.readObjectFromConfig(this.config, EDGES_IN_ORDER, cl); return outEdgesInOrder == null ? new ArrayList<StreamEdge>() : outEdgesInOrder; } catch (Exception e) { throw new StreamTaskException("Could not instantiate outputs in order.", e); } }
Example #27
Source File: StreamConfig.java From flink with Apache License 2.0 | 5 votes |
public void setOutEdgesInOrder(List<StreamEdge> outEdgeList) { try { InstantiationUtil.writeObjectToConfig(outEdgeList, this.config, EDGES_IN_ORDER); } catch (IOException e) { throw new StreamTaskException("Could not serialize outputs in order.", e); } }
Example #28
Source File: StreamConfig.java From flink with Apache License 2.0 | 5 votes |
public List<StreamEdge> getInPhysicalEdges(ClassLoader cl) { try { List<StreamEdge> inEdges = InstantiationUtil.readObjectFromConfig(this.config, IN_STREAM_EDGES, cl); return inEdges == null ? new ArrayList<StreamEdge>() : inEdges; } catch (Exception e) { throw new StreamTaskException("Could not instantiate inputs.", e); } }
Example #29
Source File: StreamConfig.java From flink with Apache License 2.0 | 5 votes |
public void setInPhysicalEdges(List<StreamEdge> inEdges) { try { InstantiationUtil.writeObjectToConfig(inEdges, this.config, IN_STREAM_EDGES); } catch (IOException e) { throw new StreamTaskException("Cannot serialize inward edges.", e); } }
Example #30
Source File: StreamConfig.java From flink with Apache License 2.0 | 5 votes |
public List<StreamEdge> getOutEdges(ClassLoader cl) { try { List<StreamEdge> outEdges = InstantiationUtil.readObjectFromConfig(this.config, OUT_STREAM_EDGES, cl); return outEdges == null ? new ArrayList<StreamEdge>() : outEdges; } catch (Exception e) { throw new StreamTaskException("Could not instantiate outputs.", e); } }