Java Code Examples for org.apache.flink.runtime.execution.librarycache.FlinkUserCodeClassLoaders#ResolveOrder

The following examples show how to use org.apache.flink.runtime.execution.librarycache.FlinkUserCodeClassLoaders#ResolveOrder . 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: TaskManagerConfiguration.java    From Flink-CEPplus with Apache License 2.0 5 votes vote down vote up
public TaskManagerConfiguration(
		int numberSlots,
		String[] tmpDirectories,
		Time timeout,
		@Nullable Time maxRegistrationDuration,
		Time initialRegistrationPause,
		Time maxRegistrationPause,
		Time refusedRegistrationPause,
		Configuration configuration,
		boolean exitJvmOnOutOfMemory,
		FlinkUserCodeClassLoaders.ResolveOrder classLoaderResolveOrder,
		String[] alwaysParentFirstLoaderPatterns,
		@Nullable String taskManagerLogPath,
		@Nullable String taskManagerStdoutPath,
		RetryingRegistrationConfiguration retryingRegistrationConfiguration) {

	this.numberSlots = numberSlots;
	this.tmpDirectories = Preconditions.checkNotNull(tmpDirectories);
	this.timeout = Preconditions.checkNotNull(timeout);
	this.maxRegistrationDuration = maxRegistrationDuration;
	this.initialRegistrationPause = Preconditions.checkNotNull(initialRegistrationPause);
	this.maxRegistrationPause = Preconditions.checkNotNull(maxRegistrationPause);
	this.refusedRegistrationPause = Preconditions.checkNotNull(refusedRegistrationPause);
	this.configuration = new UnmodifiableConfiguration(Preconditions.checkNotNull(configuration));
	this.exitJvmOnOutOfMemory = exitJvmOnOutOfMemory;
	this.classLoaderResolveOrder = classLoaderResolveOrder;
	this.alwaysParentFirstLoaderPatterns = alwaysParentFirstLoaderPatterns;
	this.taskManagerLogPath = taskManagerLogPath;
	this.taskManagerStdoutPath = taskManagerStdoutPath;
	this.retryingRegistrationConfiguration = retryingRegistrationConfiguration;
}
 
Example 2
Source File: TaskManagerConfiguration.java    From flink with Apache License 2.0 5 votes vote down vote up
public TaskManagerConfiguration(
		int numberSlots,
		String[] tmpDirectories,
		Time timeout,
		@Nullable Time maxRegistrationDuration,
		Time initialRegistrationPause,
		Time maxRegistrationPause,
		Time refusedRegistrationPause,
		Configuration configuration,
		boolean exitJvmOnOutOfMemory,
		FlinkUserCodeClassLoaders.ResolveOrder classLoaderResolveOrder,
		String[] alwaysParentFirstLoaderPatterns,
		@Nullable String taskManagerLogPath,
		@Nullable String taskManagerStdoutPath,
		RetryingRegistrationConfiguration retryingRegistrationConfiguration) {

	this.numberSlots = numberSlots;
	this.tmpDirectories = Preconditions.checkNotNull(tmpDirectories);
	this.timeout = Preconditions.checkNotNull(timeout);
	this.maxRegistrationDuration = maxRegistrationDuration;
	this.initialRegistrationPause = Preconditions.checkNotNull(initialRegistrationPause);
	this.maxRegistrationPause = Preconditions.checkNotNull(maxRegistrationPause);
	this.refusedRegistrationPause = Preconditions.checkNotNull(refusedRegistrationPause);
	this.configuration = new UnmodifiableConfiguration(Preconditions.checkNotNull(configuration));
	this.exitJvmOnOutOfMemory = exitJvmOnOutOfMemory;
	this.classLoaderResolveOrder = classLoaderResolveOrder;
	this.alwaysParentFirstLoaderPatterns = alwaysParentFirstLoaderPatterns;
	this.taskManagerLogPath = taskManagerLogPath;
	this.taskManagerStdoutPath = taskManagerStdoutPath;
	this.retryingRegistrationConfiguration = retryingRegistrationConfiguration;
}
 
Example 3
Source File: TaskManagerConfiguration.java    From Flink-CEPplus with Apache License 2.0 4 votes vote down vote up
public FlinkUserCodeClassLoaders.ResolveOrder getClassLoaderResolveOrder() {
	return classLoaderResolveOrder;
}
 
Example 4
Source File: TaskManagerConfiguration.java    From flink with Apache License 2.0 4 votes vote down vote up
public FlinkUserCodeClassLoaders.ResolveOrder getClassLoaderResolveOrder() {
	return classLoaderResolveOrder;
}
 
Example 5
Source File: TaskManagerServicesConfiguration.java    From flink with Apache License 2.0 4 votes vote down vote up
private TaskManagerServicesConfiguration(
		Configuration configuration,
		ResourceID resourceID,
		String externalAddress,
		InetAddress bindAddress,
		int externalDataPort,
		boolean localCommunicationOnly,
		String[] tmpDirPaths,
		String[] localRecoveryStateRootDirectories,
		boolean localRecoveryEnabled,
		@Nullable QueryableStateConfiguration queryableStateConfig,
		int numberOfSlots,
		int pageSize,
		TaskExecutorResourceSpec taskExecutorResourceSpec,
		long timerServiceShutdownTimeout,
		RetryingRegistrationConfiguration retryingRegistrationConfiguration,
		Optional<Time> systemResourceMetricsProbingInterval,
		FlinkUserCodeClassLoaders.ResolveOrder classLoaderResolveOrder,
		String[] alwaysParentFirstLoaderPatterns,
		int numIoThreads) {
	this.configuration = checkNotNull(configuration);
	this.resourceID = checkNotNull(resourceID);

	this.externalAddress = checkNotNull(externalAddress);
	this.bindAddress = checkNotNull(bindAddress);
	this.externalDataPort = externalDataPort;
	this.localCommunicationOnly = localCommunicationOnly;
	this.tmpDirPaths = checkNotNull(tmpDirPaths);
	this.localRecoveryStateRootDirectories = checkNotNull(localRecoveryStateRootDirectories);
	this.localRecoveryEnabled = checkNotNull(localRecoveryEnabled);
	this.queryableStateConfig = queryableStateConfig;
	this.numberOfSlots = checkNotNull(numberOfSlots);

	this.pageSize = pageSize;

	this.taskExecutorResourceSpec = taskExecutorResourceSpec;
	this.classLoaderResolveOrder = classLoaderResolveOrder;
	this.alwaysParentFirstLoaderPatterns = alwaysParentFirstLoaderPatterns;
	this.numIoThreads = numIoThreads;

	checkArgument(timerServiceShutdownTimeout >= 0L, "The timer " +
		"service shutdown timeout must be greater or equal to 0.");
	this.timerServiceShutdownTimeout = timerServiceShutdownTimeout;
	this.retryingRegistrationConfiguration = checkNotNull(retryingRegistrationConfiguration);

	this.systemResourceMetricsProbingInterval = checkNotNull(systemResourceMetricsProbingInterval);
}
 
Example 6
Source File: TaskManagerServicesConfiguration.java    From flink with Apache License 2.0 4 votes vote down vote up
public FlinkUserCodeClassLoaders.ResolveOrder getClassLoaderResolveOrder() {
	return classLoaderResolveOrder;
}