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

IceGrid.ObjectObserverPrxHelper 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 ObjectObserverPrxHelper extends Ice.ObjectPrxHelperBase implements ObjectObserverPrx
{
    private static final String _objectInit_name = "objectInit";

    public void objectInit(ObjectInfo[] objects)
    {
        _iceI_objectInit(objects, null, false);
    }

    public void objectInit(ObjectInfo[] objects, java.util.Map context)
    {
        _iceI_objectInit(objects, context, true);
    }

    private void _iceI_objectInit(ObjectInfo[] iceP_objects, java.util.Map context, boolean explicitCtx)
    {
        end_objectInit(_iceI_begin_objectInit(iceP_objects, context, explicitCtx, true, null));
    }

    public Ice.AsyncResult begin_objectInit(ObjectInfo[] objects)
    {
        return _iceI_begin_objectInit(objects, null, false, false, null);
    }

    public Ice.AsyncResult begin_objectInit(ObjectInfo[] objects, java.util.Map context)
    {
        return _iceI_begin_objectInit(objects, context, true, false, null);
    }

    public Ice.AsyncResult begin_objectInit(ObjectInfo[] objects, Ice.Callback cb)
    {
        return _iceI_begin_objectInit(objects, null, false, false, cb);
    }

    public Ice.AsyncResult begin_objectInit(ObjectInfo[] objects, java.util.Map context, Ice.Callback cb)
    {
        return _iceI_begin_objectInit(objects, context, true, false, cb);
    }

    public Ice.AsyncResult begin_objectInit(ObjectInfo[] objects, Callback_ObjectObserver_objectInit cb)
    {
        return _iceI_begin_objectInit(objects, null, false, false, cb);
    }

    public Ice.AsyncResult begin_objectInit(ObjectInfo[] objects, java.util.Map context, Callback_ObjectObserver_objectInit cb)
    {
        return _iceI_begin_objectInit(objects, context, true, false, cb);
    }

    public Ice.AsyncResult begin_objectInit(ObjectInfo[] objects,
                                            IceInternal.Functional_VoidCallback responseCb,
                                            IceInternal.Functional_GenericCallback1 exceptionCb)
    {
        return _iceI_begin_objectInit(objects, null, false, false, responseCb, exceptionCb, null);
    }

    public Ice.AsyncResult begin_objectInit(ObjectInfo[] objects,
                                            IceInternal.Functional_VoidCallback responseCb,
                                            IceInternal.Functional_GenericCallback1 exceptionCb,
                                            IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_objectInit(objects, null, false, false, responseCb, exceptionCb, sentCb);
    }

    public Ice.AsyncResult begin_objectInit(ObjectInfo[] objects,
                                            java.util.Map context,
                                            IceInternal.Functional_VoidCallback responseCb,
                                            IceInternal.Functional_GenericCallback1 exceptionCb)
    {
        return _iceI_begin_objectInit(objects, context, true, false, responseCb, exceptionCb, null);
    }

    public Ice.AsyncResult begin_objectInit(ObjectInfo[] objects,
                                            java.util.Map context,
                                            IceInternal.Functional_VoidCallback responseCb,
                                            IceInternal.Functional_GenericCallback1 exceptionCb,
                                            IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_objectInit(objects, context, true, false, responseCb, exceptionCb, sentCb);
    }

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

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

    public void end_objectInit(Ice.AsyncResult iresult)
    {
        _end(iresult, _objectInit_name);
    }

    private static final String _objectAdded_name = "objectAdded";

    public void objectAdded(ObjectInfo info)
    {
        _iceI_objectAdded(info, null, false);
    }

    public void objectAdded(ObjectInfo info, java.util.Map context)
    {
        _iceI_objectAdded(info, context, true);
    }

    private void _iceI_objectAdded(ObjectInfo iceP_info, java.util.Map context, boolean explicitCtx)
    {
        end_objectAdded(_iceI_begin_objectAdded(iceP_info, context, explicitCtx, true, null));
    }

    public Ice.AsyncResult begin_objectAdded(ObjectInfo info)
    {
        return _iceI_begin_objectAdded(info, null, false, false, null);
    }

    public Ice.AsyncResult begin_objectAdded(ObjectInfo info, java.util.Map context)
    {
        return _iceI_begin_objectAdded(info, context, true, false, null);
    }

    public Ice.AsyncResult begin_objectAdded(ObjectInfo info, Ice.Callback cb)
    {
        return _iceI_begin_objectAdded(info, null, false, false, cb);
    }

    public Ice.AsyncResult begin_objectAdded(ObjectInfo info, java.util.Map context, Ice.Callback cb)
    {
        return _iceI_begin_objectAdded(info, context, true, false, cb);
    }

    public Ice.AsyncResult begin_objectAdded(ObjectInfo info, Callback_ObjectObserver_objectAdded cb)
    {
        return _iceI_begin_objectAdded(info, null, false, false, cb);
    }

    public Ice.AsyncResult begin_objectAdded(ObjectInfo info, java.util.Map context, Callback_ObjectObserver_objectAdded cb)
    {
        return _iceI_begin_objectAdded(info, context, true, false, cb);
    }

    public Ice.AsyncResult begin_objectAdded(ObjectInfo info,
                                             IceInternal.Functional_VoidCallback responseCb,
                                             IceInternal.Functional_GenericCallback1 exceptionCb)
    {
        return _iceI_begin_objectAdded(info, null, false, false, responseCb, exceptionCb, null);
    }

    public Ice.AsyncResult begin_objectAdded(ObjectInfo info,
                                             IceInternal.Functional_VoidCallback responseCb,
                                             IceInternal.Functional_GenericCallback1 exceptionCb,
                                             IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_objectAdded(info, null, false, false, responseCb, exceptionCb, sentCb);
    }

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

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

    private Ice.AsyncResult _iceI_begin_objectAdded(ObjectInfo 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_objectAdded(iceP_info,
                                       context,
                                       explicitCtx,
                                       synchronous,
                                       new IceInternal.Functional_OnewayCallback(responseCb, exceptionCb, sentCb));
    }

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

    public void end_objectAdded(Ice.AsyncResult iresult)
    {
        _end(iresult, _objectAdded_name);
    }

    private static final String _objectUpdated_name = "objectUpdated";

    public void objectUpdated(ObjectInfo info)
    {
        _iceI_objectUpdated(info, null, false);
    }

    public void objectUpdated(ObjectInfo info, java.util.Map context)
    {
        _iceI_objectUpdated(info, context, true);
    }

    private void _iceI_objectUpdated(ObjectInfo iceP_info, java.util.Map context, boolean explicitCtx)
    {
        end_objectUpdated(_iceI_begin_objectUpdated(iceP_info, context, explicitCtx, true, null));
    }

    public Ice.AsyncResult begin_objectUpdated(ObjectInfo info)
    {
        return _iceI_begin_objectUpdated(info, null, false, false, null);
    }

    public Ice.AsyncResult begin_objectUpdated(ObjectInfo info, java.util.Map context)
    {
        return _iceI_begin_objectUpdated(info, context, true, false, null);
    }

    public Ice.AsyncResult begin_objectUpdated(ObjectInfo info, Ice.Callback cb)
    {
        return _iceI_begin_objectUpdated(info, null, false, false, cb);
    }

    public Ice.AsyncResult begin_objectUpdated(ObjectInfo info, java.util.Map context, Ice.Callback cb)
    {
        return _iceI_begin_objectUpdated(info, context, true, false, cb);
    }

    public Ice.AsyncResult begin_objectUpdated(ObjectInfo info, Callback_ObjectObserver_objectUpdated cb)
    {
        return _iceI_begin_objectUpdated(info, null, false, false, cb);
    }

    public Ice.AsyncResult begin_objectUpdated(ObjectInfo info, java.util.Map context, Callback_ObjectObserver_objectUpdated cb)
    {
        return _iceI_begin_objectUpdated(info, context, true, false, cb);
    }

    public Ice.AsyncResult begin_objectUpdated(ObjectInfo info,
                                               IceInternal.Functional_VoidCallback responseCb,
                                               IceInternal.Functional_GenericCallback1 exceptionCb)
    {
        return _iceI_begin_objectUpdated(info, null, false, false, responseCb, exceptionCb, null);
    }

    public Ice.AsyncResult begin_objectUpdated(ObjectInfo info,
                                               IceInternal.Functional_VoidCallback responseCb,
                                               IceInternal.Functional_GenericCallback1 exceptionCb,
                                               IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_objectUpdated(info, null, false, false, responseCb, exceptionCb, sentCb);
    }

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

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

    private Ice.AsyncResult _iceI_begin_objectUpdated(ObjectInfo 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_objectUpdated(iceP_info,
                                         context,
                                         explicitCtx,
                                         synchronous,
                                         new IceInternal.Functional_OnewayCallback(responseCb, exceptionCb, sentCb));
    }

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

    public void end_objectUpdated(Ice.AsyncResult iresult)
    {
        _end(iresult, _objectUpdated_name);
    }

    private static final String _objectRemoved_name = "objectRemoved";

    public void objectRemoved(Ice.Identity id)
    {
        _iceI_objectRemoved(id, null, false);
    }

    public void objectRemoved(Ice.Identity id, java.util.Map context)
    {
        _iceI_objectRemoved(id, context, true);
    }

    private void _iceI_objectRemoved(Ice.Identity iceP_id, java.util.Map context, boolean explicitCtx)
    {
        end_objectRemoved(_iceI_begin_objectRemoved(iceP_id, context, explicitCtx, true, null));
    }

    public Ice.AsyncResult begin_objectRemoved(Ice.Identity id)
    {
        return _iceI_begin_objectRemoved(id, null, false, false, null);
    }

    public Ice.AsyncResult begin_objectRemoved(Ice.Identity id, java.util.Map context)
    {
        return _iceI_begin_objectRemoved(id, context, true, false, null);
    }

    public Ice.AsyncResult begin_objectRemoved(Ice.Identity id, Ice.Callback cb)
    {
        return _iceI_begin_objectRemoved(id, null, false, false, cb);
    }

    public Ice.AsyncResult begin_objectRemoved(Ice.Identity id, java.util.Map context, Ice.Callback cb)
    {
        return _iceI_begin_objectRemoved(id, context, true, false, cb);
    }

    public Ice.AsyncResult begin_objectRemoved(Ice.Identity id, Callback_ObjectObserver_objectRemoved cb)
    {
        return _iceI_begin_objectRemoved(id, null, false, false, cb);
    }

    public Ice.AsyncResult begin_objectRemoved(Ice.Identity id, java.util.Map context, Callback_ObjectObserver_objectRemoved cb)
    {
        return _iceI_begin_objectRemoved(id, context, true, false, cb);
    }

    public Ice.AsyncResult begin_objectRemoved(Ice.Identity id,
                                               IceInternal.Functional_VoidCallback responseCb,
                                               IceInternal.Functional_GenericCallback1 exceptionCb)
    {
        return _iceI_begin_objectRemoved(id, null, false, false, responseCb, exceptionCb, null);
    }

    public Ice.AsyncResult begin_objectRemoved(Ice.Identity id,
                                               IceInternal.Functional_VoidCallback responseCb,
                                               IceInternal.Functional_GenericCallback1 exceptionCb,
                                               IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_objectRemoved(id, null, false, false, responseCb, exceptionCb, sentCb);
    }

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

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

    private Ice.AsyncResult _iceI_begin_objectRemoved(Ice.Identity 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_objectRemoved(iceP_id,
                                         context,
                                         explicitCtx,
                                         synchronous,
                                         new IceInternal.Functional_OnewayCallback(responseCb, exceptionCb, sentCb));
    }

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

    public void end_objectRemoved(Ice.AsyncResult iresult)
    {
        _end(iresult, _objectRemoved_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 ObjectObserverPrx checkedCast(Ice.ObjectPrx obj)
    {
        return checkedCastImpl(obj, ice_staticId(), ObjectObserverPrx.class, ObjectObserverPrxHelper.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 ObjectObserverPrx checkedCast(Ice.ObjectPrx obj, java.util.Map context)
    {
        return checkedCastImpl(obj, context, ice_staticId(), ObjectObserverPrx.class, ObjectObserverPrxHelper.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 ObjectObserverPrx checkedCast(Ice.ObjectPrx obj, String facet)
    {
        return checkedCastImpl(obj, facet, ice_staticId(), ObjectObserverPrx.class, ObjectObserverPrxHelper.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 ObjectObserverPrx checkedCast(Ice.ObjectPrx obj, String facet, java.util.Map context)
    {
        return checkedCastImpl(obj, facet, context, ice_staticId(), ObjectObserverPrx.class, ObjectObserverPrxHelper.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 ObjectObserverPrx uncheckedCast(Ice.ObjectPrx obj)
    {
        return uncheckedCastImpl(obj, ObjectObserverPrx.class, ObjectObserverPrxHelper.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 ObjectObserverPrx uncheckedCast(Ice.ObjectPrx obj, String facet)
    {
        return uncheckedCastImpl(obj, facet, ObjectObserverPrx.class, ObjectObserverPrxHelper.class);
    }

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

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

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

    public static final long serialVersionUID = 0L;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy