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

Ice.RouterFinderPrxHelper 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 `Router.ice'
//
// Warning: do not edit this file.
//
// 
//

package Ice;

/**
 * Provides type-specific helper functions.
 **/
public final class RouterFinderPrxHelper extends Ice.ObjectPrxHelperBase implements RouterFinderPrx
{
    private static final String __getRouter_name = "getRouter";

    public RouterPrx getRouter()
    {
        return getRouter(null, false);
    }

    public RouterPrx getRouter(java.util.Map __ctx)
    {
        return getRouter(__ctx, true);
    }

    private RouterPrx getRouter(java.util.Map __ctx, boolean __explicitCtx)
    {
        __checkTwowayOnly(__getRouter_name);
        return end_getRouter(begin_getRouter(__ctx, __explicitCtx, true, null));
    }

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

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

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

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

    public Ice.AsyncResult begin_getRouter(Callback_RouterFinder_getRouter __cb)
    {
        return begin_getRouter(null, false, false, __cb);
    }

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

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

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

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

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

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

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

    public RouterPrx end_getRouter(Ice.AsyncResult __iresult)
    {
        IceInternal.OutgoingAsync __result = IceInternal.OutgoingAsync.check(__iresult, this, __getRouter_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();
            RouterPrx __ret;
            __ret = RouterPrxHelper.__read(__is);
            __result.endReadParams();
            return __ret;
        }
        finally
        {
            if(__result != null)
            {
                __result.cacheMessageBuffers();
            }
        }
    }

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

    public static final String[] __ids =
    {
        "::Ice::Object",
        "::Ice::RouterFinder"
    };

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

    public static void __write(IceInternal.BasicStream __os, RouterFinderPrx v)
    {
        __os.writeProxy(v);
    }

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

    public static final long serialVersionUID = 0L;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy