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

IceLocatorDiscovery.LookupPrxHelper Maven / Gradle / Ivy

Go to download

Ice plug-in that enables the discovery of IceGrid and custom locators via UDP multicast

There is a newer version: 3.7.10
Show newest version
// **********************************************************************
//
// Copyright (c) 2003-2018 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.7.1
//
// 
//
// Generated from file `IceLocatorDiscovery.ice'
//
// Warning: do not edit this file.
//
// 
//

package IceLocatorDiscovery;

/**
 * Provides type-specific helper functions.
 **/
public final class LookupPrxHelper extends Ice.ObjectPrxHelperBase implements LookupPrx
{
    private static final String _findLocator_name = "findLocator";

    public void findLocator(String instanceName, LookupReplyPrx reply)
    {
        _iceI_findLocator(instanceName, reply, null, false);
    }

    public void findLocator(String instanceName, LookupReplyPrx reply, java.util.Map context)
    {
        _iceI_findLocator(instanceName, reply, context, true);
    }

    private void _iceI_findLocator(String iceP_instanceName, LookupReplyPrx iceP_reply, java.util.Map context, boolean explicitCtx)
    {
        end_findLocator(_iceI_begin_findLocator(iceP_instanceName, iceP_reply, context, explicitCtx, true, null));
    }

    public Ice.AsyncResult begin_findLocator(String instanceName, LookupReplyPrx reply)
    {
        return _iceI_begin_findLocator(instanceName, reply, null, false, false, null);
    }

    public Ice.AsyncResult begin_findLocator(String instanceName, LookupReplyPrx reply, java.util.Map context)
    {
        return _iceI_begin_findLocator(instanceName, reply, context, true, false, null);
    }

    public Ice.AsyncResult begin_findLocator(String instanceName, LookupReplyPrx reply, Ice.Callback cb)
    {
        return _iceI_begin_findLocator(instanceName, reply, null, false, false, cb);
    }

    public Ice.AsyncResult begin_findLocator(String instanceName, LookupReplyPrx reply, java.util.Map context, Ice.Callback cb)
    {
        return _iceI_begin_findLocator(instanceName, reply, context, true, false, cb);
    }

    public Ice.AsyncResult begin_findLocator(String instanceName, LookupReplyPrx reply, Callback_Lookup_findLocator cb)
    {
        return _iceI_begin_findLocator(instanceName, reply, null, false, false, cb);
    }

    public Ice.AsyncResult begin_findLocator(String instanceName, LookupReplyPrx reply, java.util.Map context, Callback_Lookup_findLocator cb)
    {
        return _iceI_begin_findLocator(instanceName, reply, context, true, false, cb);
    }

    public Ice.AsyncResult begin_findLocator(String instanceName,
                                             LookupReplyPrx reply,
                                             IceInternal.Functional_VoidCallback responseCb,
                                             IceInternal.Functional_GenericCallback1 exceptionCb)
    {
        return _iceI_begin_findLocator(instanceName, reply, null, false, false, responseCb, exceptionCb, null);
    }

    public Ice.AsyncResult begin_findLocator(String instanceName,
                                             LookupReplyPrx reply,
                                             IceInternal.Functional_VoidCallback responseCb,
                                             IceInternal.Functional_GenericCallback1 exceptionCb,
                                             IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_findLocator(instanceName, reply, null, false, false, responseCb, exceptionCb, sentCb);
    }

    public Ice.AsyncResult begin_findLocator(String instanceName,
                                             LookupReplyPrx reply,
                                             java.util.Map context,
                                             IceInternal.Functional_VoidCallback responseCb,
                                             IceInternal.Functional_GenericCallback1 exceptionCb)
    {
        return _iceI_begin_findLocator(instanceName, reply, context, true, false, responseCb, exceptionCb, null);
    }

    public Ice.AsyncResult begin_findLocator(String instanceName,
                                             LookupReplyPrx reply,
                                             java.util.Map context,
                                             IceInternal.Functional_VoidCallback responseCb,
                                             IceInternal.Functional_GenericCallback1 exceptionCb,
                                             IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_findLocator(instanceName, reply, context, true, false, responseCb, exceptionCb, sentCb);
    }

    private Ice.AsyncResult _iceI_begin_findLocator(String iceP_instanceName,
                                                    LookupReplyPrx iceP_reply,
                                                    java.util.Map context,
                                                    boolean explicitCtx,
                                                    boolean synchronous,
                                                    IceInternal.Functional_VoidCallback responseCb,
                                                    IceInternal.Functional_GenericCallback1 exceptionCb,
                                                    IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_findLocator(iceP_instanceName,
                                       iceP_reply,
                                       context,
                                       explicitCtx,
                                       synchronous,
                                       new IceInternal.Functional_OnewayCallback(responseCb, exceptionCb, sentCb));
    }

    private Ice.AsyncResult _iceI_begin_findLocator(String iceP_instanceName,
                                                    LookupReplyPrx iceP_reply,
                                                    java.util.Map context,
                                                    boolean explicitCtx,
                                                    boolean synchronous,
                                                    IceInternal.CallbackBase cb)
    {
        IceInternal.OutgoingAsync result = getOutgoingAsync(_findLocator_name, cb);
        try
        {
            result.prepare(_findLocator_name, Ice.OperationMode.Idempotent, context, explicitCtx, synchronous);
            Ice.OutputStream ostr = result.startWriteParams(Ice.FormatType.DefaultFormat);
            ostr.writeString(iceP_instanceName);
            LookupReplyPrxHelper.write(ostr, iceP_reply);
            result.endWriteParams();
            result.invoke();
        }
        catch(Ice.Exception ex)
        {
            result.abort(ex);
        }
        return result;
    }

    public void end_findLocator(Ice.AsyncResult iresult)
    {
        _end(iresult, _findLocator_name);
    }

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

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

    /**
     * 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(Ice.OutputStream ostr, LookupPrx v)
    {
        ostr.writeProxy(v);
    }

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

    public static final long serialVersionUID = 0L;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy