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

Ice.LocatorFinderPrxHelper 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

There is a newer version: 3.7.10
Show newest version
// **********************************************************************
//
// Copyright (c) 2003-2017 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************
//
// Ice version 3.6.4
//
// 
//
// Generated from file `Locator.ice'
//
// Warning: do not edit this file.
//
// 
//

package Ice;

/**
 * Provides type-specific helper functions.
 **/
public final class LocatorFinderPrxHelper extends Ice.ObjectPrxHelperBase implements LocatorFinderPrx
{
    private static final String __getLocator_name = "getLocator";

    public LocatorPrx getLocator()
    {
        return getLocator(null, false);
    }

    public LocatorPrx getLocator(java.util.Map __ctx)
    {
        return getLocator(__ctx, true);
    }

    private LocatorPrx getLocator(java.util.Map __ctx, boolean __explicitCtx)
    {
        __checkTwowayOnly(__getLocator_name);
        return end_getLocator(begin_getLocator(__ctx, __explicitCtx, true, null));
    }

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

    public Ice.AsyncResult begin_getLocator(java.util.Map __ctx)
    {
        return begin_getLocator(__ctx, true, false, null);
    }

    public Ice.AsyncResult begin_getLocator(Ice.Callback __cb)
    {
        return begin_getLocator(null, false, false, __cb);
    }

    public Ice.AsyncResult begin_getLocator(java.util.Map __ctx, Ice.Callback __cb)
    {
        return begin_getLocator(__ctx, true, false, __cb);
    }

    public Ice.AsyncResult begin_getLocator(Callback_LocatorFinder_getLocator __cb)
    {
        return begin_getLocator(null, false, false, __cb);
    }

    public Ice.AsyncResult begin_getLocator(java.util.Map __ctx, Callback_LocatorFinder_getLocator __cb)
    {
        return begin_getLocator(__ctx, true, false, __cb);
    }

    public Ice.AsyncResult begin_getLocator(IceInternal.Functional_GenericCallback1 __responseCb, 
                                            IceInternal.Functional_GenericCallback1 __exceptionCb)
    {
        return begin_getLocator(null, false, false, __responseCb, __exceptionCb, null);
    }

    public Ice.AsyncResult begin_getLocator(IceInternal.Functional_GenericCallback1 __responseCb, 
                                            IceInternal.Functional_GenericCallback1 __exceptionCb, 
                                            IceInternal.Functional_BoolCallback __sentCb)
    {
        return begin_getLocator(null, false, false, __responseCb, __exceptionCb, __sentCb);
    }

    public Ice.AsyncResult begin_getLocator(java.util.Map __ctx, 
                                            IceInternal.Functional_GenericCallback1 __responseCb, 
                                            IceInternal.Functional_GenericCallback1 __exceptionCb)
    {
        return begin_getLocator(__ctx, true, false, __responseCb, __exceptionCb, null);
    }

    public Ice.AsyncResult begin_getLocator(java.util.Map __ctx, 
                                            IceInternal.Functional_GenericCallback1 __responseCb, 
                                            IceInternal.Functional_GenericCallback1 __exceptionCb, 
                                            IceInternal.Functional_BoolCallback __sentCb)
    {
        return begin_getLocator(__ctx, true, false, __responseCb, __exceptionCb, __sentCb);
    }

    private Ice.AsyncResult begin_getLocator(java.util.Map __ctx, 
                                             boolean __explicitCtx, 
                                             boolean __synchronous, 
                                             IceInternal.Functional_GenericCallback1 __responseCb, 
                                             IceInternal.Functional_GenericCallback1 __exceptionCb, 
                                             IceInternal.Functional_BoolCallback __sentCb)
    {
        return begin_getLocator(__ctx, __explicitCtx, __synchronous, 
                                new IceInternal.Functional_TwowayCallbackArg1(__responseCb, __exceptionCb, __sentCb)
                                    {
                                        public final void __completed(Ice.AsyncResult __result)
                                        {
                                            LocatorFinderPrxHelper.__getLocator_completed(this, __result);
                                        }
                                    });
    }

    private Ice.AsyncResult begin_getLocator(java.util.Map __ctx, 
                                             boolean __explicitCtx, 
                                             boolean __synchronous, 
                                             IceInternal.CallbackBase __cb)
    {
        __checkAsyncTwowayOnly(__getLocator_name);
        IceInternal.OutgoingAsync __result = getOutgoingAsync(__getLocator_name, __cb);
        try
        {
            __result.prepare(__getLocator_name, Ice.OperationMode.Normal, __ctx, __explicitCtx, __synchronous);
            __result.writeEmptyParams();
            __result.invoke();
        }
        catch(Ice.Exception __ex)
        {
            __result.abort(__ex);
        }
        return __result;
    }

    public LocatorPrx end_getLocator(Ice.AsyncResult __iresult)
    {
        IceInternal.OutgoingAsync __result = IceInternal.OutgoingAsync.check(__iresult, this, __getLocator_name);
        try
        {
            if(!__result.__wait())
            {
                try
                {
                    __result.throwUserException();
                }
                catch(Ice.UserException __ex)
                {
                    throw new Ice.UnknownUserException(__ex.ice_name(), __ex);
                }
            }
            IceInternal.BasicStream __is = __result.startReadParams();
            LocatorPrx __ret;
            __ret = LocatorPrxHelper.__read(__is);
            __result.endReadParams();
            return __ret;
        }
        finally
        {
            if(__result != null)
            {
                __result.cacheMessageBuffers();
            }
        }
    }

    static public void __getLocator_completed(Ice.TwowayCallbackArg1 __cb, Ice.AsyncResult __result)
    {
        Ice.LocatorFinderPrx __proxy = (Ice.LocatorFinderPrx)__result.getProxy();
        LocatorPrx __ret = null;
        try
        {
            __ret = __proxy.end_getLocator(__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 LocatorFinderPrx checkedCast(Ice.ObjectPrx __obj)
    {
        return checkedCastImpl(__obj, ice_staticId(), LocatorFinderPrx.class, LocatorFinderPrxHelper.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 __ctx 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 LocatorFinderPrx checkedCast(Ice.ObjectPrx __obj, java.util.Map __ctx)
    {
        return checkedCastImpl(__obj, __ctx, ice_staticId(), LocatorFinderPrx.class, LocatorFinderPrxHelper.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 LocatorFinderPrx checkedCast(Ice.ObjectPrx __obj, String __facet)
    {
        return checkedCastImpl(__obj, __facet, ice_staticId(), LocatorFinderPrx.class, LocatorFinderPrxHelper.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 __ctx 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 LocatorFinderPrx checkedCast(Ice.ObjectPrx __obj, String __facet, java.util.Map __ctx)
    {
        return checkedCastImpl(__obj, __facet, __ctx, ice_staticId(), LocatorFinderPrx.class, LocatorFinderPrxHelper.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 LocatorFinderPrx uncheckedCast(Ice.ObjectPrx __obj)
    {
        return uncheckedCastImpl(__obj, LocatorFinderPrx.class, LocatorFinderPrxHelper.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 LocatorFinderPrx uncheckedCast(Ice.ObjectPrx __obj, String __facet)
    {
        return uncheckedCastImpl(__obj, __facet, LocatorFinderPrx.class, LocatorFinderPrxHelper.class);
    }

    public static final String[] __ids =
    {
        "::Ice::LocatorFinder",
        "::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(IceInternal.BasicStream __os, LocatorFinderPrx v)
    {
        __os.writeProxy(v);
    }

    public static LocatorFinderPrx __read(IceInternal.BasicStream __is)
    {
        Ice.ObjectPrx proxy = __is.readProxy();
        if(proxy != null)
        {
            LocatorFinderPrxHelper result = new LocatorFinderPrxHelper();
            result.__copyFrom(proxy);
            return result;
        }
        return null;
    }

    public static final long serialVersionUID = 0L;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy