All Downloads are FREE. Search and download functionalities are using the official Maven repository.

IceGrid.LocatorPrxHelper Maven / Gradle / Ivy

There is a newer version: 3.7.10
Show newest version
//
// Copyright (c) ZeroC, Inc. All rights reserved.
//
//
// Ice version 3.7.3
//
// 
//
// Generated from file `Registry.ice'
//
// Warning: do not edit this file.
//
// 
//

package IceGrid;

/**
 * Provides type-specific helper functions.
 **/
public final class LocatorPrxHelper extends Ice.ObjectPrxHelperBase implements LocatorPrx
{
    private static final String _findObjectById_name = "findObjectById";

    public Ice.ObjectPrx findObjectById(Ice.Identity id)
        throws Ice.ObjectNotFoundException
    {
        return _iceI_findObjectById(id, null, false);
    }

    public Ice.ObjectPrx findObjectById(Ice.Identity id, java.util.Map context)
        throws Ice.ObjectNotFoundException
    {
        return _iceI_findObjectById(id, context, true);
    }

    private Ice.ObjectPrx _iceI_findObjectById(Ice.Identity iceP_id, java.util.Map context, boolean explicitCtx)
        throws Ice.ObjectNotFoundException
    {
        _checkTwowayOnly(_findObjectById_name);
        return end_findObjectById(_iceI_begin_findObjectById(iceP_id, context, explicitCtx, true, null));
    }

    public Ice.AsyncResult begin_findObjectById(Ice.Identity id)
    {
        return _iceI_begin_findObjectById(id, null, false, false, null);
    }

    public Ice.AsyncResult begin_findObjectById(Ice.Identity id, java.util.Map context)
    {
        return _iceI_begin_findObjectById(id, context, true, false, null);
    }

    public Ice.AsyncResult begin_findObjectById(Ice.Identity id, Ice.Callback cb)
    {
        return _iceI_begin_findObjectById(id, null, false, false, cb);
    }

    public Ice.AsyncResult begin_findObjectById(Ice.Identity id, java.util.Map context, Ice.Callback cb)
    {
        return _iceI_begin_findObjectById(id, context, true, false, cb);
    }

    public Ice.AsyncResult begin_findObjectById(Ice.Identity id, Ice.Callback_Locator_findObjectById cb)
    {
        return _iceI_begin_findObjectById(id, null, false, false, cb);
    }

    public Ice.AsyncResult begin_findObjectById(Ice.Identity id, java.util.Map context, Ice.Callback_Locator_findObjectById cb)
    {
        return _iceI_begin_findObjectById(id, context, true, false, cb);
    }

    public Ice.AsyncResult begin_findObjectById(Ice.Identity id,
                                                IceInternal.Functional_GenericCallback1 responseCb,
                                                IceInternal.Functional_GenericCallback1 userExceptionCb,
                                                IceInternal.Functional_GenericCallback1 exceptionCb)
    {
        return _iceI_begin_findObjectById(id, null, false, false, responseCb, userExceptionCb, exceptionCb, null);
    }

    public Ice.AsyncResult begin_findObjectById(Ice.Identity id,
                                                IceInternal.Functional_GenericCallback1 responseCb,
                                                IceInternal.Functional_GenericCallback1 userExceptionCb,
                                                IceInternal.Functional_GenericCallback1 exceptionCb,
                                                IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_findObjectById(id, null, false, false, responseCb, userExceptionCb, exceptionCb, sentCb);
    }

    public Ice.AsyncResult begin_findObjectById(Ice.Identity id,
                                                java.util.Map context,
                                                IceInternal.Functional_GenericCallback1 responseCb,
                                                IceInternal.Functional_GenericCallback1 userExceptionCb,
                                                IceInternal.Functional_GenericCallback1 exceptionCb)
    {
        return _iceI_begin_findObjectById(id, context, true, false, responseCb, userExceptionCb, exceptionCb, null);
    }

    public Ice.AsyncResult begin_findObjectById(Ice.Identity id,
                                                java.util.Map context,
                                                IceInternal.Functional_GenericCallback1 responseCb,
                                                IceInternal.Functional_GenericCallback1 userExceptionCb,
                                                IceInternal.Functional_GenericCallback1 exceptionCb,
                                                IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_findObjectById(id, context, true, false, responseCb, userExceptionCb, exceptionCb, sentCb);
    }

    private Ice.AsyncResult _iceI_begin_findObjectById(Ice.Identity iceP_id,
                                                       java.util.Map context,
                                                       boolean explicitCtx,
                                                       boolean synchronous,
                                                       IceInternal.Functional_GenericCallback1 responseCb,
                                                       IceInternal.Functional_GenericCallback1 userExceptionCb,
                                                       IceInternal.Functional_GenericCallback1 exceptionCb,
                                                       IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_findObjectById(iceP_id,
                                          context,
                                          explicitCtx,
                                          synchronous,
                                          new IceInternal.Functional_TwowayCallbackArg1UE(responseCb, userExceptionCb, exceptionCb, sentCb)
                                              {
                                                  public final void _iceCompleted(Ice.AsyncResult result)
                                                  {
                                                      LocatorPrxHelper._iceI_findObjectById_completed(this, result);
                                                  }
                                              });
    }

    private Ice.AsyncResult _iceI_begin_findObjectById(Ice.Identity iceP_id,
                                                       java.util.Map context,
                                                       boolean explicitCtx,
                                                       boolean synchronous,
                                                       IceInternal.CallbackBase cb)
    {
        _checkAsyncTwowayOnly(_findObjectById_name);
        IceInternal.OutgoingAsync result = getOutgoingAsync(_findObjectById_name, cb);
        try
        {
            result.prepare(_findObjectById_name, Ice.OperationMode.Nonmutating, context, explicitCtx, synchronous);
            Ice.OutputStream ostr = result.startWriteParams(Ice.FormatType.DefaultFormat);
            Ice.Identity.ice_write(ostr, iceP_id);
            result.endWriteParams();
            result.invoke();
        }
        catch(Ice.Exception ex)
        {
            result.abort(ex);
        }
        return result;
    }

    public Ice.ObjectPrx end_findObjectById(Ice.AsyncResult iresult)
        throws Ice.ObjectNotFoundException
    {
        IceInternal.OutgoingAsync result_ = IceInternal.OutgoingAsync.check(iresult, this, _findObjectById_name);
        try
        {
            if(!result_.waitForResponseOrUserEx())
            {
                try
                {
                    result_.throwUserException();
                }
                catch(Ice.ObjectNotFoundException ex_)
                {
                    throw ex_;
                }
                catch(Ice.UserException ex_)
                {
                    throw new Ice.UnknownUserException(ex_.ice_id(), ex_);
                }
            }
            Ice.InputStream istr_ = result_.startReadParams();
            Ice.ObjectPrx ret_;
            ret_ = istr_.readProxy();
            result_.endReadParams();
            return ret_;
        }
        finally
        {
            if(result_ != null)
            {
                result_.cacheMessageBuffers();
            }
        }
    }

    static public void _iceI_findObjectById_completed(Ice.TwowayCallbackArg1UE cb, Ice.AsyncResult result)
    {
        Ice.LocatorPrx _proxy = (Ice.LocatorPrx)result.getProxy();
        Ice.ObjectPrx ret = null;
        try
        {
            ret = _proxy.end_findObjectById(result);
        }
        catch(Ice.UserException ex)
        {
            cb.exception(ex);
            return;
        }
        catch(Ice.LocalException ex)
        {
            cb.exception(ex);
            return;
        }
        catch(Ice.SystemException ex)
        {
            cb.exception(ex);
            return;
        }
        cb.response(ret);
    }

    private static final String _findAdapterById_name = "findAdapterById";

    public Ice.ObjectPrx findAdapterById(String id)
        throws Ice.AdapterNotFoundException
    {
        return _iceI_findAdapterById(id, null, false);
    }

    public Ice.ObjectPrx findAdapterById(String id, java.util.Map context)
        throws Ice.AdapterNotFoundException
    {
        return _iceI_findAdapterById(id, context, true);
    }

    private Ice.ObjectPrx _iceI_findAdapterById(String iceP_id, java.util.Map context, boolean explicitCtx)
        throws Ice.AdapterNotFoundException
    {
        _checkTwowayOnly(_findAdapterById_name);
        return end_findAdapterById(_iceI_begin_findAdapterById(iceP_id, context, explicitCtx, true, null));
    }

    public Ice.AsyncResult begin_findAdapterById(String id)
    {
        return _iceI_begin_findAdapterById(id, null, false, false, null);
    }

    public Ice.AsyncResult begin_findAdapterById(String id, java.util.Map context)
    {
        return _iceI_begin_findAdapterById(id, context, true, false, null);
    }

    public Ice.AsyncResult begin_findAdapterById(String id, Ice.Callback cb)
    {
        return _iceI_begin_findAdapterById(id, null, false, false, cb);
    }

    public Ice.AsyncResult begin_findAdapterById(String id, java.util.Map context, Ice.Callback cb)
    {
        return _iceI_begin_findAdapterById(id, context, true, false, cb);
    }

    public Ice.AsyncResult begin_findAdapterById(String id, Ice.Callback_Locator_findAdapterById cb)
    {
        return _iceI_begin_findAdapterById(id, null, false, false, cb);
    }

    public Ice.AsyncResult begin_findAdapterById(String id, java.util.Map context, Ice.Callback_Locator_findAdapterById cb)
    {
        return _iceI_begin_findAdapterById(id, context, true, false, cb);
    }

    public Ice.AsyncResult begin_findAdapterById(String id,
                                                 IceInternal.Functional_GenericCallback1 responseCb,
                                                 IceInternal.Functional_GenericCallback1 userExceptionCb,
                                                 IceInternal.Functional_GenericCallback1 exceptionCb)
    {
        return _iceI_begin_findAdapterById(id, null, false, false, responseCb, userExceptionCb, exceptionCb, null);
    }

    public Ice.AsyncResult begin_findAdapterById(String id,
                                                 IceInternal.Functional_GenericCallback1 responseCb,
                                                 IceInternal.Functional_GenericCallback1 userExceptionCb,
                                                 IceInternal.Functional_GenericCallback1 exceptionCb,
                                                 IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_findAdapterById(id, null, false, false, responseCb, userExceptionCb, exceptionCb, sentCb);
    }

    public Ice.AsyncResult begin_findAdapterById(String id,
                                                 java.util.Map context,
                                                 IceInternal.Functional_GenericCallback1 responseCb,
                                                 IceInternal.Functional_GenericCallback1 userExceptionCb,
                                                 IceInternal.Functional_GenericCallback1 exceptionCb)
    {
        return _iceI_begin_findAdapterById(id, context, true, false, responseCb, userExceptionCb, exceptionCb, null);
    }

    public Ice.AsyncResult begin_findAdapterById(String id,
                                                 java.util.Map context,
                                                 IceInternal.Functional_GenericCallback1 responseCb,
                                                 IceInternal.Functional_GenericCallback1 userExceptionCb,
                                                 IceInternal.Functional_GenericCallback1 exceptionCb,
                                                 IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_findAdapterById(id, context, true, false, responseCb, userExceptionCb, exceptionCb, sentCb);
    }

    private Ice.AsyncResult _iceI_begin_findAdapterById(String iceP_id,
                                                        java.util.Map context,
                                                        boolean explicitCtx,
                                                        boolean synchronous,
                                                        IceInternal.Functional_GenericCallback1 responseCb,
                                                        IceInternal.Functional_GenericCallback1 userExceptionCb,
                                                        IceInternal.Functional_GenericCallback1 exceptionCb,
                                                        IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_findAdapterById(iceP_id,
                                           context,
                                           explicitCtx,
                                           synchronous,
                                           new IceInternal.Functional_TwowayCallbackArg1UE(responseCb, userExceptionCb, exceptionCb, sentCb)
                                               {
                                                   public final void _iceCompleted(Ice.AsyncResult result)
                                                   {
                                                       LocatorPrxHelper._iceI_findAdapterById_completed(this, result);
                                                   }
                                               });
    }

    private Ice.AsyncResult _iceI_begin_findAdapterById(String iceP_id,
                                                        java.util.Map context,
                                                        boolean explicitCtx,
                                                        boolean synchronous,
                                                        IceInternal.CallbackBase cb)
    {
        _checkAsyncTwowayOnly(_findAdapterById_name);
        IceInternal.OutgoingAsync result = getOutgoingAsync(_findAdapterById_name, cb);
        try
        {
            result.prepare(_findAdapterById_name, Ice.OperationMode.Nonmutating, context, explicitCtx, synchronous);
            Ice.OutputStream ostr = result.startWriteParams(Ice.FormatType.DefaultFormat);
            ostr.writeString(iceP_id);
            result.endWriteParams();
            result.invoke();
        }
        catch(Ice.Exception ex)
        {
            result.abort(ex);
        }
        return result;
    }

