Subversion Repositories DevTools

Rev

Rev 4280 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4280 Rev 4285
Line 1... Line 1...
1
package com.erggroup.buildtool.ripple;
1
package com.erggroup.buildtool.ripple;
2
 
2
 
3
class ReleaseConfig
3
public class ReleaseConfig
4
{
4
{
-
 
5
	/**
-
 
6
	 * Identify the Release within release Manager
-
 
7
	 */
5
  public int mRtag_id;
8
  public int mRtag_id;
-
 
9
  
-
 
10
  /** Identify the build machine with the release
-
 
11
   *  It is globally unique
-
 
12
   * 
-
 
13
   */
6
  public int mRcon_id;
14
  public int mRcon_id;
-
 
15
  
-
 
16
  /** Mode of the machine
-
 
17
   * 	M == Master
-
 
18
   *    S == Slave
-
 
19
   */
7
  public char mDaemon_mode;
20
  public char mDaemon_mode;
-
 
21
  
-
 
22
  /** The name of the machine as provided by the machine
-
 
23
   */
8
  public String mHostname;
24
  public String mHostname;
-
 
25
  
-
 
26
  /** The buildfilter to be applied to the build
-
 
27
   */
9
  public String mBuildfilter;
28
  public String mBuildfilter;
-
 
29
  
-
 
30
  /** The machine type
-
 
31
   * 	ie solaris10_x86'
-
 
32
   */
10
  public String mMachtype;
33
  public String mMachtype;
-
 
34
  
-
 
35
  /** The machine class
-
 
36
   * 	ie: 'Solaris'
-
 
37
   */
11
  public String mMachclass;
38
  public String mMachclass;
12
 
39
 
13
  /**constructor
40
  /**constructor
14
   */
41
   */
15
  ReleaseConfig(int rtag_id, int rcon_id, char daemon_mode, String hostname, String buildfilter, String machtype, String machclass)
42
  public ReleaseConfig(int rtag_id, int rcon_id, char daemon_mode, String hostname, String buildfilter, String machtype, String machclass)
16
  {
43
  {
17
    mRtag_id = rtag_id;
44
    mRtag_id = rtag_id;
18
    mRcon_id = rcon_id;
45
    mRcon_id = rcon_id;
19
    mDaemon_mode = daemon_mode;
46
    mDaemon_mode = daemon_mode;
20
    mHostname = hostname;
47
    mHostname = hostname;
Line 23... Line 50...
23
    mMachclass = machclass;
50
    mMachclass = machclass;
24
  }
51
  }
25
 
52
 
26
  /**accessor method
53
  /**accessor method
27
   */
54
   */
28
  int get_rtag_id()
55
  public int get_rtag_id()
29
  {
56
  {
30
    return mRtag_id;
57
    return mRtag_id;
31
  }
58
  }
32
 
59
 
33
  /**accessor method
60
  /**accessor method
34
   */
61
   */
35
  int get_rcon_id()
62
  public int get_rcon_id()
36
  {
63
  {
37
    return mRcon_id;
64
    return mRcon_id;
38
  }
65
  }
39
 
66
 
40
  /**accessor method
67
  /**accessor method
41
   */
68
   */
42
  char get_daemon_mode()
69
  public char get_daemon_mode()
43
  {
70
  {
44
    return mDaemon_mode;
71
    return mDaemon_mode;
45
  }
72
  }
46
 
73
 
47
  String getMachineEntry()
74
  public String getMachineEntry()
48
  {
75
  {
49
      String retVal = "name=\"" + mHostname + 
76
      String retVal = "name=\"" + mHostname + 
50
                      "\" machtype=\"" + mMachtype + 
77
                      "\" machtype=\"" + mMachtype + 
51
                      "\" machclass=\"" + mMachclass + 
78
                      "\" machclass=\"" + mMachclass + "\"";
-
 
79
 
-
 
80
      // Only if it is defined
-
 
81
      //    No entry will pick up machine's defualt filter
-
 
82
      if (mBuildfilter != null && mBuildfilter.length() > 0)
-
 
83
      {
52
                      "\" buildfilter=\"" + mBuildfilter + "\"";
84
          retVal +=   " buildfilter=\"" + mBuildfilter + "\"";
-
 
85
      }
53
 
86
 
54
      // Only indicate Master. Value not currently used
87
      // Only indicate Master. Value not currently used
55
      if (mDaemon_mode  == 'M') {
88
      if (mDaemon_mode  == 'M') {
56
          retVal +=   " master=\"M\"";
89
          retVal +=   " master=\"M\"";
57
      }
90
      }