Rev 4280 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
package com.erggroup.buildtool.ripple;public class ReleaseConfig{/*** Identify the Release within release Manager*/public int mRtag_id;/** Identify the build machine with the release* It is globally unique**/public int mRcon_id;/** Mode of the machine* M == Master* S == Slave*/public char mDaemon_mode;/** The name of the machine as provided by the machine*/public String mHostname;/** The buildfilter to be applied to the build*/public String mBuildfilter;/** The machine type* ie solaris10_x86'*/public String mMachtype;/** The machine class* ie: 'Solaris'*/public String mMachclass;/**constructor*/public ReleaseConfig(int rtag_id, int rcon_id, char daemon_mode, String hostname, String buildfilter, String machtype, String machclass){mRtag_id = rtag_id;mRcon_id = rcon_id;mDaemon_mode = daemon_mode;mHostname = hostname;mBuildfilter = buildfilter;mMachtype = machtype;mMachclass = machclass;}/**accessor method*/public int get_rtag_id(){return mRtag_id;}/**accessor method*/public int get_rcon_id(){return mRcon_id;}/**accessor method*/public char get_daemon_mode(){return mDaemon_mode;}public String getMachineEntry(){String retVal = "name=\"" + mHostname +"\" machtype=\"" + mMachtype +"\" machclass=\"" + mMachclass + "\"";// Only if it is defined// No entry will pick up machine's defualt filterif (mBuildfilter != null && mBuildfilter.length() > 0){retVal += " buildfilter=\"" + mBuildfilter + "\"";}// Only indicate Master. Value not currently usedif (mDaemon_mode == 'M') {retVal += " master=\"M\"";}// Wrap in a machine elementreturn "<machine " + retVal + "/>";}}