Exemplo n.º 1
0
static int _get(zfinder_t * finder, const char *query, zbuf_t * result, int timeout)
{
    int ret;

    ret = ___get(finder, query, result, timeout);

    return ret;
}
Exemplo n.º 2
0
::Ice::DispatchStatus
GlobalTable::DistributedMap::__dispatch(::IceInternal::Incoming& in, const ::Ice::Current& current)
{
    ::std::pair< ::std::string*, ::std::string*> r = ::std::equal_range(__GlobalTable__DistributedMap_all, __GlobalTable__DistributedMap_all + 10, current.operation);
    if(r.first == r.second)
    {
        throw ::Ice::OperationNotExistException(__FILE__, __LINE__, current.id, current.facet, current.operation);
    }

    switch(r.first - __GlobalTable__DistributedMap_all)
    {
        case 0:
        {
            return ___get(in, current);
        }
        case 1:
        {
            return ___ice_id(in, current);
        }
        case 2:
        {
            return ___ice_ids(in, current);
        }
        case 3:
        {
            return ___ice_isA(in, current);
        }
        case 4:
        {
            return ___ice_ping(in, current);
        }
        case 5:
        {
            return ___put(in, current);
        }
        case 6:
        {
            return ___putNget(in, current);
        }
        case 7:
        {
            return ___remove(in, current);
        }
        case 8:
        {
            return ___set(in, current);
        }
        case 9:
        {
            return ___waitForAllClients(in, current);
        }
    }

    assert(false);
    throw ::Ice::OperationNotExistException(__FILE__, __LINE__, current.id, current.facet, current.operation);
}
Exemplo n.º 3
0
::Ice::DispatchStatus
Pri::Ac::__dispatch(::IceInternal::Incoming& in, const ::Ice::Current& current)
{
    ::std::pair< const ::std::string*, const ::std::string*> r = ::std::equal_range(__Pri__Ac_all, __Pri__Ac_all + 5, current.operation);
    if(r.first == r.second)
    {
        throw ::Ice::OperationNotExistException(__FILE__, __LINE__, current.id, current.facet, current.operation);
    }

    switch(r.first - __Pri__Ac_all)
    {
        case 0:
        {
            return ___get(in, current);
        }
        case 1:
        {
            return ___ice_id(in, current);
        }
        case 2:
        {
            return ___ice_ids(in, current);
        }
        case 3:
        {
            return ___ice_isA(in, current);
        }
        case 4:
        {
            return ___ice_ping(in, current);
        }
    }

    assert(false);
    throw ::Ice::OperationNotExistException(__FILE__, __LINE__, current.id, current.facet, current.operation);
}