Package tcg.syscontrol.cos

Examples of tcg.syscontrol.cos.CosRunParamStruct


   
    //prepare params for zombie processes
    CosRunParamStruct[] params = new CosRunParamStruct[1];
   
    //pass in the process manager port
    params[0] = new CosRunParamStruct();
    params[0].name = MANAGER_PORT_KEY.value;
    params[0].value = Integer.toString(portNo_);
   
    ManagedProcessStruct   process = null;
    String          iorString = "";
View Full Code Here


  }
 
  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);
View Full Code Here

TOP

Related Classes of tcg.syscontrol.cos.CosRunParamStruct

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.