예제 #1
0
 @Override
 public void load(final ConfigReader reader) {
   setQueueName(reader.get(QUEUE_NAME));
   setMemoryRequirement(reader.get(MEMORY_REQUIREMENT, ""));
   setNativeSpecification(reader.get(NATIVE_SPECIFICATION, ""));
   setWrapperScript(reader.get(WRAPPER_SCRIPT));
   super.load(reader);
 }
예제 #2
0
 @Override
 public void save(final ConfigWriter writer) {
   super.save(writer);
   writer.put(QUEUE_NAME, getQueueName(), "Name of the SGE queue");
   writer.put(
       MEMORY_REQUIREMENT, getMemoryRequirement(), "", "Memory requirements for the SGE queue");
   writer.put(
       NATIVE_SPECIFICATION,
       getNativeSpecification(),
       "",
       "Native specification (additional parameters) for the SGE queue");
   writer.put(
       WRAPPER_SCRIPT,
       getWrapperScript(),
       "A wrapper script that will ensure smooth execution of the Swift component (create/tear down environment). Takes the command to execute as its parameter.");
 }