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

IceGrid.AdapterObserverPrxHelper 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 `Admin.ice'
//
// Warning: do not edit this file.
//
// 
//

package IceGrid;

/**
 * Provides type-specific helper functions.
 **/
public final class AdapterObserverPrxHelper extends Ice.ObjectPrxHelperBase implements AdapterObserverPrx
{
    private static final String _adapterInit_name = "adapterInit";

    public void adapterInit(AdapterInfo[] adpts)
    {
        _iceI_adapterInit(adpts, null, false);
    }

    public void adapterInit(AdapterInfo[] adpts, java.util.Map context)
    {
        _iceI_adapterInit(adpts, context, true);
    }

    private void _iceI_adapterInit(AdapterInfo[] iceP_adpts, java.util.Map context, boolean explicitCtx)
    {
        end_adapterInit(_iceI_begin_adapterInit(iceP_adpts, context, explicitCtx, true, null));
    }

    public Ice.AsyncResult begin_adapterInit(AdapterInfo[] adpts)
    {
        return _iceI_begin_adapterInit(adpts, null, false, false, null);
    }

    public Ice.AsyncResult begin_adapterInit(AdapterInfo[] adpts, java.util.Map context)
    {
        return _iceI_begin_adapterInit(adpts, context, true, false, null);
    }

    public Ice.AsyncResult begin_adapterInit(AdapterInfo[] adpts, Ice.Callback cb)
    {
        return _iceI_begin_adapterInit(adpts, null, false, false, cb);
    }

    public Ice.AsyncResult begin_adapterInit(AdapterInfo[] adpts, java.util.Map context, Ice.Callback cb)
    {
        return _iceI_begin_adapterInit(adpts, context, true, false, cb);
    }

    public Ice.AsyncResult begin_adapterInit(AdapterInfo[] adpts, Callback_AdapterObserver_adapterInit cb)
    {
        return _iceI_begin_adapterInit(adpts, null, false, false, cb);
    }

    public Ice.AsyncResult begin_adapterInit(AdapterInfo[] adpts, java.util.Map context, Callback_AdapterObserver_adapterInit cb)
    {
        return _iceI_begin_adapterInit(adpts, context, true, false, cb);
    }

    public Ice.AsyncResult begin_adapterInit(AdapterInfo[] adpts,
                                             IceInternal.Functional_VoidCallback responseCb,
                                             IceInternal.Functional_GenericCallback1 exceptionCb)
    {
        return _iceI_begin_adapterInit(adpts, null, false, false, responseCb, exceptionCb, null);
    }

    public Ice.AsyncResult begin_adapterInit(AdapterInfo[] adpts,
                                             IceInternal.Functional_VoidCallback responseCb,
                                             IceInternal.Functional_GenericCallback1 exceptionCb,
                                             IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_adapterInit(adpts, null, false, false, responseCb, exceptionCb, sentCb);
    }

    public Ice.AsyncResult begin_adapterInit(AdapterInfo[] adpts,
                                             java.util.Map context,
                                             IceInternal.Functional_VoidCallback responseCb,
                                             IceInternal.Functional_GenericCallback1 exceptionCb)
    {
        return _iceI_begin_adapterInit(adpts, context, true, false, responseCb, exceptionCb, null);
    }

    public Ice.AsyncResult begin_adapterInit(AdapterInfo[] adpts,
                                             java.util.Map context,
                                             IceInternal.Functional_VoidCallback responseCb,
                                             IceInternal.Functional_GenericCallback1 exceptionCb,
                                             IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_adapterInit(adpts, context, true, false, responseCb, exceptionCb, sentCb);
    }

    private Ice.AsyncResult _iceI_begin_adapterInit(AdapterInfo[] iceP_adpts,
                                                    java.util.Map context,
                                                    boolean explicitCtx,
                                                    boolean synchronous,
                                                    IceInternal.Functional_VoidCallback responseCb,
                                                    IceInternal.Functional_GenericCallback1 exceptionCb,
                                                    IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_adapterInit(iceP_adpts,
                                       context,
                                       explicitCtx,
                                       synchronous,
                                       new IceInternal.Functional_OnewayCallback(responseCb, exceptionCb, sentCb));
    }

    private Ice.AsyncResult _iceI_begin_adapterInit(AdapterInfo[] iceP_adpts,
                                                    java.util.Map context,
                                                    boolean explicitCtx,
                                                    boolean synchronous,
                                                    IceInternal.CallbackBase cb)
    {
        IceInternal.OutgoingAsync result = getOutgoingAsync(_adapterInit_name, cb);
        try
        {
            result.prepare(_adapterInit_name, Ice.OperationMode.Normal, context, explicitCtx, synchronous);
            Ice.OutputStream ostr = result.startWriteParams(Ice.FormatType.DefaultFormat);
            AdapterInfoSeqHelper.write(ostr, iceP_adpts);
            result.endWriteParams();
            result.invoke();
        }
        catch(Ice.Exception ex)
        {
            result.abort(ex);
        }
        return result;
    }

    public void end_adapterInit(Ice.AsyncResult iresult)
    {
        _end(iresult, _adapterInit_name);
    }

    private static final String _adapterAdded_name = "adapterAdded";

    public void adapterAdded(AdapterInfo info)
    {
        _iceI_adapterAdded(info, null, false);
    }

    public void adapterAdded(AdapterInfo info, java.util.Map context)
    {
        _iceI_adapterAdded(info, context, true);
    }

    private void _iceI_adapterAdded(AdapterInfo iceP_info, java.util.Map context, boolean explicitCtx)
    {
        end_adapterAdded(_iceI_begin_adapterAdded(iceP_info, context, explicitCtx, true, null));
    }

    public Ice.AsyncResult begin_adapterAdded(AdapterInfo info)
    {
        return _iceI_begin_adapterAdded(info, null, false, false, null);
    }

    public Ice.AsyncResult begin_adapterAdded(AdapterInfo info, java.util.Map context)
    {
        return _iceI_begin_adapterAdded(info, context, true, false, null);
    }

    public Ice.AsyncResult begin_adapterAdded(AdapterInfo info, Ice.Callback cb)
    {
        return _iceI_begin_adapterAdded(info, null, false, false, cb);
    }

    public Ice.AsyncResult begin_adapterAdded(AdapterInfo info, java.util.Map context, Ice.Callback cb)
    {
        return _iceI_begin_adapterAdded(info, context, true, false, cb);
    }

    public Ice.AsyncResult begin_adapterAdded(AdapterInfo info, Callback_AdapterObserver_adapterAdded cb)
    {
        return _iceI_begin_adapterAdded(info, null, false, false, cb);
    }

    public Ice.AsyncResult begin_adapterAdded(AdapterInfo info, java.util.Map context, Callback_AdapterObserver_adapterAdded cb)
    {
        return _iceI_begin_adapterAdded(info, context, true, false, cb);
    }

    public Ice.AsyncResult begin_adapterAdded(AdapterInfo info,
                                              IceInternal.Functional_VoidCallback responseCb,
                                              IceInternal.Functional_GenericCallback1 exceptionCb)
    {
        return _iceI_begin_adapterAdded(info, null, false, false, responseCb, exceptionCb, null);
    }

    public Ice.AsyncResult begin_adapterAdded(AdapterInfo info,
                                              IceInternal.Functional_VoidCallback responseCb,
                                              IceInternal.Functional_GenericCallback1 exceptionCb,
                                              IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_adapterAdded(info, null, false, false, responseCb, exceptionCb, sentCb);
    }

    public Ice.AsyncResult begin_adapterAdded(AdapterInfo info,
                                              java.util.Map context,
                                              IceInternal.Functional_VoidCallback responseCb,
                                              IceInternal.Functional_GenericCallback1 exceptionCb)
    {
        return _iceI_begin_adapterAdded(info, context, true, false, responseCb, exceptionCb, null);
    }

    public Ice.AsyncResult begin_adapterAdded(AdapterInfo info,
                                              java.util.Map context,
                                              IceInternal.Functional_VoidCallback responseCb,
                                              IceInternal.Functional_GenericCallback1 exceptionCb,
                                              IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_adapterAdded(info, context, true, false, responseCb, exceptionCb, sentCb);
    }

    private Ice.AsyncResult _iceI_begin_adapterAdded(AdapterInfo iceP_info,
                                                     java.util.Map context,
                                                     boolean explicitCtx,
                                                     boolean synchronous,
                                                     IceInternal.Functional_VoidCallback responseCb,
                                                     IceInternal.Functional_GenericCallback1 exceptionCb,
                                                     IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_adapterAdded(iceP_info,
                                        context,
                                        explicitCtx,
                                        synchronous,
                                        new IceInternal.Functional_OnewayCallback(responseCb, exceptionCb, sentCb));
    }

    private Ice.AsyncResult _iceI_begin_adapterAdded(AdapterInfo iceP_info,
                                                     java.util.Map context,
                                                     boolean explicitCtx,
                                                     boolean synchronous,
                                                     IceInternal.CallbackBase cb)
    {
        IceInternal.OutgoingAsync result = getOutgoingAsync(_adapterAdded_name, cb);
        try
        {
            result.prepare(_adapterAdded_name, Ice.OperationMode.Normal, context, explicitCtx, synchronous);
            Ice.OutputStream ostr = result.startWriteParams(Ice.FormatType.DefaultFormat);
            AdapterInfo.ice_write(ostr, iceP_info);
            result.endWriteParams();
            result.invoke();
        }
        catch(Ice.Exception ex)
        {
            result.abort(ex);
        }
        return result;
    }

    public void end_adapterAdded(Ice.AsyncResult iresult)
    {
        _end(iresult, _adapterAdded_name);
    }

    private static final String _adapterUpdated_name = "adapterUpdated";

    public void adapterUpdated(AdapterInfo info)
    {
        _iceI_adapterUpdated(info, null, false);
    }

    public void adapterUpdated(AdapterInfo info, java.util.Map context)
    {
        _iceI_adapterUpdated(info, context, true);
    }

    private void _iceI_adapterUpdated(AdapterInfo iceP_info, java.util.Map context, boolean explicitCtx)
    {
        end_adapterUpdated(_iceI_begin_adapterUpdated(iceP_info, context, explicitCtx, true, null));
    }

    public Ice.AsyncResult begin_adapterUpdated(AdapterInfo info)
    {
        return _iceI_begin_adapterUpdated(info, null, false, false, null);
    }

    public Ice.AsyncResult begin_adapterUpdated(AdapterInfo info, java.util.Map context)
    {
        return _iceI_begin_adapterUpdated(info, context, true, false, null);
    }

    public Ice.AsyncResult begin_adapterUpdated(AdapterInfo info, Ice.Callback cb)
    {
        return _iceI_begin_adapterUpdated(info, null, false, false, cb);
    }

    public Ice.AsyncResult begin_adapterUpdated(AdapterInfo info, java.util.Map context, Ice.Callback cb)
    {
        return _iceI_begin_adapterUpdated(info, context, true, false, cb);
    }

    public Ice.AsyncResult begin_adapterUpdated(AdapterInfo info, Callback_AdapterObserver_adapterUpdated cb)
    {
        return _iceI_begin_adapterUpdated(info, null, false, false, cb);
    }

    public Ice.AsyncResult begin_adapterUpdated(AdapterInfo info, java.util.Map context, Callback_AdapterObserver_adapterUpdated cb)
    {
        return _iceI_begin_adapterUpdated(info, context, true, false, cb);
    }

    public Ice.AsyncResult begin_adapterUpdated(AdapterInfo info,
                                                IceInternal.Functional_VoidCallback responseCb,
                                                IceInternal.Functional_GenericCallback1 exceptionCb)
    {
        return _iceI_begin_adapterUpdated(info, null, false, false, responseCb, exceptionCb, null);
    }

    public Ice.AsyncResult begin_adapterUpdated(AdapterInfo info,
                                                IceInternal.Functional_VoidCallback responseCb,
                                                IceInternal.Functional_GenericCallback1 exceptionCb,
                                                IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_adapterUpdated(info, null, false, false, responseCb, exceptionCb, sentCb);
    }

    public Ice.AsyncResult begin_adapterUpdated(AdapterInfo info,
                                                java.util.Map context,
                                                IceInternal.Functional_VoidCallback responseCb,
                                                IceInternal.Functional_GenericCallback1 exceptionCb)
    {
        return _iceI_begin_adapterUpdated(info, context, true, false, responseCb, exceptionCb, null);
    }

    public Ice.AsyncResult begin_adapterUpdated(AdapterInfo info,
                                                java.util.Map context,
                                                IceInternal.Functional_VoidCallback responseCb,
                                                IceInternal.Functional_GenericCallback1 exceptionCb,
                                                IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_adapterUpdated(info, context, true, false, responseCb, exceptionCb, sentCb);
    }

    private Ice.AsyncResult _iceI_begin_adapterUpdated(AdapterInfo iceP_info,
                                                       java.util.Map context,
                                                       boolean explicitCtx,
                                                       boolean synchronous,
                                                       IceInternal.Functional_VoidCallback responseCb,
                                                       IceInternal.Functional_GenericCallback1 exceptionCb,
                                                       IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_adapterUpdated(iceP_info,
                                          context,
                                          explicitCtx,
                                          synchronous,
                                          new IceInternal.Functional_OnewayCallback(responseCb, exceptionCb, sentCb));
    }

    private Ice.AsyncResult _iceI_begin_adapterUpdated(AdapterInfo iceP_info,
                                                       java.util.Map context,
                                                       boolean explicitCtx,
                                                       boolean synchronous,
                                                       IceInternal.CallbackBase cb)
    {
        IceInternal.OutgoingAsync result = getOutgoingAsync(_adapterUpdated_name, cb);
        try
        {
            result.prepare(_adapterUpdated_name, Ice.OperationMode.Normal, context, explicitCtx, synchronous);
            Ice.OutputStream ostr = result.startWriteParams(Ice.FormatType.DefaultFormat);
            AdapterInfo.ice_write(ostr, iceP_info);
            result.endWriteParams();
            result.invoke();
        }
        catch(Ice.Exception ex)
        {
            result.abort(ex);
        }
        return result;
    }

    public void end_adapterUpdated(Ice.AsyncResult iresult)
    {
        _end(iresult, _adapterUpdated_name);
    }

    private static final String _adapterRemoved_name = "adapterRemoved";

    public void adapterRemoved(String id)
    {
        _iceI_adapterRemoved(id, null, false);
    }

    public void adapterRemoved(String id, java.util.Map context)
    {
        _iceI_adapterRemoved(id, context, true);
    }

    private void _iceI_adapterRemoved(String iceP_id, java.util.Map context, boolean explicitCtx)
    {
        end_adapterRemoved(_iceI_begin_adapterRemoved(iceP_id, context, explicitCtx, true, null));
    }

    public Ice.AsyncResult begin_adapterRemoved(String id)
    {
        return _iceI_begin_adapterRemoved(id, null, false, false, null);
    }

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

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

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

    public Ice.AsyncResult begin_adapterRemoved(String id, Callback_AdapterObserver_adapterRemoved cb)
    {
        return _iceI_begin_adapterRemoved(id, null, false, false, cb);
    }

    public Ice.AsyncResult begin_adapterRemoved(String id, java.util.Map context, Callback_AdapterObserver_adapterRemoved cb)
    {
        return _iceI_begin_adapterRemoved(id, context, true, false, cb);
    }

    public Ice.AsyncResult begin_adapterRemoved(String id,
                                                IceInternal.Functional_VoidCallback responseCb,
                                                IceInternal.Functional_GenericCallback1 exceptionCb)
    {
        return _iceI_begin_adapterRemoved(id, null, false, false, responseCb, exceptionCb, null);
    }

    public Ice.AsyncResult begin_adapterRemoved(String id,
                                                IceInternal.Functional_VoidCallback responseCb,
                                                IceInternal.Functional_GenericCallback1 exceptionCb,
                                                IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_adapterRemoved(id, null, false, false, responseCb, exceptionCb, sentCb);
    }

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

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

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

    private Ice.AsyncResult _iceI_begin_adapterRemoved(String iceP_id,
                                                       java.util.Map context,
                                                       boolean explicitCtx,
                                                       boolean synchronous,
                                                       IceInternal.CallbackBase cb)
    {
        IceInternal.OutgoingAsync result = getOutgoingAsync(_adapterRemoved_name, cb);
        try
        {
            result.prepare(_adapterRemoved_name, Ice.OperationMode.Normal, 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 void end_adapterRemoved(Ice.AsyncResult iresult)
    {
        _end(iresult, _adapterRemoved_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 AdapterObserverPrx checkedCast(Ice.ObjectPrx obj)
    {
        return checkedCastImpl(obj, ice_staticId(), AdapterObserverPrx.class, AdapterObserverPrxHelper.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 AdapterObserverPrx checkedCast(Ice.ObjectPrx obj, java.util.Map context)
    {
        return checkedCastImpl(obj, context, ice_staticId(), AdapterObserverPrx.class, AdapterObserverPrxHelper.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 AdapterObserverPrx checkedCast(Ice.ObjectPrx obj, String facet)
    {
        return checkedCastImpl(obj, facet, ice_staticId(), AdapterObserverPrx.class, AdapterObserverPrxHelper.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 AdapterObserverPrx checkedCast(Ice.ObjectPrx obj, String facet, java.util.Map context)
    {
        return checkedCastImpl(obj, facet, context, ice_staticId(), AdapterObserverPrx.class, AdapterObserverPrxHelper.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 AdapterObserverPrx uncheckedCast(Ice.ObjectPrx obj)
    {
        return uncheckedCastImpl(obj, AdapterObserverPrx.class, AdapterObserverPrxHelper.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 AdapterObserverPrx uncheckedCast(Ice.ObjectPrx obj, String facet)
    {
        return uncheckedCastImpl(obj, facet, AdapterObserverPrx.class, AdapterObserverPrxHelper.class);
    }

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

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

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

    public static final long serialVersionUID = 0L;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy