blob: 1dd2689ad7347288ba875584f781f1bff6f36e0a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
//
// Copyright (c) ZeroC, Inc. All rights reserved.
//
#include <Ice/Ice.h>
#include <TestI.h>
TestI::TestI(const Ice::PropertiesPtr& properties) :
_properties(properties)
{
}
std::string
TestI::getReplicaId(const Ice::Current& current)
{
return _properties->getProperty(current.adapter->getName() + ".AdapterId");
}
std::string
TestI::getReplicaIdAndShutdown(const Ice::Current& current)
{
current.adapter->getCommunicator()->shutdown();
return _properties->getProperty(current.adapter->getName() + ".AdapterId");
}
|