diff options
author | Benoit Foucher <benoit@zeroc.com> | 2002-09-25 22:38:26 +0000 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2002-09-25 22:38:26 +0000 |
commit | f953fd71ec8e0d1ae425428dcfd9721dea40a608 (patch) | |
tree | 94e36c55732771d5d5f9bc9dea60794902704194 /cpp/src/IcePack/ServerI.cpp | |
parent | Added server activation settings. (diff) | |
download | ice-f953fd71ec8e0d1ae425428dcfd9721dea40a608.tar.bz2 ice-f953fd71ec8e0d1ae425428dcfd9721dea40a608.tar.xz ice-f953fd71ec8e0d1ae425428dcfd9721dea40a608.zip |
Added server activation settings to icepackadmin.
Diffstat (limited to 'cpp/src/IcePack/ServerI.cpp')
-rw-r--r-- | cpp/src/IcePack/ServerI.cpp | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/cpp/src/IcePack/ServerI.cpp b/cpp/src/IcePack/ServerI.cpp index f572e47ab0a..e8dcdc66a2e 100644 --- a/cpp/src/IcePack/ServerI.cpp +++ b/cpp/src/IcePack/ServerI.cpp @@ -43,9 +43,9 @@ IcePack::ServerI::getServerDescription(const Ice::Current&) } bool -IcePack::ServerI::start(ServerActivation activation, const Ice::Current& current) +IcePack::ServerI::start(ServerActivation act, const Ice::Current& current) { - if(activation < description.activation) + if(act < activation) { return false; } @@ -316,6 +316,20 @@ IcePack::ServerI::getPid(const Ice::Current& current) return _activator->getServerPid(this); } +void +IcePack::ServerI::setActivationMode(ServerActivation mode, const ::Ice::Current&) +{ + IceUtil::Monitor< ::IceUtil::Mutex>::Lock sync(*this); + activation = mode; +} + +ServerActivation +IcePack::ServerI::getActivationMode(const ::Ice::Current&) +{ + IceUtil::Monitor< ::IceUtil::Mutex>::Lock sync(*this); + return activation; +} + void IcePack::ServerI::stopInternal() { |