01: /**
02: * This file or a portion of this file is licensed under the terms of
03: * the Globus Toolkit Public License, found in file GTPL, or at
04: * http://www.globus.org/toolkit/download/license.html. This notice must
05: * appear in redistributions of this file, with or without modification.
06: *
07: * Redistributions of this Software, with or without modification, must
08: * reproduce the GTPL in: (1) the Software, or (2) the Documentation or
09: * some other similar material which is provided with the Software (if
10: * any).
11: *
12: * Copyright 1999-2004 University of Chicago and The University of
13: * Southern California. All rights reserved.
14: */package org.griphyn.cPlanner.code.gridstart;
15:
16: import java.io.File;
17:
18: /**
19: * The exitcode wrapper, that can parse kickstart output's and put them in the
20: * database also.
21: *
22: * @author Karan Vahi vahi@isi.edu
23: * @version $Revision: 50 $
24: */
25:
26: public class ExitCode extends VDSPOSTScript {
27:
28: /**
29: * The SHORTNAME for this implementation.
30: */
31: public static final String SHORT_NAME = "exitcode";
32:
33: /**
34: * The default constructor.
35: */
36: public ExitCode() {
37: super ();
38: }
39:
40: /**
41: * Returns a short textual description of the implementing class.
42: *
43: * @return short textual description.
44: */
45: public String shortDescribe() {
46: return this .SHORT_NAME;
47: }
48:
49: /**
50: * Returns the path to exitcode that is to be used on the kickstart
51: * output.
52: *
53: * @return the path to the exitcode script to be invoked.
54: */
55: public String getDefaultExitCodePath() {
56: StringBuffer sb = new StringBuffer();
57: sb.append(mProps.getPegasusHome()).append(File.separator)
58: .append("bin");
59: sb.append(File.separator).append("exitcode");
60:
61: return sb.toString();
62: }
63:
64: }
|