- tear_down = Attribute("tearDown", "Bash script to be executed before " + \
- "releasing the resource",
- flags = Flags.Design)
-
- gateway_user = Attribute("gatewayUser", "Gateway account username",
- flags = Flags.Design)
-
- gateway = Attribute("gateway", "Hostname of the gateway machine",
- flags = Flags.Design)
-
- ip = Attribute("ip", "Linux host public IP address. "
- "Must not be modified by the user unless hostname is 'localhost'",
- flags = Flags.Design)
-
- cls._register_attribute(hostname)
- cls._register_attribute(username)
- cls._register_attribute(port)
- cls._register_attribute(home)
- cls._register_attribute(identity)
- cls._register_attribute(server_key)
- cls._register_attribute(clean_home)
- cls._register_attribute(clean_experiment)
- cls._register_attribute(clean_processes)
- cls._register_attribute(tear_down)
- cls._register_attribute(gateway_user)
- cls._register_attribute(gateway)
- cls._register_attribute(ip)
+ cls._register_attribute(Attribute(
+ "cleanProcessesAfter",
+ """Kill all running processes after starting experiment
+ This might be dangerous when using user root""",
+ type = Types.Bool,
+ default = True,
+ flags = Flags.Design))
+
+ cls._register_attribute(Attribute(
+ "tearDown",
+ "Bash script to be executed before releasing the resource",
+ flags = Flags.Design))
+
+ cls._register_attribute(Attribute(
+ "gatewayUser",
+ "Gateway account username",
+ flags = Flags.Design))
+
+ cls._register_attribute(Attribute(
+ "gateway",
+ "Hostname of the gateway machine",
+ flags = Flags.Design))
+
+ cls._register_attribute(Attribute(
+ "ip",
+ "Linux host public IP address. "
+ "Must not be modified by the user unless hostname is 'localhost'",
+ flags = Flags.Design))