v12/src/PerfHarness/src/com/ibm/uk/hursley/perfharness/ControlThread.java
/**
	 * Register our presence and look up any required parameters for this class. 
	 * @see Config#registerSelf(Class)
	 */
Register our presence and look up any required parameters for this class.
Register our presence and look up any required parameters for this class .
public static void registerConfig() {
		Config.registerSelf( ControlThread.class );
		if ( ! Config.isInvalid() ) {
			int threads = Config.parms.getInt("nt");
			if ( threads<=0 ) {
				Config.logger.log(Level.WARNING, "Number of workers (nt={0}) must be at least 1", threads );
			}
			int runLength =  Config.parms.getInt("rl");
			if ( runLength<0 ) {
				Config.logger.log(Level.WARNING, "Runlength (rl={0}) must be at least 1 (or 0 for off)", runLength );
			}
			final Class<? extends ControlThread> ctClazz = Config.parms.<ControlThread>getClazz( "ct" );
			if ( ctClazz!=ControlThread.class ) {
				Config.registerAnother( ctClazz );
			}
		}
		WorkerThread.registerConfig();
		Statistics.registerConfig();
		Command.registerConfig();
		workerClass = Config.parms.getClazz("tc").getSimpleName();
	}
public static void registerConfig ( ) { Config . registerSelf ( ControlThread . class ) ; if ( ! Config . isInvalid ( ) ) { int threads = Config . parms . getInt ( "nt" ) ; if ( threads <= 0 ) { Config . logger . log ( Level . WARNING , "Number of workers (nt={0}) must be at least 1" , threads ) ; } int runLength = Config . parms . getInt ( "rl" ) ; if ( runLength < 0 ) { Config . logger . log ( Level . WARNING , "Runlength (rl={0}) must be at least 1 (or 0 for off)" , runLength ) ; } final Class < ? extends ControlThread > ctClazz = Config . parms . < ControlThread > getClazz ( "ct" ) ; if ( ctClazz != ControlThread . class ) { Config . registerAnother ( ctClazz ) ; } } WorkerThread . registerConfig ( ) ; Statistics . registerConfig ( ) ; Command . registerConfig ( ) ; workerClass = Config . parms . getClazz ( "tc" ) . getSimpleName ( ) ; }
Register our presence and look up any required parameters for this class.
Register our presence and look up any required parameters for this class .
// static validation of parameters