Subversion Repositories DevTools

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
4280 dpurdie 1
package com.erggroup.buildtool.ripple;
2
 
3
class ReleaseConfig
4
{
5
  public int mRtag_id;
6
  public int mRcon_id;
7
  public char mDaemon_mode;
8
  public String mHostname;
9
  public String mBuildfilter;
10
  public String mMachtype;
11
  public String mMachclass;
12
 
13
  /**constructor
14
   */
15
  ReleaseConfig(int rtag_id, int rcon_id, char daemon_mode, String hostname, String buildfilter, String machtype, String machclass)
16
  {
17
    mRtag_id = rtag_id;
18
    mRcon_id = rcon_id;
19
    mDaemon_mode = daemon_mode;
20
    mHostname = hostname;
21
    mBuildfilter = buildfilter;
22
    mMachtype = machtype;
23
    mMachclass = machclass;
24
  }
25
 
26
  /**accessor method
27
   */
28
  int get_rtag_id()
29
  {
30
    return mRtag_id;
31
  }
32
 
33
  /**accessor method
34
   */
35
  int get_rcon_id()
36
  {
37
    return mRcon_id;
38
  }
39
 
40
  /**accessor method
41
   */
42
  char get_daemon_mode()
43
  {
44
    return mDaemon_mode;
45
  }
46
 
47
  String getMachineEntry()
48
  {
49
      String retVal = "name=\"" + mHostname + 
50
                      "\" machtype=\"" + mMachtype + 
51
                      "\" machclass=\"" + mMachclass + 
52
                      "\" buildfilter=\"" + mBuildfilter + "\"";
53
 
54
      // Only indicate Master. Value not currently used
55
      if (mDaemon_mode  == 'M') {
56
          retVal +=   " master=\"M\"";
57
      }
58
 
59
      //    Wrap in a machine element
60
      return "<machine " + retVal + "/>";
61
  }
62
}