Exemplo n.º 1
0
void
ServerLocator::findObjectById_async(const Ice::AMD_Locator_findObjectByIdPtr& response, const Ice::Identity& id, 
                                    const Ice::Current& current) const
{
    ++const_cast<int&>(_requestCount);
    response->ice_response(_registry->getObject(id));
}
Exemplo n.º 2
0
 virtual void
 findObjectById_async(const Ice::AMD_Locator_findObjectByIdPtr& amdCB,
                      const Ice::Identity&,
                      const Ice::Current&) const
 {
     amdCB->ice_response(0);
 }
Exemplo n.º 3
0
 virtual void
 findObjectById_async(const Ice::AMD_Locator_findObjectByIdPtr& response, const Ice::Identity& id,
                      const Ice::Current& current) const
 {
     _controller->checkCallPause(current);
     Ice::CommunicatorPtr communicator = current.adapter->getCommunicator();
     response->ice_response(current.adapter->createDirectProxy(id));
 }
Exemplo n.º 4
0
                                   const ::Ice::Current&) const
#else
void
ServerLocator::findObjectById_async(const Ice::AMD_Locator_findObjectByIdPtr& response, const Ice::Identity& id,
                                    const Ice::Current&) const
#endif
{
    ++const_cast<int&>(_requestCount);
    // We add a small delay to make sure locator request queuing gets tested when
    // running the test on a fast machine
    IceUtil::ThreadControl::sleep(IceUtil::Time::milliSeconds(1));
#ifdef ICE_CPP11_MAPPING
    response(_registry->getObject(id));
#else
    response->ice_response(_registry->getObject(id));
#endif
}