Java Code Examples for org.apache.flink.api.common.ExecutionConfig#archive()

The following examples show how to use org.apache.flink.api.common.ExecutionConfig#archive() . 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: ExecutionGraph.java    From Flink-CEPplus with Apache License 2.0 5 votes vote down vote up
/**
 * Returns the serializable {@link ArchivedExecutionConfig}.
 *
 * @return ArchivedExecutionConfig which may be null in case of errors
 */
@Override
public ArchivedExecutionConfig getArchivedExecutionConfig() {
	// create a summary of all relevant data accessed in the web interface's JobConfigHandler
	try {
		ExecutionConfig executionConfig = jobInformation.getSerializedExecutionConfig().deserializeValue(userClassLoader);
		if (executionConfig != null) {
			return executionConfig.archive();
		}
	} catch (IOException | ClassNotFoundException e) {
		LOG.error("Couldn't create ArchivedExecutionConfig for job {} ", getJobID(), e);
	}
	return null;
}
 
Example 2
Source File: ExecutionGraph.java    From flink with Apache License 2.0 5 votes vote down vote up
/**
 * Returns the serializable {@link ArchivedExecutionConfig}.
 *
 * @return ArchivedExecutionConfig which may be null in case of errors
 */
@Override
public ArchivedExecutionConfig getArchivedExecutionConfig() {
	// create a summary of all relevant data accessed in the web interface's JobConfigHandler
	try {
		ExecutionConfig executionConfig = jobInformation.getSerializedExecutionConfig().deserializeValue(userClassLoader);
		if (executionConfig != null) {
			return executionConfig.archive();
		}
	} catch (IOException | ClassNotFoundException e) {
		LOG.error("Couldn't create ArchivedExecutionConfig for job {} ", getJobID(), e);
	}
	return null;
}
 
Example 3
Source File: ExecutionGraph.java    From flink with Apache License 2.0 5 votes vote down vote up
/**
 * Returns the serializable {@link ArchivedExecutionConfig}.
 *
 * @return ArchivedExecutionConfig which may be null in case of errors
 */
@Override
public ArchivedExecutionConfig getArchivedExecutionConfig() {
	// create a summary of all relevant data accessed in the web interface's JobConfigHandler
	try {
		ExecutionConfig executionConfig = jobInformation.getSerializedExecutionConfig().deserializeValue(userClassLoader);
		if (executionConfig != null) {
			return executionConfig.archive();
		}
	} catch (IOException | ClassNotFoundException e) {
		LOG.error("Couldn't create ArchivedExecutionConfig for job {} ", getJobID(), e);
	}
	return null;
}