    public Ice.ObjectPrx end_findAdapterById(Ice.AsyncResult iresult)
        throws Ice.AdapterNotFoundException
    {
        IceInternal.OutgoingAsync result_ = IceInternal.OutgoingAsync.check(iresult, this, _findAdapterById_name);
        try
        {
            if(!result_.waitForResponseOrUserEx())
            {
                try
                {
                    result_.throwUserException();
                }
                catch(Ice.AdapterNotFoundException ex_)
                {
                    throw ex_;
                }
                catch(Ice.UserException ex_)
                {
                    throw new Ice.UnknownUserException(ex_.ice_id(), ex_);
                }
            }
            Ice.InputStream istr_ = result_.startReadParams();
            Ice.ObjectPrx ret_;
            ret_ = istr_.readProxy();
            result_.endReadParams();
            return ret_;
        }
        finally
        {
            if(result_ != null)
            {
                result_.cacheMessageBuffers();
            }
        }
    }

    static public void _iceI_findAdapterById_completed(Ice.TwowayCallbackArg1UE cb, Ice.AsyncResult result)
    {
        Ice.LocatorPrx _proxy = (Ice.LocatorPrx)result.getProxy();
        Ice.ObjectPrx ret = null;
        try
        {
            ret = _proxy.end_findAdapterById(result);
        }
        catch(Ice.UserException ex)
        {
            cb.exception(ex);
            return;
        }
        catch(Ice.LocalException ex)
        {
            cb.exception(ex);
            return;
        }
        catch(Ice.SystemException ex)
        {
            cb.exception(ex);
            return;
        }
        cb.response(ret);
    }

    private static final String _getRegistry_name = "getRegistry";

    public Ice.LocatorRegistryPrx getRegistry()
    {
        return _iceI_getRegistry(null, false);
    }

    public Ice.LocatorRegistryPrx getRegistry(java.util.Map context)
    {
        return _iceI_getRegistry(context, true);
    }

    private Ice.LocatorRegistryPrx _iceI_getRegistry(java.util.Map context, boolean explicitCtx)
    {
        _checkTwowayOnly(_getRegistry_name);
        return end_getRegistry(_iceI_begin_getRegistry(context, explicitCtx, true, null));
    }

    public Ice.AsyncResult begin_getRegistry()
    {
        return _iceI_begin_getRegistry(null, false, false, null);
    }

    public Ice.AsyncResult begin_getRegistry(java.util.Map context)
    {
        return _iceI_begin_getRegistry(context, true, false, null);
    }

    public Ice.AsyncResult begin_getRegistry(Ice.Callback cb)
    {
        return _iceI_begin_getRegistry(null, false, false, cb);
    }

    public Ice.AsyncResult begin_getRegistry(java.util.Map context, Ice.Callback cb)
    {
        return _iceI_begin_getRegistry(context, true, false, cb);
    }

    public Ice.AsyncResult begin_getRegistry(Ice.Callback_Locator_getRegistry cb)
    {
        return _iceI_begin_getRegistry(null, false, false, cb);
    }

    public Ice.AsyncResult begin_getRegistry(java.util.Map context, Ice.Callback_Locator_getRegistry cb)
    {
        return _iceI_begin_getRegistry(context, true, false, cb);
    }

    public Ice.AsyncResult begin_getRegistry(IceInternal.Functional_GenericCallback1 responseCb,
                                             IceInternal.Functional_GenericCallback1 exceptionCb)
    {
        return _iceI_begin_getRegistry(null, false, false, responseCb, exceptionCb, null);
    }

    public Ice.AsyncResult begin_getRegistry(IceInternal.Functional_GenericCallback1 responseCb,
                                             IceInternal.Functional_GenericCallback1 exceptionCb,
                                             IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_getRegistry(null, false, false, responseCb, exceptionCb, sentCb);
    }

    public Ice.AsyncResult begin_getRegistry(java.util.Map context,
                                             IceInternal.Functional_GenericCallback1 responseCb,
                                             IceInternal.Functional_GenericCallback1 exceptionCb)
    {
        return _iceI_begin_getRegistry(context, true, false, responseCb, exceptionCb, null);
    }

    public Ice.AsyncResult begin_getRegistry(java.util.Map context,
                                             IceInternal.Functional_GenericCallback1 responseCb,
                                             IceInternal.Functional_GenericCallback1 exceptionCb,
                                             IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_getRegistry(context, true, false, responseCb, exceptionCb, sentCb);
    }

