weka.experiment.remote.policy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of weka-dev Show documentation
Show all versions of weka-dev Show documentation
The Waikato Environment for Knowledge Analysis (WEKA), a machine
learning workbench. This version represents the developer version, the
"bleeding edge" of development, you could say. New functionality gets added
to this version.
/*
* Necessary permissions for remote engines
*
* Start Experimenter in directory /home/johndoe/remote_engine:
*
* java \
* -classpath /path to weka/weka.jar:/path to database jar/ \
* -Djava.rmi.server.codebase=file:/path to weka jar/weka.jar \
* weka.gui.experiment.Experimenter
*
* Start remote engine on remote machine:
* - cd to /path to dir containing remoteEngine.jar
* - start engine
* java -Xmx256m \
* -classpath remoteEngine.jar:/path to database jar/:/path to weka/weka.jar \
* -Djava.security.policy=remote.policy \
* weka.experiment.RemoteEngine &
*
* Note:
* replace with actual jar filename, e.g., mysql.jar
*
* Version: $Revision: 13925 $
*/
grant {
// allow the remote engine to replace the context class loader.
// This enables the unloading of types from the remote engine
permission java.lang.RuntimePermission
"setContextClassLoader";
// allow the remote engine access to environment variables
permission java.lang.RuntimePermission
"getenv.*";
// allow the remote engine access to the class loader
permission java.lang.RuntimePermission
"getClassLoader";
// the following three permissions allow the MLRClassifier
// (from the RPlugin package) to work properly. They can be
// omitted if you don't plan on using RPlugin with the remote
// servers
permission java.lang.RuntimePermission
"createClassLoader";
permission java.lang.RuntimePermission
"accessDeclaredMembers";
permission java.lang.reflect.ReflectPermission
"suppressAccessChecks”;
// file permission for data sets
permission java.io.FilePermission
"/path_to_data_sets/-", "read";
// file permissions for downloading classes from client file url's
// permission java.io.FilePermission
// "/joe user's path to weka classes/-", "read";
// permission java.io.FilePermission
// "/jill user's path to weka classes/-", "read";
// connect to or accept connections from unprivaleged ports and the http port
permission java.net.SocketPermission
"*:1024-65535", "connect,accept,listen,resolve";
permission java.net.SocketPermission
"*:80", "connect";
// file permission to load server classes from remoteEngine.jar.
// only needed if RemoteEngine_Skel.class/_Stub.class are going to
// be downloaded by clients (ie, if these files are not already in the
// client's classpath). Normally this doesn't need to be changed.
permission java.io.FilePermission
"/path_to_dir_containing_remoteEngine.jar/-", "read";
// read write for properties
permission java.util.PropertyPermission
"*", "read,write";
// allow thread-based schemes to execute
permission java.lang.RuntimePermission
"modifyThread";
};
© 2015 - 2024 Weber Informatics LLC | Privacy Policy