"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/main/java/com/rapidminer/RapidMiner.java" between
rapidminer-studio-9.4.1-src.tar.gz and rapidminer-studio-9.5.0-src.tar.gz

About: RapidMiner Studio is a code-free environment for designing advanced analytic processes with machine learning, data mining, text mining, predictive analytics and business analytics. Java source.

RapidMiner.java  (rapidminer-studio-9.4.1-src):RapidMiner.java  (rapidminer-studio-9.5.0-src)
skipping to change at line 31 skipping to change at line 31
import java.awt.Frame; import java.awt.Frame;
import java.awt.Image; import java.awt.Image;
import java.io.BufferedReader; import java.io.BufferedReader;
import java.io.File; import java.io.File;
import java.io.FileReader; import java.io.FileReader;
import java.io.FileWriter; import java.io.FileWriter;
import java.io.IOException; import java.io.IOException;
import java.io.PrintWriter; import java.io.PrintWriter;
import java.security.AccessControlException; import java.security.AccessControlException;
import java.security.AccessController; import java.security.AccessController;
import java.util.ArrayList;
import java.util.Arrays; import java.util.Arrays;
import java.util.Collections; import java.util.Collections;
import java.util.HashSet; import java.util.HashSet;
import java.util.LinkedHashSet;
import java.util.LinkedList; import java.util.LinkedList;
import java.util.List; import java.util.List;
import java.util.Locale; import java.util.Locale;
import java.util.Set; import java.util.Set;
import java.util.logging.Level; import java.util.logging.Level;
import com.rapidminer.connection.ConnectionInformationFileUtils; import com.rapidminer.connection.ConnectionInformationFileUtils;
import com.rapidminer.core.license.ActionStatisticsLicenseManagerListener; import com.rapidminer.core.license.ActionStatisticsLicenseManagerListener;
import com.rapidminer.core.license.ProductConstraintManager; import com.rapidminer.core.license.ProductConstraintManager;
import com.rapidminer.gui.RapidMinerGUI; import com.rapidminer.gui.RapidMinerGUI;
skipping to change at line 481 skipping to change at line 483
public static final String RAPIDMINER_FOLLOW_HTTPS_TO_HTTP = "rapidminer. system.network.follow_https_to_http"; public static final String RAPIDMINER_FOLLOW_HTTPS_TO_HTTP = "rapidminer. system.network.follow_https_to_http";
/** /**
* Set this parameter to {@code true} to allow http to https redirects * Set this parameter to {@code true} to allow http to https redirects
*/ */
public static final String RAPIDMINER_FOLLOW_HTTP_TO_HTTPS = "rapidminer. system.network.follow_http_to_https"; public static final String RAPIDMINER_FOLLOW_HTTP_TO_HTTPS = "rapidminer. system.network.follow_http_to_https";
public static final String PROCESS_FILE_EXTENSION = "rmp"; public static final String PROCESS_FILE_EXTENSION = "rmp";
/** /**
* Collection of clean up hooks
*
* @see #cleanup()
* #see {@link #registerCleanupHook(Runnable)}
* #see {@link #unregisterCleanupHook(Runnable)}
* @since 9.5
*/
private static final Set<Runnable> CLEAN_UP_HOOKS = new LinkedHashSet<>()
;
/**
* This map of {@link IOObject}s is used to remember {@link IOObject}s du ring the runtime of * This map of {@link IOObject}s is used to remember {@link IOObject}s du ring the runtime of
* RapidMiner Studio (default state to remember {@link IOObject}s of {@li nk Process}es) * RapidMiner Studio (default state to remember {@link IOObject}s of {@li nk Process}es)
*/ */
private static IOObjectMap ioObjectCache; private static IOObjectMap ioObjectCache;
/** /**
* This list contains the Protected Parameters that cannot be changed by extensions without * This list contains the Protected Parameters that cannot be changed by extensions without
* enough permissions * enough permissions
*/ */
private static final Set<String> PROTECTED_PARAMETERS; private static final Set<String> PROTECTED_PARAMETERS;
skipping to change at line 1104 skipping to change at line 1116
} }
public static ExecutionMode getExecutionMode() { public static ExecutionMode getExecutionMode() {
return executionMode; return executionMode;
} }
public static void setExecutionMode(final ExecutionMode executionMode) { public static void setExecutionMode(final ExecutionMode executionMode) {
RapidMiner.executionMode = executionMode; RapidMiner.executionMode = executionMode;
} }
/**
* Adds a clean up hook to be run after each process execution to prevent
interference.
*
* @param cleanup
* the clean up hook to add
* @since 9.5
*/
public static void registerCleanupHook(Runnable cleanup) {
synchronized (CLEAN_UP_HOOKS) {
CLEAN_UP_HOOKS.add(cleanup);
}
}
/**
* Removes the given clean up hook.
*
* @param cleanup
* the clean up hook to remove
* @since 9.5
*/
public static void unregisterCleanupHook(Runnable cleanup) {
synchronized (CLEAN_UP_HOOKS) {
CLEAN_UP_HOOKS.remove(cleanup);
}
}
/**
* Runs a cleanup between processes so they don't interfere with each oth
er. Clears the {@link #ioObjectCache IOObject cache},
* runs all {@link #CLEAN_UP_HOOKS clean up hooks} and triggers the garba
ge collection.
*
* @since 9.5
*/
public static void cleanup() {
if (ioObjectCache != null) {
ioObjectCache.clearStorage();
}
ArrayList<Runnable> cleanUpHooks;
synchronized (CLEAN_UP_HOOKS) {
cleanUpHooks = new ArrayList<>(CLEAN_UP_HOOKS);
}
for (Runnable cleanUpHook : cleanUpHooks) {
try {
cleanUpHook.run();
} catch (Throwable e) {
LogService.getRoot().log(Level.WARNING, "com.rapi
dMiner.RapidMiner.clean_up.error", e);
}
}
System.gc();
}
private static void initializeProxy() { private static void initializeProxy() {
ProxySettings.init(); ProxySettings.init();
// parameters for proxy settings // parameters for proxy settings
registerParameter(new ParameterTypeCategory(RapidMiner.PROPERTY_R APIDMINER_PROXY_MODE, "", registerParameter(new ParameterTypeCategory(RapidMiner.PROPERTY_R APIDMINER_PROXY_MODE, "",
RapidMiner.RAPIDMINER_PROXY_MODES, 0), "proxy"); RapidMiner.RAPIDMINER_PROXY_MODES, 0), "proxy");
ParameterType[] manualTypes = { ParameterType[] manualTypes = {
// Global exclusion list (applies on all NON_PROX Y_HOSTS) // Global exclusion list (applies on all NON_PROX Y_HOSTS)
new ParameterTypeString(PROPERTY_RAPIDMINER_PROXY _EXCLUDE, "", true), new ParameterTypeString(PROPERTY_RAPIDMINER_PROXY _EXCLUDE, "", true),
// HTTP // HTTP
new ParameterTypeString(PROPERTY_RAPIDMINER_HTTP_ PROXY_HOST, "", true), new ParameterTypeString(PROPERTY_RAPIDMINER_HTTP_ PROXY_HOST, "", true),
 End of changes. 4 change blocks. 
0 lines changed or deleted 67 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)