use of org.apache.ignite.marshaller.Marshaller in project ignite by apache.
the class IgniteProcessProxy method filteredJvmArgs.
/**
* Creates list of JVM arguments to be used to start new Ignite process in separate JVM.
*
* @return JVM arguments.
* @throws Exception In case of an error.
*/
protected Collection<String> filteredJvmArgs() throws Exception {
Collection<String> filteredJvmArgs = new ArrayList<>();
filteredJvmArgs.add("-ea");
Marshaller marsh = cfg.getMarshaller();
if (marsh != null)
filteredJvmArgs.add("-D" + IgniteTestResources.MARSH_CLASS_NAME + "=" + marsh.getClass().getName());
else
filteredJvmArgs.add("-D" + IgniteTestResources.MARSH_CLASS_NAME + "=" + BinaryMarshaller.class.getName());
for (String arg : U.jvmArgs()) {
if (arg.startsWith("-Xmx") || arg.startsWith("-Xms") || arg.startsWith("-cp") || arg.startsWith("-classpath") || (marsh != null && arg.startsWith("-D" + IgniteTestResources.MARSH_CLASS_NAME)))
filteredJvmArgs.add(arg);
}
return filteredJvmArgs;
}
Aggregations