    private Ice.AsyncResult _iceI_begin_getRegistry(java.util.Map context,
                                                    boolean explicitCtx,
                                                    boolean synchronous,
                                                    IceInternal.Functional_GenericCallback1 responseCb,
                                                    IceInternal.Functional_GenericCallback1 exceptionCb,
                                                    IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_getRegistry(context,
                                       explicitCtx,
                                       synchronous,
                                       new IceInternal.Functional_TwowayCallbackArg1(responseCb, exceptionCb, sentCb)
                                           {
                                               public final void _iceCompleted(Ice.AsyncResult result)
                                               {
                                                   LocatorPrxHelper._iceI_getRegistry_completed(this, result);
                                               }
                                           });
    }

    private Ice.AsyncResult _iceI_begin_getRegistry(java.util.Map context,
                                                    boolean explicitCtx,
                                                    boolean synchronous,
                                                    IceInternal.CallbackBase cb)
    {
        _checkAsyncTwowayOnly(_getRegistry_name);
        IceInternal.OutgoingAsync result = getOutgoingAsync(_getRegistry_name, cb);
        try
        {
            result.prepare(_getRegistry_name, Ice.OperationMode.Nonmutating, context, explicitCtx, synchronous);
            result.writeEmptyParams();
            result.invoke();
        }
        catch(Ice.Exception ex)
        {
            result.abort(ex);
        }
        return result;
    }

    public Ice.LocatorRegistryPrx end_getRegistry(Ice.AsyncResult iresult)
    {
        IceInternal.OutgoingAsync result_ = IceInternal.OutgoingAsync.check(iresult, this, _getRegistry_name);
        try
        {
            if(!result_.waitForResponseOrUserEx())
            {
                try
                {
                    result_.throwUserException();
                }
                catch(Ice.UserException ex_)
                {
                    throw new Ice.UnknownUserException(ex_.ice_id(), ex_);
                }
            }
            Ice.InputStream istr_ = result_.startReadParams();
            Ice.LocatorRegistryPrx ret_;
            ret_ = Ice.LocatorRegistryPrxHelper.read(istr_);
            result_.endReadParams();
            return ret_;
        }
        finally
        {
            if(result_ != null)
            {
                result_.cacheMessageBuffers();
            }
        }
    }

    static public void _iceI_getRegistry_completed(Ice.TwowayCallbackArg1 cb, Ice.AsyncResult result)
    {
        Ice.LocatorPrx _proxy = (Ice.LocatorPrx)result.getProxy();
        Ice.LocatorRegistryPrx ret = null;
        try
        {
            ret = _proxy.end_getRegistry(result);
        }
        catch(Ice.LocalException ex)
        {
            cb.exception(ex);
            return;
        }
        catch(Ice.SystemException ex)
        {
            cb.exception(ex);
            return;
        }
        cb.response(ret);
    }

    private static final String _getLocalRegistry_name = "getLocalRegistry";

    public RegistryPrx getLocalRegistry()
    {
        return _iceI_getLocalRegistry(null, false);
    }

    public RegistryPrx getLocalRegistry(java.util.Map context)
    {
        return _iceI_getLocalRegistry(context, true);
    }

    private RegistryPrx _iceI_getLocalRegistry(java.util.Map context, boolean explicitCtx)
    {
        _checkTwowayOnly(_getLocalRegistry_name);
        return end_getLocalRegistry(_iceI_begin_getLocalRegistry(context, explicitCtx, true, null));
    }

    public Ice.AsyncResult begin_getLocalRegistry()
    {
        return _iceI_begin_getLocalRegistry(null, false, false, null);
    }

    public Ice.AsyncResult begin_getLocalRegistry(java.util.Map context)
    {
        return _iceI_begin_getLocalRegistry(context, true, false, null);
    }

    public Ice.AsyncResult begin_getLocalRegistry(Ice.Callback cb)
    {
        return _iceI_begin_getLocalRegistry(null, false, false, cb);
    }

    public Ice.AsyncResult begin_getLocalRegistry(java.util.Map context, Ice.Callback cb)
    {
        return _iceI_begin_getLocalRegistry(context, true, false, cb);
    }

    public Ice.AsyncResult begin_getLocalRegistry(Callback_Locator_getLocalRegistry cb)
    {
        return _iceI_begin_getLocalRegistry(null, false, false, cb);
    }

    public Ice.AsyncResult begin_getLocalRegistry(java.util.Map context, Callback_Locator_getLocalRegistry cb)
    {
        return _iceI_begin_getLocalRegistry(context, true, false, cb);
    }

    public Ice.AsyncResult begin_getLocalRegistry(IceInternal.Functional_GenericCallback1 responseCb,
                                                  IceInternal.Functional_GenericCallback1 exceptionCb)
    {
        return _iceI_begin_getLocalRegistry(null, false, false, responseCb, exceptionCb, null);
    }

    public Ice.AsyncResult begin_getLocalRegistry(IceInternal.Functional_GenericCallback1 responseCb,
                                                  IceInternal.Functional_GenericCallback1 exceptionCb,
                                                  IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_getLocalRegistry(null, false, false, responseCb, exceptionCb, sentCb);
    }

    public Ice.AsyncResult begin_getLocalRegistry(java.util.Map context,
                                                  IceInternal.Functional_GenericCallback1 responseCb,
                                                  IceInternal.Functional_GenericCallback1 exceptionCb)
    {
        return _iceI_begin_getLocalRegistry(context, true, false, responseCb, exceptionCb, null);
    }

    public Ice.AsyncResult begin_getLocalRegistry(java.util.Map context,
                                                  IceInternal.Functional_GenericCallback1 responseCb,
                                                  IceInternal.Functional_GenericCallback1 exceptionCb,
                                                  IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_getLocalRegistry(context, true, false, responseCb, exceptionCb, sentCb);
    }

    private Ice.AsyncResult _iceI_begin_getLocalRegistry(java.util.Map context,
                                                         boolean explicitCtx,
                                                         boolean synchronous,
                                                         IceInternal.Functional_GenericCallback1 responseCb,
                                                         IceInternal.Functional_GenericCallback1 exceptionCb,
                                                         IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_getLocalRegistry(context,
                                            explicitCtx,
                                            synchronous,
                                            new IceInternal.Functional_TwowayCallbackArg1(responseCb, exceptionCb, sentCb)
                                                {
                                                    public final void _iceCompleted(Ice.AsyncResult result)
                                                    {
                                                        LocatorPrxHelper._iceI_getLocalRegistry_completed(this, result);
                                                    }
                                                });
    }

    private Ice.AsyncResult _iceI_begin_getLocalRegistry(java.util.Map context,
                                                         boolean explicitCtx,
                                                         boolean synchronous,
                                                         IceInternal.CallbackBase cb)
    {
        _checkAsyncTwowayOnly(_getLocalRegistry_name);
        IceInternal.OutgoingAsync result = getOutgoingAsync(_getLocalRegistry_name, cb);
        try
        {
            result.prepare(_getLocalRegistry_name, Ice.OperationMode.Idempotent, context, explicitCtx, synchronous);
            result.writeEmptyParams();
            result.invoke();
        }
        catch(Ice.Exception ex)
        {
            result.abort(ex);
        }
        return result;
    }

    public RegistryPrx end_getLocalRegistry(Ice.AsyncResult iresult)
    {
        IceInternal.OutgoingAsync result_ = IceInternal.OutgoingAsync.check(iresult, this, _getLocalRegistry_name);
        try
        {
            if(!result_.waitForResponseOrUserEx())
            {
                try
                {
                    result_.throwUserException();
                }
                catch(Ice.UserException ex_)
                {
                    throw new Ice.UnknownUserException(ex_.ice_id(), ex_);
                }
            }
            Ice.InputStream istr_ = result_.startReadParams();
            RegistryPrx ret_;
            ret_ = RegistryPrxHelper.read(istr_);
            result_.endReadParams();
            return ret_;
        }
        finally
        {
            if(result_ != null)
            {
                result_.cacheMessageBuffers();
            }
        }
    }

    static public void _iceI_getLocalRegistry_completed(Ice.TwowayCallbackArg1 cb, Ice.AsyncResult result)
    {
        IceGrid.LocatorPrx _proxy = (IceGrid.LocatorPrx)result.getProxy();
        RegistryPrx ret = null;
        try
        {
            ret = _proxy.end_getLocalRegistry(result);
        }
        catch(Ice.LocalException ex)
        {
            cb.exception(ex);
            return;
        }
        catch(Ice.SystemException ex)
        {
            cb.exception(ex);
            return;
        }
        cb.response(ret);
    }

    private static final String _getLocalQuery_name = "getLocalQuery";

    public QueryPrx getLocalQuery()
    {
        return _iceI_getLocalQuery(null, false);
    }

    public QueryPrx getLocalQuery(java.util.Map context)
    {
        return _iceI_getLocalQuery(context, true);
    }

    private QueryPrx _iceI_getLocalQuery(java.util.Map context, boolean explicitCtx)
    {
        _checkTwowayOnly(_getLocalQuery_name);
        return end_getLocalQuery(_iceI_begin_getLocalQuery(context, explicitCtx, true, null));
    }

    public Ice.AsyncResult begin_getLocalQuery()
    {
        return _iceI_begin_getLocalQuery(null, false, false, null);
    }

    public Ice.AsyncResult begin_getLocalQuery(java.util.Map context)
    {
        return _iceI_begin_getLocalQuery(context, true, false, null);
    }

    public Ice.AsyncResult begin_getLocalQuery(Ice.Callback cb)
    {
        return _iceI_begin_getLocalQuery(null, false, false, cb);
    }

    public Ice.AsyncResult begin_getLocalQuery(java.util.Map context, Ice.Callback cb)
    {
        return _iceI_begin_getLocalQuery(context, true, false, cb);
    }

    public Ice.AsyncResult begin_getLocalQuery(Callback_Locator_getLocalQuery cb)
    {
        return _iceI_begin_getLocalQuery(null, false, false, cb);
    }

    public Ice.AsyncResult begin_getLocalQuery(java.util.Map context, Callback_Locator_getLocalQuery cb)
    {
        return _iceI_begin_getLocalQuery(context, true, false, cb);
    }

    public Ice.AsyncResult begin_getLocalQuery(IceInternal.Functional_GenericCallback1 responseCb,
                                               IceInternal.Functional_GenericCallback1 exceptionCb)
    {
        return _iceI_begin_getLocalQuery(null, false, false, responseCb, exceptionCb, null);
    }

    public Ice.AsyncResult begin_getLocalQuery(IceInternal.Functional_GenericCallback1 responseCb,
                                               IceInternal.Functional_GenericCallback1 exceptionCb,
                                               IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_getLocalQuery(null, false, false, responseCb, exceptionCb, sentCb);
    }

    public Ice.AsyncResult begin_getLocalQuery(java.util.Map context,
                                               IceInternal.Functional_GenericCallback1 responseCb,
                                               IceInternal.Functional_GenericCallback1 exceptionCb)
    {
        return _iceI_begin_getLocalQuery(context, true, false, responseCb, exceptionCb, null);
    }

    public Ice.AsyncResult begin_getLocalQuery(java.util.Map context,
                                               IceInternal.Functional_GenericCallback1 responseCb,
                                               IceInternal.Functional_GenericCallback1 exceptionCb,
                                               IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_getLocalQuery(context, true, false, responseCb, exceptionCb, sentCb);
    }

    private Ice.AsyncResult _iceI_begin_getLocalQuery(java.util.Map context,
                                                      boolean explicitCtx,
                                                      boolean synchronous,
                                                      IceInternal.Functional_GenericCallback1 responseCb,
                                                      IceInternal.Functional_GenericCallback1 exceptionCb,
                                                      IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_getLocalQuery(context,
                                         explicitCtx,
                                         synchronous,
                                         new IceInternal.Functional_TwowayCallbackArg1(responseCb, exceptionCb, sentCb)
                                             {
                                                 public final void _iceCompleted(Ice.AsyncResult result)
                                                 {
                                                     LocatorPrxHelper._iceI_getLocalQuery_completed(this, result);
                                                 }
                                             });
    }

    private Ice.AsyncResult _iceI_begin_getLocalQuery(java.util.Map context,
                                                      boolean explicitCtx,
                                                      boolean synchronous,
                                                      IceInternal.CallbackBase cb)
    {
        _checkAsyncTwowayOnly(_getLocalQuery_name);
        IceInternal.OutgoingAsync result = getOutgoingAsync(_getLocalQuery_name, cb);
        try
        {
            result.prepare(_getLocalQuery_name, Ice.OperationMode.Idempotent, context, explicitCtx, synchronous);
            result.writeEmptyParams();
            result.invoke();
        }
        catch(Ice.Exception ex)
        {
            result.abort(ex);
        }
        return result;
    }

    public QueryPrx end_getLocalQuery(Ice.AsyncResult iresult)
    {
        IceInternal.OutgoingAsync result_ = IceInternal.OutgoingAsync.check(iresult, this, _getLocalQuery_name);
        try
        {
            if(!result_.waitForResponseOrUserEx())
            {
                try
                {
                    result_.throwUserException();
                }
                catch(Ice.UserException ex_)
                {
                    throw new Ice.UnknownUserException(ex_.ice_id(), ex_);
                }
            }
            Ice.InputStream istr_ = result_.startReadParams();
            QueryPrx ret_;
            ret_ = QueryPrxHelper.read(istr_);
            result_.endReadParams();
            return ret_;
        }
        finally
        {
            if(result_ != null)
            {
                result_.cacheMessageBuffers();
            }
        }
    }

    static public void _iceI_getLocalQuery_completed(Ice.TwowayCallbackArg1 cb, Ice.AsyncResult result)
    {
        IceGrid.LocatorPrx _proxy = (IceGrid.LocatorPrx)result.getProxy();
        QueryPrx ret = null;
        try
        {
            ret = _proxy.end_getLocalQuery(result);
        }
        catch(Ice.LocalException ex)
        {
            cb.exception(ex);
            return;
        }
        catch(Ice.SystemException ex)
        {
            cb.exception(ex);
            return;
        }
        cb.response(ret);
    }

    /**
     * Contacts the remote server to verify that the object implements this type.
     * Raises a local exception if a communication error occurs.
     * @param obj The untyped proxy.
     * @return A proxy for this type, or null if the object does not support this type.
     **/
    public static LocatorPrx checkedCast(Ice.ObjectPrx obj)
    {
        return checkedCastImpl(obj, ice_staticId(), LocatorPrx.class, LocatorPrxHelper.class);
    }

    /**
     * Contacts the remote server to verify that the object implements this type.
     * Raises a local exception if a communication error occurs.
     * @param obj The untyped proxy.
     * @param context The Context map to send with the invocation.
     * @return A proxy for this type, or null if the object does not support this type.
     **/
    public static LocatorPrx checkedCast(Ice.ObjectPrx obj, java.util.Map context)
    {
        return checkedCastImpl(obj, context, ice_staticId(), LocatorPrx.class, LocatorPrxHelper.class);
    }

    /**
     * Contacts the remote server to verify that a facet of the object implements this type.
     * Raises a local exception if a communication error occurs.
     * @param obj The untyped proxy.
     * @param facet The name of the desired facet.
     * @return A proxy for this type, or null if the object does not support this type.
     **/
    public static LocatorPrx checkedCast(Ice.ObjectPrx obj, String facet)
    {
        return checkedCastImpl(obj, facet, ice_staticId(), LocatorPrx.class, LocatorPrxHelper.class);
    }

    /**
     * Contacts the remote server to verify that a facet of the object implements this type.
     * Raises a local exception if a communication error occurs.
     * @param obj The untyped proxy.
     * @param facet The name of the desired facet.
     * @param context The Context map to send with the invocation.
     * @return A proxy for this type, or null if the object does not support this type.
     **/
    public static LocatorPrx checkedCast(Ice.ObjectPrx obj, String facet, java.util.Map context)
    {
        return checkedCastImpl(obj, facet, context, ice_staticId(), LocatorPrx.class, LocatorPrxHelper.class);
    }

    /**
     * Downcasts the given proxy to this type without contacting the remote server.
     * @param obj The untyped proxy.
     * @return A proxy for this type.
     **/
    public static LocatorPrx uncheckedCast(Ice.ObjectPrx obj)
    {
        return uncheckedCastImpl(obj, LocatorPrx.class, LocatorPrxHelper.class);
    }

    /**
     * Downcasts the given proxy to this type without contacting the remote server.
     * @param obj The untyped proxy.
     * @param facet The name of the desired facet.
     * @return A proxy for this type.
     **/
    public static LocatorPrx uncheckedCast(Ice.ObjectPrx obj, String facet)
    {
        return uncheckedCastImpl(obj, facet, LocatorPrx.class, LocatorPrxHelper.class);
    }

    private static final String[] _ids =
    {
        "::Ice::Locator",
        "::Ice::Object",
        "::IceGrid::Locator"
    };

    /**
     * Provides the Slice type ID of this type.
     * @return The Slice type ID.
     **/
    public static String ice_staticId()
    {
        return _ids[2];
    }

    public static void write(Ice.OutputStream ostr, LocatorPrx v)
    {
        ostr.writeProxy(v);
    }

    public static LocatorPrx read(Ice.InputStream istr)
    {
        Ice.ObjectPrx proxy = istr.readProxy();
        if(proxy != null)
        {
            LocatorPrxHelper result = new LocatorPrxHelper();
            result._copyFrom(proxy);
            return result;
        }
        return null;
    }

    public static final long serialVersionUID = 0L;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy