(file) Return to cimserver.cpp CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Server

Diff for /pegasus/src/Server/cimserver.cpp between version 1.12 and 1.13

version 1.12, 2001/05/30 00:06:35 version 1.13, 2001/06/02 02:25:33
Line 58 
Line 58 
     FileSystem::translateSlashes(pegasusHome);     FileSystem::translateSlashes(pegasusHome);
 } }
  
   /** GetOptions function - This function defines the Options Table
       and sets up the options from that table using the option manager.
   */
 void GetOptions( void GetOptions(
     OptionManager& om,     OptionManager& om,
     int& argc,     int& argc,
Line 68 
Line 71 
     {     {
         {"port", "8888", false, Option::WHOLE_NUMBER, 0, 0, "port"},         {"port", "8888", false, Option::WHOLE_NUMBER, 0, 0, "port"},
         {"trace", "false", false, Option::BOOLEAN, 0, 0, "t"},         {"trace", "false", false, Option::BOOLEAN, 0, 0, "t"},
         {"Severity", "ALL", false, Option::STRING, 0, 0, "s"},          {"severity", "ALL", false, Option::STRING, 0, 0, "s"},
         {"logs", "ALL", false, Option::STRING, 0, 0, "L"},         {"logs", "ALL", false, Option::STRING, 0, 0, "L"},
           {"daemon", "false", false, Option::STRING, 0, 0, "d"},
         {"version", "false", false, Option::BOOLEAN, 0, 0, "v"},         {"version", "false", false, Option::BOOLEAN, 0, 0, "v"},
         {"help", "false", false, Option::BOOLEAN, 0, 0, "h"},         {"help", "false", false, Option::BOOLEAN, 0, 0, "h"},
         {"debug", "false", false, Option::BOOLEAN, 0, 0, "d"}         {"debug", "false", false, Option::BOOLEAN, 0, 0, "d"}
Line 88 
Line 92 
     om.checkRequiredOptions();     om.checkRequiredOptions();
 } }
  
   /* PrintHelp - This is temporary until we expand the options manager to allow
      options help to be defined with the OptionRow entries and presented from
      those entries.
   */
 void PrintHelp(const char* arg0) void PrintHelp(const char* arg0)
 { {
     cout << '\n';     cout << '\n';
Line 103 
Line 111 
     cout << endl;     cout << endl;
 } }
  
   //////////////////////////////////////////////////////////////////////////
   //  MAIN
   //////////////////////////////////////////////////////////////////////////
 int main(int argc, char** argv) int main(int argc, char** argv)
 { {
     // Get environment variables:     // Get environment variables:
Line 168 
Line 179 
          pegasusIOTrace = true;          pegasusIOTrace = true;
          cout << "Trace Set" << endl;          cout << "Trace Set" << endl;
     }     }
   
     // Grab the port otpion:     // Grab the port otpion:
  
     String portOption;     String portOption;
     om.lookupValue("port", portOption);     om.lookupValue("port", portOption);
  
     Logger::setHomeDirectory("./logs");  
   
     try  
     {  
         Selector selector;  
         CIMServer server(&selector, pegasusHome);  
   
         char* address = portOption.allocateCString();         char* address = portOption.allocateCString();
  
         // Put out startup up message.         // Put out startup up message.
Line 191 
Line 196 
         cout <<"Started..."         cout <<"Started..."
              << (pegasusIOTrace ? " Tracing": " ") << endl;              << (pegasusIOTrace ? " Tracing": " ") << endl;
  
       // Set up the Logger
       Logger::setHomeDirectory("./logs");
   
       // Put server start message to the logger
         Logger::put(Logger::STANDARD_LOG, "CIMServer", Logger::INFORMATION,         Logger::put(Logger::STANDARD_LOG, "CIMServer", Logger::INFORMATION,
             "Start $0 %1 port $2 $3 ", 88, PEGASUS_NAME, PEGASUS_VERSION,             "Start $0 %1 port $2 $3 ", 88, PEGASUS_NAME, PEGASUS_VERSION,
                     address, (pegasusIOTrace ? " Tracing": " "));                     address, (pegasusIOTrace ? " Tracing": " "));
  
       // try loop to bind the address, and run the server
       try
       {
           Selector selector;
           CIMServer server(&selector, pegasusHome);
   
         server.bind(address);         server.bind(address);
         delete [] address;         delete [] address;
         server.runForever();         server.runForever();


Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2