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

Ice.LocatorRegistryPrxHelper Maven / Gradle / Ivy

Go to download

Ice is a comprehensive RPC framework that helps you build distributed applications with minimal effort using familiar object-oriented idioms

The newest version!
//
// Copyright (c) ZeroC, Inc. All rights reserved.
//
//
// Ice version 3.7.10
//
// 
//
// Generated from file `Locator.ice'
//
// Warning: do not edit this file.
//
// 
//

package Ice;

/**
 * Provides type-specific helper functions.
 **/
public final class LocatorRegistryPrxHelper extends ObjectPrxHelperBase implements LocatorRegistryPrx
{
    private static final String _setAdapterDirectProxy_name = "setAdapterDirectProxy";

    public void setAdapterDirectProxy(String id, Ice.ObjectPrx proxy)
        throws AdapterAlreadyActiveException,
               AdapterNotFoundException
    {
        _iceI_setAdapterDirectProxy(id, proxy, null, false);
    }

    public void setAdapterDirectProxy(String id, Ice.ObjectPrx proxy, java.util.Map context)
        throws AdapterAlreadyActiveException,
               AdapterNotFoundException
    {
        _iceI_setAdapterDirectProxy(id, proxy, context, true);
    }

    private void _iceI_setAdapterDirectProxy(String iceP_id, Ice.ObjectPrx iceP_proxy, java.util.Map context, boolean explicitCtx)
        throws AdapterAlreadyActiveException,
               AdapterNotFoundException
    {
        _checkTwowayOnly(_setAdapterDirectProxy_name);
        end_setAdapterDirectProxy(_iceI_begin_setAdapterDirectProxy(iceP_id, iceP_proxy, context, explicitCtx, true, null));
    }

    public AsyncResult begin_setAdapterDirectProxy(String id, Ice.ObjectPrx proxy)
    {
        return _iceI_begin_setAdapterDirectProxy(id, proxy, null, false, false, null);
    }

    public AsyncResult begin_setAdapterDirectProxy(String id, Ice.ObjectPrx proxy, java.util.Map context)
    {
        return _iceI_begin_setAdapterDirectProxy(id, proxy, context, true, false, null);
    }

    public AsyncResult begin_setAdapterDirectProxy(String id, Ice.ObjectPrx proxy, Callback cb)
    {
        return _iceI_begin_setAdapterDirectProxy(id, proxy, null, false, false, cb);
    }

    public AsyncResult begin_setAdapterDirectProxy(String id, Ice.ObjectPrx proxy, java.util.Map context, Callback cb)
    {
        return _iceI_begin_setAdapterDirectProxy(id, proxy, context, true, false, cb);
    }

    public AsyncResult begin_setAdapterDirectProxy(String id, Ice.ObjectPrx proxy, Callback_LocatorRegistry_setAdapterDirectProxy cb)
    {
        return _iceI_begin_setAdapterDirectProxy(id, proxy, null, false, false, cb);
    }

    public AsyncResult begin_setAdapterDirectProxy(String id, Ice.ObjectPrx proxy, java.util.Map context, Callback_LocatorRegistry_setAdapterDirectProxy cb)
    {
        return _iceI_begin_setAdapterDirectProxy(id, proxy, context, true, false, cb);
    }

    public AsyncResult begin_setAdapterDirectProxy(String id,
                                                   Ice.ObjectPrx proxy,
                                                   IceInternal.Functional_VoidCallback responseCb,
                                                   IceInternal.Functional_GenericCallback1 userExceptionCb,
                                                   IceInternal.Functional_GenericCallback1 exceptionCb)
    {
        return _iceI_begin_setAdapterDirectProxy(id, proxy, null, false, false, responseCb, userExceptionCb, exceptionCb, null);
    }

    public AsyncResult begin_setAdapterDirectProxy(String id,
                                                   Ice.ObjectPrx proxy,
                                                   IceInternal.Functional_VoidCallback responseCb,
                                                   IceInternal.Functional_GenericCallback1 userExceptionCb,
                                                   IceInternal.Functional_GenericCallback1 exceptionCb,
                                                   IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_setAdapterDirectProxy(id, proxy, null, false, false, responseCb, userExceptionCb, exceptionCb, sentCb);
    }

    public AsyncResult begin_setAdapterDirectProxy(String id,
                                                   Ice.ObjectPrx proxy,
                                                   java.util.Map context,
                                                   IceInternal.Functional_VoidCallback responseCb,
                                                   IceInternal.Functional_GenericCallback1 userExceptionCb,
                                                   IceInternal.Functional_GenericCallback1 exceptionCb)
    {
        return _iceI_begin_setAdapterDirectProxy(id, proxy, context, true, false, responseCb, userExceptionCb, exceptionCb, null);
    }

    public AsyncResult begin_setAdapterDirectProxy(String id,
                                                   Ice.ObjectPrx proxy,
                                                   java.util.Map context,
                                                   IceInternal.Functional_VoidCallback responseCb,
                                                   IceInternal.Functional_GenericCallback1 userExceptionCb,
                                                   IceInternal.Functional_GenericCallback1 exceptionCb,
                                                   IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_setAdapterDirectProxy(id, proxy, context, true, false, responseCb, userExceptionCb, exceptionCb, sentCb);
    }

    private AsyncResult _iceI_begin_setAdapterDirectProxy(String iceP_id,
                                                          Ice.ObjectPrx iceP_proxy,
                                                          java.util.Map context,
                                                          boolean explicitCtx,
                                                          boolean synchronous,
                                                          IceInternal.Functional_VoidCallback responseCb,
                                                          IceInternal.Functional_GenericCallback1 userExceptionCb,
                                                          IceInternal.Functional_GenericCallback1 exceptionCb,
                                                          IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_setAdapterDirectProxy(iceP_id,
                                                 iceP_proxy,
                                                 context,
                                                 explicitCtx,
                                                 synchronous,
                                                 new IceInternal.Functional_TwowayCallbackVoidUE(responseCb, userExceptionCb, exceptionCb, sentCb)
                                                     {
                                                         public final void _iceCompleted(AsyncResult result)
                                                         {
                                                             LocatorRegistryPrxHelper._iceI_setAdapterDirectProxy_completed(this, result);
                                                         }
                                                     });
    }

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

    public void end_setAdapterDirectProxy(AsyncResult iresult)
        throws AdapterAlreadyActiveException,
               AdapterNotFoundException
    {
        IceInternal.OutgoingAsync result_ = IceInternal.OutgoingAsync.check(iresult, this, _setAdapterDirectProxy_name);
        try
        {
            if(!result_.waitForResponseOrUserEx())
            {
                try
                {
                    result_.throwUserException();
                }
                catch(AdapterAlreadyActiveException ex_)
                {
                    throw ex_;
                }
                catch(AdapterNotFoundException ex_)
                {
                    throw ex_;
                }
                catch(UserException ex_)
                {
                    throw new UnknownUserException(ex_.ice_id(), ex_);
                }
            }
            result_.readEmptyParams();
        }
        finally
        {
            if(result_ != null)
            {
                result_.cacheMessageBuffers();
            }
        }
    }

    static public void _iceI_setAdapterDirectProxy_completed(TwowayCallbackVoidUE cb, Ice.AsyncResult result)
    {
        Ice.LocatorRegistryPrx _proxy = (Ice.LocatorRegistryPrx)result.getProxy();
        try
        {
            _proxy.end_setAdapterDirectProxy(result);
        }
        catch(UserException ex)
        {
            cb.exception(ex);
            return;
        }
        catch(LocalException ex)
        {
            cb.exception(ex);
            return;
        }
        catch(SystemException ex)
        {
            cb.exception(ex);
            return;
        }
        cb.response();
    }

    private static final String _setReplicatedAdapterDirectProxy_name = "setReplicatedAdapterDirectProxy";

    public void setReplicatedAdapterDirectProxy(String adapterId, String replicaGroupId, Ice.ObjectPrx p)
        throws AdapterAlreadyActiveException,
               AdapterNotFoundException,
               InvalidReplicaGroupIdException
    {
        _iceI_setReplicatedAdapterDirectProxy(adapterId, replicaGroupId, p, null, false);
    }

    public void setReplicatedAdapterDirectProxy(String adapterId, String replicaGroupId, Ice.ObjectPrx p, java.util.Map context)
        throws AdapterAlreadyActiveException,
               AdapterNotFoundException,
               InvalidReplicaGroupIdException
    {
        _iceI_setReplicatedAdapterDirectProxy(adapterId, replicaGroupId, p, context, true);
    }

