version 1.5.2.5, 2004/02/13 17:17:46
|
version 1.5.2.6, 2004/02/13 21:05:42
|
|
|
Add the association functions | Add the association functions |
Add a new class to pickup the communicationlink encryption functions and the | Add a new class to pickup the communicationlink encryption functions and the |
TCP address. | TCP address. |
|
UUID generation should become a system function since it will be used |
|
by many providers, etc. as part of id generation. |
*/ | */ |
| |
#include <Pegasus/Common/Config.h> | #include <Pegasus/Common/Config.h> |
|
|
//#define CDEBUG(X) Logger::put (Logger::DEBUG_LOG, "Linux_ProcessorProvider", Logger::INFORMATION, "$0", X) | //#define CDEBUG(X) Logger::put (Logger::DEBUG_LOG, "Linux_ProcessorProvider", Logger::INFORMATION, "$0", X) |
//#define CDEBUG(X) {std::stringstream ss; std::string r;ss << X;ss>>r; PEG_TRACE_STRING(TRC_CONTROLPROVIDER, Tracer::LEVEL4, r)} | //#define CDEBUG(X) {std::stringstream ss; std::string r;ss << X;ss>>r; PEG_TRACE_STRING(TRC_CONTROLPROVIDER, Tracer::LEVEL4, r)} |
| |
static const String PegasusInstanceIDGlobalPrefix = "PEG"; |
|
| |
|
//************************************************************************** |
|
// |
// Constants representing the class names processed | // Constants representing the class names processed |
|
// |
|
//************************************************************************** |
|
|
|
// The following should be moved to somewhere like constants. |
|
static const String PegasusInstanceIDGlobalPrefix = "PEG"; |
| |
/** | /** |
The constants representing the class names we process | The constants representing the class names we process |
|
|
/* get the prefix that will be part of the cimom identification | /* get the prefix that will be part of the cimom identification |
This can be either the default PEG or if the environment | This can be either the default PEG or if the environment |
variable PEGASUS_TRADEMARK_PREFIX is defined this is used. | variable PEGASUS_TRADEMARK_PREFIX is defined this is used. |
|
NOTE: getting from the environment variable is a hack until |
|
we can come up with a better source. |
@return String containing the unique name for the CIMOM ID | @return String containing the unique name for the CIMOM ID |
|
|
*/ | */ |
| |
String getTrademarkCIMOMIDPrefix() | String getTrademarkCIMOMIDPrefix() |
|
|
| |
char * trademark; | char * trademark; |
trademark = getenv("PEGASUS_TRADEMARK_PREFIX"); | trademark = getenv("PEGASUS_TRADEMARK_PREFIX"); |
if (!trademark) |
return((trademark)? trademark : PegasusInstanceIDGlobalPrefix); |
{ |
|
return(String(PegasusInstanceIDGlobalPrefix)); |
|
} |
|
else |
|
return(String(trademark)); |
|
} | } |
/** Builds the UUID string for this CIMOM. | /** Builds the UUID string for this CIMOM. |
**/ | **/ |
String getUUIDString() | String getUUIDString() |
{ | { |
| |
|
// ATTN: KS Jan 2004 Leave this dead code in until we complete the UNIX/LINUX uuid generator. |
//UUID Generation code starts | //UUID Generation code starts |
//Uses "libuuid.a" in /usr/lib directory. Make sure it's there. Also Makefile has "-luuid" added to $EXTRA_LIBRARIES | //Uses "libuuid.a" in /usr/lib directory. Make sure it's there. Also Makefile has "-luuid" added to $EXTRA_LIBRARIES |
/* | /* |