}
private CosRunParamStruct[] get_process_runtime_params(ManagedProcessStruct process)
{
ArrayList<CosRunParamStruct> params = new ArrayList<CosRunParamStruct>();
CosRunParamStruct param = null;
//pass in anything in the runtime properties.
for(Enumeration<?> enumeration = runtimeProps_.propertyNames();
enumeration.hasMoreElements();)
{
param = new CosRunParamStruct();
param.name = (String) enumeration.nextElement();
param.value = runtimeProps_.getProperty(param.name);
//add into the list
params.add(param);
}
//log file. this should have been passed in as command line argument!
String logfile = "";
if (logdir_.length() > 0)
{
logfile = logdir_ + "/" + process.entity + ".log";
} else {
logfile = process.entity + ".log";
}
param = new CosRunParamStruct();
param.name = LOG_FILE_KEY.value;
param.value = logfile;
//add into the list
params.add(param);
//log level. should use cosSetLogLevel() directly
param = new CosRunParamStruct();
param.name = LOG_LEVEL_KEY.value;
param.value = CorbaHelper.LogLevelToString(process.runtime.logLevel);
//add into the list
params.add(param);