    private void _iceI_setReplicatedAdapterDirectProxy(String iceP_adapterId, String iceP_replicaGroupId, Ice.ObjectPrx iceP_p, java.util.Map context, boolean explicitCtx)
        throws AdapterAlreadyActiveException,
               AdapterNotFoundException,
               InvalidReplicaGroupIdException
    {
        _checkTwowayOnly(_setReplicatedAdapterDirectProxy_name);
        end_setReplicatedAdapterDirectProxy(_iceI_begin_setReplicatedAdapterDirectProxy(iceP_adapterId, iceP_replicaGroupId, iceP_p, context, explicitCtx, true, null));
    }

    public AsyncResult begin_setReplicatedAdapterDirectProxy(String adapterId, String replicaGroupId, Ice.ObjectPrx p)
    {
        return _iceI_begin_setReplicatedAdapterDirectProxy(adapterId, replicaGroupId, p, null, false, false, null);
    }

    public AsyncResult begin_setReplicatedAdapterDirectProxy(String adapterId, String replicaGroupId, Ice.ObjectPrx p, java.util.Map context)
    {
        return _iceI_begin_setReplicatedAdapterDirectProxy(adapterId, replicaGroupId, p, context, true, false, null);
    }

    public AsyncResult begin_setReplicatedAdapterDirectProxy(String adapterId, String replicaGroupId, Ice.ObjectPrx p, Callback cb)
    {
        return _iceI_begin_setReplicatedAdapterDirectProxy(adapterId, replicaGroupId, p, null, false, false, cb);
    }

    public AsyncResult begin_setReplicatedAdapterDirectProxy(String adapterId, String replicaGroupId, Ice.ObjectPrx p, java.util.Map context, Callback cb)
    {
        return _iceI_begin_setReplicatedAdapterDirectProxy(adapterId, replicaGroupId, p, context, true, false, cb);
    }

    public AsyncResult begin_setReplicatedAdapterDirectProxy(String adapterId, String replicaGroupId, Ice.ObjectPrx p, Callback_LocatorRegistry_setReplicatedAdapterDirectProxy cb)
    {
        return _iceI_begin_setReplicatedAdapterDirectProxy(adapterId, replicaGroupId, p, null, false, false, cb);
    }

    public AsyncResult begin_setReplicatedAdapterDirectProxy(String adapterId, String replicaGroupId, Ice.ObjectPrx p, java.util.Map context, Callback_LocatorRegistry_setReplicatedAdapterDirectProxy cb)
    {
        return _iceI_begin_setReplicatedAdapterDirectProxy(adapterId, replicaGroupId, p, context, true, false, cb);
    }

    public AsyncResult begin_setReplicatedAdapterDirectProxy(String adapterId,
                                                             String replicaGroupId,
                                                             Ice.ObjectPrx p,
                                                             IceInternal.Functional_VoidCallback responseCb,
                                                             IceInternal.Functional_GenericCallback1 userExceptionCb,
                                                             IceInternal.Functional_GenericCallback1 exceptionCb)
    {
        return _iceI_begin_setReplicatedAdapterDirectProxy(adapterId, replicaGroupId, p, null, false, false, responseCb, userExceptionCb, exceptionCb, null);
    }

    public AsyncResult begin_setReplicatedAdapterDirectProxy(String adapterId,
                                                             String replicaGroupId,
                                                             Ice.ObjectPrx p,
                                                             IceInternal.Functional_VoidCallback responseCb,
                                                             IceInternal.Functional_GenericCallback1 userExceptionCb,
                                                             IceInternal.Functional_GenericCallback1 exceptionCb,
                                                             IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_setReplicatedAdapterDirectProxy(adapterId, replicaGroupId, p, null, false, false, responseCb, userExceptionCb, exceptionCb, sentCb);
    }

    public AsyncResult begin_setReplicatedAdapterDirectProxy(String adapterId,
                                                             String replicaGroupId,
                                                             Ice.ObjectPrx p,
                                                             java.util.Map context,
                                                             IceInternal.Functional_VoidCallback responseCb,
                                                             IceInternal.Functional_GenericCallback1 userExceptionCb,
                                                             IceInternal.Functional_GenericCallback1 exceptionCb)
    {
        return _iceI_begin_setReplicatedAdapterDirectProxy(adapterId, replicaGroupId, p, context, true, false, responseCb, userExceptionCb, exceptionCb, null);
    }

    public AsyncResult begin_setReplicatedAdapterDirectProxy(String adapterId,
                                                             String replicaGroupId,
                                                             Ice.ObjectPrx p,
                                                             java.util.Map context,
                                                             IceInternal.Functional_VoidCallback responseCb,
                                                             IceInternal.Functional_GenericCallback1 userExceptionCb,
                                                             IceInternal.Functional_GenericCallback1 exceptionCb,
                                                             IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_setReplicatedAdapterDirectProxy(adapterId, replicaGroupId, p, context, true, false, responseCb, userExceptionCb, exceptionCb, sentCb);
    }

    private AsyncResult _iceI_begin_setReplicatedAdapterDirectProxy(String iceP_adapterId,
                                                                    String iceP_replicaGroupId,
                                                                    Ice.ObjectPrx iceP_p,
                                                                    java.util.Map context,
                                                                    boolean explicitCtx,
                                                                    boolean synchronous,
                                                                    IceInternal.Functional_VoidCallback responseCb,
                                                                    IceInternal.Functional_GenericCallback1 userExceptionCb,
                                                                    IceInternal.Functional_GenericCallback1 exceptionCb,
                                                                    IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_setReplicatedAdapterDirectProxy(iceP_adapterId,
                                                           iceP_replicaGroupId,
                                                           iceP_p,
                                                           context,
                                                           explicitCtx,
                                                           synchronous,
                                                           new IceInternal.Functional_TwowayCallbackVoidUE(responseCb, userExceptionCb, exceptionCb, sentCb)
                                                               {
                                                                   public final void _iceCompleted(AsyncResult result)
                                                                   {
                                                                       LocatorRegistryPrxHelper._iceI_setReplicatedAdapterDirectProxy_completed(this, result);
                                                                   }
                                                               });
    }

    private AsyncResult _iceI_begin_setReplicatedAdapterDirectProxy(String iceP_adapterId,
                                                                    String iceP_replicaGroupId,
                                                                    Ice.ObjectPrx iceP_p,
                                                                    java.util.Map context,
                                                                    boolean explicitCtx,
                                                                    boolean synchronous,
                                                                    IceInternal.CallbackBase cb)
    {
        _checkAsyncTwowayOnly(_setReplicatedAdapterDirectProxy_name);
        IceInternal.OutgoingAsync result = getOutgoingAsync(_setReplicatedAdapterDirectProxy_name, cb);
        try
        {
            result.prepare(_setReplicatedAdapterDirectProxy_name, Ice.OperationMode.Idempotent, context, explicitCtx, synchronous);
            OutputStream ostr = result.startWriteParams(Ice.FormatType.DefaultFormat);
            ostr.writeString(iceP_adapterId);
            ostr.writeString(iceP_replicaGroupId);
            ostr.writeProxy(iceP_p);
            result.endWriteParams();
            result.invoke();
        }
        catch(Exception ex)
        {
            result.abort(ex);
        }
        return result;
    }

    public void end_setReplicatedAdapterDirectProxy(AsyncResult iresult)
        throws AdapterAlreadyActiveException,
               AdapterNotFoundException,
               InvalidReplicaGroupIdException
    {
        IceInternal.OutgoingAsync result_ = IceInternal.OutgoingAsync.check(iresult, this, _setReplicatedAdapterDirectProxy_name);
        try
        {
            if(!result_.waitForResponseOrUserEx())
            {
                try
                {
                    result_.throwUserException();
                }
                catch(AdapterAlreadyActiveException ex_)
                {
                    throw ex_;
                }
                catch(AdapterNotFoundException ex_)
                {
                    throw ex_;
                }
                catch(InvalidReplicaGroupIdException ex_)
                {
                    throw ex_;
                }
                catch(UserException ex_)
                {
                    throw new UnknownUserException(ex_.ice_id(), ex_);
                }
            }
            result_.readEmptyParams();
        }
        finally
        {
            if(result_ != null)
            {
                result_.cacheMessageBuffers();
            }
        }
    }

    static public void _iceI_setReplicatedAdapterDirectProxy_completed(TwowayCallbackVoidUE cb, Ice.AsyncResult result)
    {
        Ice.LocatorRegistryPrx _proxy = (Ice.LocatorRegistryPrx)result.getProxy();
        try
        {
            _proxy.end_setReplicatedAdapterDirectProxy(result);
        }
        catch(UserException ex)
        {
            cb.exception(ex);
            return;
        }
        catch(LocalException ex)
        {
            cb.exception(ex);
            return;
        }
        catch(SystemException ex)
        {
            cb.exception(ex);
            return;
        }
        cb.response();
    }

    private static final String _setServerProcessProxy_name = "setServerProcessProxy";

    public void setServerProcessProxy(String id, ProcessPrx proxy)
        throws ServerNotFoundException
    {
        _iceI_setServerProcessProxy(id, proxy, null, false);
    }

    public void setServerProcessProxy(String id, ProcessPrx proxy, java.util.Map context)
        throws ServerNotFoundException
    {
        _iceI_setServerProcessProxy(id, proxy, context, true);
    }

    private void _iceI_setServerProcessProxy(String iceP_id, ProcessPrx iceP_proxy, java.util.Map context, boolean explicitCtx)
        throws ServerNotFoundException
    {
        _checkTwowayOnly(_setServerProcessProxy_name);
        end_setServerProcessProxy(_iceI_begin_setServerProcessProxy(iceP_id, iceP_proxy, context, explicitCtx, true, null));
    }

    public AsyncResult begin_setServerProcessProxy(String id, ProcessPrx proxy)
    {
        return _iceI_begin_setServerProcessProxy(id, proxy, null, false, false, null);
    }

    public AsyncResult begin_setServerProcessProxy(String id, ProcessPrx proxy, java.util.Map context)
    {
        return _iceI_begin_setServerProcessProxy(id, proxy, context, true, false, null);
    }

    public AsyncResult begin_setServerProcessProxy(String id, ProcessPrx proxy, Callback cb)
    {
        return _iceI_begin_setServerProcessProxy(id, proxy, null, false, false, cb);
    }

    public AsyncResult begin_setServerProcessProxy(String id, ProcessPrx proxy, java.util.Map context, Callback cb)
    {
        return _iceI_begin_setServerProcessProxy(id, proxy, context, true, false, cb);
    }

    public AsyncResult begin_setServerProcessProxy(String id, ProcessPrx proxy, Callback_LocatorRegistry_setServerProcessProxy cb)
    {
        return _iceI_begin_setServerProcessProxy(id, proxy, null, false, false, cb);
    }

    public AsyncResult begin_setServerProcessProxy(String id, ProcessPrx proxy, java.util.Map context, Callback_LocatorRegistry_setServerProcessProxy cb)
    {
        return _iceI_begin_setServerProcessProxy(id, proxy, context, true, false, cb);
    }

    public AsyncResult begin_setServerProcessProxy(String id,
                                                   ProcessPrx proxy,
                                                   IceInternal.Functional_VoidCallback responseCb,
                                                   IceInternal.Functional_GenericCallback1 userExceptionCb,
                                                   IceInternal.Functional_GenericCallback1 exceptionCb)
    {
        return _iceI_begin_setServerProcessProxy(id, proxy, null, false, false, responseCb, userExceptionCb, exceptionCb, null);
    }

    public AsyncResult begin_setServerProcessProxy(String id,
                                                   ProcessPrx proxy,
                                                   IceInternal.Functional_VoidCallback responseCb,
                                                   IceInternal.Functional_GenericCallback1 userExceptionCb,
                                                   IceInternal.Functional_GenericCallback1 exceptionCb,
                                                   IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_setServerProcessProxy(id, proxy, null, false, false, responseCb, userExceptionCb, exceptionCb, sentCb);
    }

    public AsyncResult begin_setServerProcessProxy(String id,
                                                   ProcessPrx proxy,
                                                   java.util.Map context,
                                                   IceInternal.Functional_VoidCallback responseCb,
                                                   IceInternal.Functional_GenericCallback1 userExceptionCb,
                                                   IceInternal.Functional_GenericCallback1 exceptionCb)
    {
        return _iceI_begin_setServerProcessProxy(id, proxy, context, true, false, responseCb, userExceptionCb, exceptionCb, null);
    }

    public AsyncResult begin_setServerProcessProxy(String id,
                                                   ProcessPrx proxy,
                                                   java.util.Map context,
                                                   IceInternal.Functional_VoidCallback responseCb,
                                                   IceInternal.Functional_GenericCallback1 userExceptionCb,
                                                   IceInternal.Functional_GenericCallback1 exceptionCb,
                                                   IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_setServerProcessProxy(id, proxy, context, true, false, responseCb, userExceptionCb, exceptionCb, sentCb);
    }

    private AsyncResult _iceI_begin_setServerProcessProxy(String iceP_id,
                                                          ProcessPrx iceP_proxy,
                                                          java.util.Map context,
                                                          boolean explicitCtx,
                                                          boolean synchronous,
                                                          IceInternal.Functional_VoidCallback responseCb,
                                                          IceInternal.Functional_GenericCallback1 userExceptionCb,
                                                          IceInternal.Functional_GenericCallback1 exceptionCb,
                                                          IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_setServerProcessProxy(iceP_id,
                                                 iceP_proxy,
                                                 context,
                                                 explicitCtx,
                                                 synchronous,
                                                 new IceInternal.Functional_TwowayCallbackVoidUE(responseCb, userExceptionCb, exceptionCb, sentCb)
                                                     {
                                                         public final void _iceCompleted(AsyncResult result)
                                                         {
                                                             LocatorRegistryPrxHelper._iceI_setServerProcessProxy_completed(this, result);
                                                         }
                                                     });
    }

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

    public void end_setServerProcessProxy(AsyncResult iresult)
        throws ServerNotFoundException
    {
        IceInternal.OutgoingAsync result_ = IceInternal.OutgoingAsync.check(iresult, this, _setServerProcessProxy_name);
        try
        {
            if(!result_.waitForResponseOrUserEx())
            {
                try
                {
                    result_.throwUserException();
                }
                catch(ServerNotFoundException ex_)
                {
                    throw ex_;
                }
                catch(UserException ex_)
                {
                    throw new UnknownUserException(ex_.ice_id(), ex_);
                }
            }
            result_.readEmptyParams();
        }
        finally
        {
            if(result_ != null)
            {
                result_.cacheMessageBuffers();
            }
        }
    }

    static public void _iceI_setServerProcessProxy_completed(TwowayCallbackVoidUE cb, Ice.AsyncResult result)
    {
        Ice.LocatorRegistryPrx _proxy = (Ice.LocatorRegistryPrx)result.getProxy();
        try
        {
            _proxy.end_setServerProcessProxy(result);
        }
        catch(UserException ex)
        {
            cb.exception(ex);
            return;
        }
        catch(LocalException ex)
        {
            cb.exception(ex);
            return;
        }
        catch(SystemException ex)
        {
            cb.exception(ex);
            return;
        }
        cb.response();
    }

    /**
     * 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 LocatorRegistryPrx checkedCast(ObjectPrx obj)
    {
        return checkedCastImpl(obj, ice_staticId(), LocatorRegistryPrx.class, LocatorRegistryPrxHelper.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 LocatorRegistryPrx checkedCast(ObjectPrx obj, java.util.Map context)
    {
        return checkedCastImpl(obj, context, ice_staticId(), LocatorRegistryPrx.class, LocatorRegistryPrxHelper.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 LocatorRegistryPrx checkedCast(ObjectPrx obj, String facet)
    {
        return checkedCastImpl(obj, facet, ice_staticId(), LocatorRegistryPrx.class, LocatorRegistryPrxHelper.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 LocatorRegistryPrx checkedCast(ObjectPrx obj, String facet, java.util.Map context)
    {
        return checkedCastImpl(obj, facet, context, ice_staticId(), LocatorRegistryPrx.class, LocatorRegistryPrxHelper.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 LocatorRegistryPrx uncheckedCast(ObjectPrx obj)
    {
        return uncheckedCastImpl(obj, LocatorRegistryPrx.class, LocatorRegistryPrxHelper.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 LocatorRegistryPrx uncheckedCast(ObjectPrx obj, String facet)
    {
        return uncheckedCastImpl(obj, facet, LocatorRegistryPrx.class, LocatorRegistryPrxHelper.class);
    }

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

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

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

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

    public static final long serialVersionUID = 0L;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy