version 1.238, 2011/02/16 06:44:31
|
version 1.238.2.2, 2013/04/06 04:38:19
|
|
|
// | // |
if (shutdownOption) | if (shutdownOption) |
{ | { |
|
#if defined(PEGASUS_OS_ZOS) && defined(PEGASUS_ZOS_SECURITY) |
|
// This checks whether user is authorized to stop the |
|
// CIM Server. When unauthorized a message is logged to |
|
// to the user and program exits. |
|
shutdownCheckProfileCIMSERVclassWBEM(); |
|
// Depending on the success of the previous check we may not |
|
// reach this code!!! |
|
#endif |
String configTimeout = | String configTimeout = |
configManager->getCurrentValue("shutdownTimeout"); | configManager->getCurrentValue("shutdownTimeout"); |
Uint32 timeoutValue = | Uint32 timeoutValue = |
|
|
{ | { |
Uint32 portNumberHttp = 0; | Uint32 portNumberHttp = 0; |
String httpPort = configManager->getCurrentValue("httpPort"); | String httpPort = configManager->getCurrentValue("httpPort"); |
if (httpPort == String::EMPTY) |
if (httpPort.size() == 0) |
{ | { |
// | // |
// Look up the WBEM-HTTP port number | // Look up the WBEM-HTTP port number |
|
|
} | } |
else | else |
{ | { |
// |
Uint64 longNumber; |
// user-specified |
// use the current value which has been checked for validity at |
// |
// load(fct. GetOptions), see DefaultPropertyOwner::isValid() |
CString portString = httpPort.getCString(); |
StringConversion::decimalStringToUint64( |
char* end = 0; |
httpPort.getCString(), |
portNumberHttp = strtol(portString, &end, 10); |
longNumber); |
if (!(end != 0 && *end == '\0')) |
portNumberHttp = longNumber & 0xffff; |
{ |
|
throw InvalidPropertyValue("httpPort", httpPort); |
|
} |
|
} | } |
| |
if (addIP6Acceptor) | if (addIP6Acceptor) |
|
|
{ | { |
Uint32 portNumberHttps = 0; | Uint32 portNumberHttps = 0; |
String httpsPort = configManager->getCurrentValue("httpsPort"); | String httpsPort = configManager->getCurrentValue("httpsPort"); |
if (httpsPort == String::EMPTY) |
if (httpsPort.size() == 0 ) |
{ | { |
// | // |
// Look up the WBEM-HTTPS port number | // Look up the WBEM-HTTPS port number |
|
|
} | } |
else | else |
{ | { |
// |
Uint64 longNumber; |
// user-specified |
// use the current value which has been checked for validity at |
// |
// load(fct. GetOptions), see DefaultPropertyOwner::isValid() |
CString portString = httpsPort.getCString(); |
StringConversion::decimalStringToUint64( |
char* end = 0; |
httpsPort.getCString(), |
portNumberHttps = strtol(portString, &end, 10); |
longNumber); |
if (!(end != 0 && *end == '\0')) |
portNumberHttps = longNumber & 0xffff; |
{ |
|
throw InvalidPropertyValue("httpsPort", httpsPort); |
|
} |
|
} | } |
if (addIP6Acceptor) | if (addIP6Acceptor) |
{ | { |