diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2005-10-20 10:32:03 +0000 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2005-10-20 10:32:03 +0000 |
commit | 99d45a62dbf19c1690e3bb0e9f0c073571385beb (patch) | |
tree | 2f151051d7064e3f5aa49aefe2bd548adea19eb0 | |
parent | Fixed bug 527. (diff) | |
download | ice-99d45a62dbf19c1690e3bb0e9f0c073571385beb.tar.bz2 ice-99d45a62dbf19c1690e3bb0e9f0c073571385beb.tar.xz ice-99d45a62dbf19c1690e3bb0e9f0c073571385beb.zip |
Added IceBox.InstanceName
-rw-r--r-- | cpp/config/PropertyNames.def | 1 | ||||
-rw-r--r-- | cpp/demo/IceBox/hello/config | 2 | ||||
-rw-r--r-- | cpp/src/Ice/PropertyNames.cpp | 3 | ||||
-rw-r--r-- | cpp/src/Ice/PropertyNames.h | 2 | ||||
-rw-r--r-- | cpp/src/IceBox/Admin.cpp | 6 | ||||
-rw-r--r-- | cpp/src/IceBox/ServiceManagerI.cpp | 7 | ||||
-rw-r--r-- | cs/src/Ice/PropertyNames.cs | 3 | ||||
-rw-r--r-- | java/demo/IceBox/hello/config | 2 | ||||
-rw-r--r-- | java/src/IceInternal/PropertyNames.java | 3 |
9 files changed, 22 insertions, 7 deletions
diff --git a/cpp/config/PropertyNames.def b/cpp/config/PropertyNames.def index a38292be388..785941ef7df 100644 --- a/cpp/config/PropertyNames.def +++ b/cpp/config/PropertyNames.def @@ -164,6 +164,7 @@ Ice: Warn.Leaks IceBox: + InstanceName LoadOrder PrintServicesReady Service.<any> diff --git a/cpp/demo/IceBox/hello/config b/cpp/demo/IceBox/hello/config index bd48e42d1f4..36b2fdbeddf 100644 --- a/cpp/demo/IceBox/hello/config +++ b/cpp/demo/IceBox/hello/config @@ -1,3 +1,5 @@ +IceBox.InstanceName=DemoIceBox + # # The IceBox server endpoint configuration # diff --git a/cpp/src/Ice/PropertyNames.cpp b/cpp/src/Ice/PropertyNames.cpp index 5c78672ea90..824b9a1ea73 100644 --- a/cpp/src/Ice/PropertyNames.cpp +++ b/cpp/src/Ice/PropertyNames.cpp @@ -7,7 +7,7 @@ // // ********************************************************************** -// Generated by makeprops.py from file `/Users/matthew/zeroc/ice/config/PropertyNames.def', Thu Oct 20 15:43:40 2005 +// Generated by makeprops.py from file `../../../config/PropertyNames.def', Thu Oct 20 08:53:58 2005 // IMPORTANT: Do not edit this file -- any edits made here will be lost! @@ -76,6 +76,7 @@ const char* IceInternal::PropertyNames::IceProps[] = const char* IceInternal::PropertyNames::IceBoxProps[] = { + "IceBox.InstanceName", "IceBox.LoadOrder", "IceBox.PrintServicesReady", "IceBox.Service.*", diff --git a/cpp/src/Ice/PropertyNames.h b/cpp/src/Ice/PropertyNames.h index 97ffca1c578..410bf35eef4 100644 --- a/cpp/src/Ice/PropertyNames.h +++ b/cpp/src/Ice/PropertyNames.h @@ -7,7 +7,7 @@ // // ********************************************************************** -// Generated by makeprops.py from file `/Users/matthew/zeroc/ice/config/PropertyNames.def', Thu Oct 20 15:43:40 2005 +// Generated by makeprops.py from file `../../../config/PropertyNames.def', Thu Oct 20 08:53:58 2005 // IMPORTANT: Do not edit this file -- any edits made here will be lost! diff --git a/cpp/src/IceBox/Admin.cpp b/cpp/src/IceBox/Admin.cpp index 1219da4098a..ada94012293 100644 --- a/cpp/src/IceBox/Admin.cpp +++ b/cpp/src/IceBox/Admin.cpp @@ -83,7 +83,11 @@ Client::run(int argc, char* argv[]) } PropertiesPtr properties = communicator()->getProperties(); - string managerIdentity = properties->getPropertyWithDefault("IceBox.ServiceManager.Identity", "ServiceManager"); + string managerIdentity = properties->getProperty("IceBox.ServiceManager.Identity"); + if(managerIdentity.empty()) + { + managerIdentity = properties->getPropertyWithDefault("IceBox.InstanceName", "IceBox") + "/ServiceManager"; + } string managerProxy; diff --git a/cpp/src/IceBox/ServiceManagerI.cpp b/cpp/src/IceBox/ServiceManagerI.cpp index 216e4f5abae..f760bd66b97 100644 --- a/cpp/src/IceBox/ServiceManagerI.cpp +++ b/cpp/src/IceBox/ServiceManagerI.cpp @@ -65,8 +65,11 @@ IceBox::ServiceManagerI::run() ObjectAdapterPtr adapter = _server->communicator()->createObjectAdapter("IceBox.ServiceManager"); PropertiesPtr properties = _server->communicator()->getProperties(); - - string identity = properties->getPropertyWithDefault("IceBox.ServiceManager.Identity", "ServiceManager"); + string identity = properties->getProperty("IceBox.ServiceManager.Identity"); + if(identity.empty()) + { + identity = properties->getPropertyWithDefault("IceBox.InstanceName", "IceBox") + "/ServiceManager"; + } adapter->add(obj, stringToIdentity(identity)); // diff --git a/cs/src/Ice/PropertyNames.cs b/cs/src/Ice/PropertyNames.cs index 3802a5b8050..31b0e3ec58b 100644 --- a/cs/src/Ice/PropertyNames.cs +++ b/cs/src/Ice/PropertyNames.cs @@ -7,7 +7,7 @@ // // ********************************************************************** -// Generated by makeprops.py from file `/Users/matthew/zeroc/ice/config/PropertyNames.def', Thu Oct 20 15:45:53 2005 +// Generated by makeprops.py from file `../../../config/PropertyNames.def', Thu Oct 20 08:57:11 2005 // IMPORTANT: Do not edit this file -- any edits made here will be lost! @@ -78,6 +78,7 @@ namespace IceInternal public static string[] IceBoxProps = { + @"^IceBox\.InstanceName$", @"^IceBox\.LoadOrder$", @"^IceBox\.PrintServicesReady$", @"^IceBox\.Service\.[^\s.]+$", diff --git a/java/demo/IceBox/hello/config b/java/demo/IceBox/hello/config index fad0e027d4e..4ef27f0fb88 100644 --- a/java/demo/IceBox/hello/config +++ b/java/demo/IceBox/hello/config @@ -1,3 +1,5 @@ +IceBox.InstanceName=DemoIceBox + # # The IceBox server endpoint configuration # diff --git a/java/src/IceInternal/PropertyNames.java b/java/src/IceInternal/PropertyNames.java index 616a094a6de..53a03316479 100644 --- a/java/src/IceInternal/PropertyNames.java +++ b/java/src/IceInternal/PropertyNames.java @@ -7,7 +7,7 @@ // // ********************************************************************** -// Generated by makeprops.py from file `/Users/matthew/zeroc/ice/config/PropertyNames.def', Thu Oct 20 15:44:10 2005 +// Generated by makeprops.py from file `../../../config/PropertyNames.def', Thu Oct 20 08:57:11 2005 // IMPORTANT: Do not edit this file -- any edits made here will be lost! @@ -78,6 +78,7 @@ public final class PropertyNames public static final String IceBoxProps[] = { + "^IceBox\\.InstanceName$", "^IceBox\\.LoadOrder$", "^IceBox\\.PrintServicesReady$", "^IceBox\\.Service\\.[^\\s.]+$", |