WARNING! Access to this system is limited to authorised users only.
Unauthorised users may be subject to prosecution.
Unauthorised access to this system is a criminal offence under Australian law (Federal Crimes Act 1914 Part VIA)
It is a criminal offence to:
(1) Obtain access to data without authority. -Penalty 2 years imprisonment.
(2) Damage, delete, alter or insert data without authority. -Penalty 10 years imprisonment.
User activity is monitored and recorded. Anyone using this system expressly consents to such monitoring and recording.

To protect your data, the CISO officer has suggested users to enable 2FA as soon as possible.
Currently 2.7% of users enabled 2FA.

Commit d224deed authored by Rui Chen's avatar Rui Chen
Browse files

[Tradebeans]Updated the source code of tradebeans that trigger daytrader

parent 1f0fa0c5
......@@ -24,6 +24,7 @@ import org.dacapo.parser.Config;
public class Tradebeans extends Benchmark {
private Method initializeMethod;
private Method shutdownMethod;
public Tradebeans(Config config, File scratch) throws Exception {
super(config, scratch, false);
......@@ -32,6 +33,7 @@ public class Tradebeans extends Benchmark {
Class<?> clazz = Class.forName("org.dacapo.daytrader.Launcher", true, loader);
this.initializeMethod = clazz.getMethod("initialize", new Class[] { File.class, Integer.TYPE, String.class, Boolean.TYPE });
this.method = clazz.getMethod("performIteration", new Class[] {});
this.shutdownMethod = clazz.getMethod("shutdown", new Class[] {});
}
@Override
......@@ -50,10 +52,15 @@ public class Tradebeans extends Benchmark {
}
public void cleanup() {
try {
shutdownMethod.invoke(null);
}catch (Exception e) {
e.printStackTrace();
}
System.out.println("Shutting down Geronimo...");
if (!getPreserve()) {
deleteTree(new File(scratch, "tradebeans"));
deleteTree(new File(scratch, "geronimo-jetty6-minimal-2.1.4"));
deleteTree(new File(scratch, "geronimo-tomcat7-minimal-3.0.1"));
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment