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

IceMX.MetricsAdminPrxHelper 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

The newest version!
//
// Copyright (c) ZeroC, Inc. All rights reserved.
//
//
// Ice version 3.7.10
//
// 
//
// Generated from file `Metrics.ice'
//
// Warning: do not edit this file.
//
// 
//

package IceMX;

/**
 * Provides type-specific helper functions.
 **/
public final class MetricsAdminPrxHelper extends Ice.ObjectPrxHelperBase implements MetricsAdminPrx
{
    private static final String _getMetricsViewNames_name = "getMetricsViewNames";

    public String[] getMetricsViewNames(Ice.StringSeqHolder disabledViews)
    {
        return _iceI_getMetricsViewNames(disabledViews, null, false);
    }

    public String[] getMetricsViewNames(Ice.StringSeqHolder disabledViews, java.util.Map context)
    {
        return _iceI_getMetricsViewNames(disabledViews, context, true);
    }

    private String[] _iceI_getMetricsViewNames(Ice.StringSeqHolder iceP_disabledViews, java.util.Map context, boolean explicitCtx)
    {
        _checkTwowayOnly(_getMetricsViewNames_name);
        return end_getMetricsViewNames(iceP_disabledViews, _iceI_begin_getMetricsViewNames(context, explicitCtx, true, null));
    }

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

    public Ice.AsyncResult begin_getMetricsViewNames(java.util.Map context)
    {
        return _iceI_begin_getMetricsViewNames(context, true, false, null);
    }

    public Ice.AsyncResult begin_getMetricsViewNames(Ice.Callback cb)
    {
        return _iceI_begin_getMetricsViewNames(null, false, false, cb);
    }

    public Ice.AsyncResult begin_getMetricsViewNames(java.util.Map context, Ice.Callback cb)
    {
        return _iceI_begin_getMetricsViewNames(context, true, false, cb);
    }

    public Ice.AsyncResult begin_getMetricsViewNames(Callback_MetricsAdmin_getMetricsViewNames cb)
    {
        return _iceI_begin_getMetricsViewNames(null, false, false, cb);
    }

    public Ice.AsyncResult begin_getMetricsViewNames(java.util.Map context, Callback_MetricsAdmin_getMetricsViewNames cb)
    {
        return _iceI_begin_getMetricsViewNames(context, true, false, cb);
    }

    public Ice.AsyncResult begin_getMetricsViewNames(FunctionalCallback_MetricsAdmin_getMetricsViewNames_Response responseCb,
                                                     IceInternal.Functional_GenericCallback1 exceptionCb)
    {
        return _iceI_begin_getMetricsViewNames(null, false, false, responseCb, exceptionCb, null);
    }

    public Ice.AsyncResult begin_getMetricsViewNames(FunctionalCallback_MetricsAdmin_getMetricsViewNames_Response responseCb,
                                                     IceInternal.Functional_GenericCallback1 exceptionCb,
                                                     IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_getMetricsViewNames(null, false, false, responseCb, exceptionCb, sentCb);
    }

    public Ice.AsyncResult begin_getMetricsViewNames(java.util.Map context,
                                                     FunctionalCallback_MetricsAdmin_getMetricsViewNames_Response responseCb,
                                                     IceInternal.Functional_GenericCallback1 exceptionCb)
    {
        return _iceI_begin_getMetricsViewNames(context, true, false, responseCb, exceptionCb, null);
    }

    public Ice.AsyncResult begin_getMetricsViewNames(java.util.Map context,
                                                     FunctionalCallback_MetricsAdmin_getMetricsViewNames_Response responseCb,
                                                     IceInternal.Functional_GenericCallback1 exceptionCb,
                                                     IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_getMetricsViewNames(context, true, false, responseCb, exceptionCb, sentCb);
    }

    private Ice.AsyncResult _iceI_begin_getMetricsViewNames(java.util.Map context,
                                                            boolean explicitCtx,
                                                            boolean synchronous,
                                                            FunctionalCallback_MetricsAdmin_getMetricsViewNames_Response responseCb,
                                                            IceInternal.Functional_GenericCallback1 exceptionCb,
                                                            IceInternal.Functional_BoolCallback sentCb)
    {
        class CB extends IceInternal.Functional_TwowayCallback implements IceMX._Callback_MetricsAdmin_getMetricsViewNames
        {
            public CB(FunctionalCallback_MetricsAdmin_getMetricsViewNames_Response responseCb,
                      IceInternal.Functional_GenericCallback1 exceptionCb,
                      IceInternal.Functional_BoolCallback sentCb)
            {
                super(responseCb != null, exceptionCb, sentCb);
                _responseCb = responseCb;
            }

            public void response(String[] ret, String[] disabledViews)
            {
                if(_responseCb != null)
                {
                    _responseCb.apply(ret, disabledViews);
                }
            }

            public final void _iceCompleted(Ice.AsyncResult result)
            {
                MetricsAdminPrxHelper._iceI_getMetricsViewNames_completed(this, result);
            }

            private final FunctionalCallback_MetricsAdmin_getMetricsViewNames_Response _responseCb;
        }
        return _iceI_begin_getMetricsViewNames(context, explicitCtx, synchronous, new CB(responseCb, exceptionCb, sentCb));
    }

    private Ice.AsyncResult _iceI_begin_getMetricsViewNames(java.util.Map context,
                                                            boolean explicitCtx,
                                                            boolean synchronous,
                                                            IceInternal.CallbackBase cb)
    {
        _checkAsyncTwowayOnly(_getMetricsViewNames_name);
        IceInternal.OutgoingAsync result = getOutgoingAsync(_getMetricsViewNames_name, cb);
        try
        {
            result.prepare(_getMetricsViewNames_name, Ice.OperationMode.Normal, context, explicitCtx, synchronous);
            result.writeEmptyParams();
            result.invoke();
        }
        catch(Ice.Exception ex)
        {
            result.abort(ex);
        }
        return result;
    }

    public String[] end_getMetricsViewNames(Ice.StringSeqHolder disabledViews, Ice.AsyncResult iresult)
    {
        IceInternal.OutgoingAsync result_ = IceInternal.OutgoingAsync.check(iresult, this, _getMetricsViewNames_name);
        try
        {
            if(!result_.waitForResponseOrUserEx())
            {
                try
                {
                    result_.throwUserException();
                }
                catch(Ice.UserException ex_)
                {
                    throw new Ice.UnknownUserException(ex_.ice_id(), ex_);
                }
            }
            Ice.InputStream istr_ = result_.startReadParams();
            disabledViews.value = Ice.StringSeqHelper.read(istr_);
            String[] ret_;
            ret_ = Ice.StringSeqHelper.read(istr_);
            result_.endReadParams();
            return ret_;
        }
        finally
        {
            if(result_ != null)
            {
                result_.cacheMessageBuffers();
            }
        }
    }

    static public void _iceI_getMetricsViewNames_completed(_Callback_MetricsAdmin_getMetricsViewNames cb, Ice.AsyncResult result)
    {
        IceMX.MetricsAdminPrx _proxy = (IceMX.MetricsAdminPrx)result.getProxy();
        String[] ret = null;
        Ice.StringSeqHolder iceP_disabledViews = new Ice.StringSeqHolder();
        try
        {
            ret = _proxy.end_getMetricsViewNames(iceP_disabledViews, result);
        }
        catch(Ice.LocalException ex)
        {
            cb.exception(ex);
            return;
        }
        catch(Ice.SystemException ex)
        {
            cb.exception(ex);
            return;
        }
        cb.response(ret, iceP_disabledViews.value);
    }

    private static final String _enableMetricsView_name = "enableMetricsView";

    public void enableMetricsView(String name)
        throws UnknownMetricsView
    {
        _iceI_enableMetricsView(name, null, false);
    }

    public void enableMetricsView(String name, java.util.Map context)
        throws UnknownMetricsView
    {
        _iceI_enableMetricsView(name, context, true);
    }

    private void _iceI_enableMetricsView(String iceP_name, java.util.Map context, boolean explicitCtx)
        throws UnknownMetricsView
    {
        _checkTwowayOnly(_enableMetricsView_name);
        end_enableMetricsView(_iceI_begin_enableMetricsView(iceP_name, context, explicitCtx, true, null));
    }

    public Ice.AsyncResult begin_enableMetricsView(String name)
    {
        return _iceI_begin_enableMetricsView(name, null, false, false, null);
    }

    public Ice.AsyncResult begin_enableMetricsView(String name, java.util.Map context)
    {
        return _iceI_begin_enableMetricsView(name, context, true, false, null);
    }

    public Ice.AsyncResult begin_enableMetricsView(String name, Ice.Callback cb)
    {
        return _iceI_begin_enableMetricsView(name, null, false, false, cb);
    }

    public Ice.AsyncResult begin_enableMetricsView(String name, java.util.Map context, Ice.Callback cb)
    {
        return _iceI_begin_enableMetricsView(name, context, true, false, cb);
    }

    public Ice.AsyncResult begin_enableMetricsView(String name, Callback_MetricsAdmin_enableMetricsView cb)
    {
        return _iceI_begin_enableMetricsView(name, null, false, false, cb);
    }

    public Ice.AsyncResult begin_enableMetricsView(String name, java.util.Map context, Callback_MetricsAdmin_enableMetricsView cb)
    {
        return _iceI_begin_enableMetricsView(name, context, true, false, cb);
    }

    public Ice.AsyncResult begin_enableMetricsView(String name,
                                                   IceInternal.Functional_VoidCallback responseCb,
                                                   IceInternal.Functional_GenericCallback1 userExceptionCb,
                                                   IceInternal.Functional_GenericCallback1 exceptionCb)
    {
        return _iceI_begin_enableMetricsView(name, null, false, false, responseCb, userExceptionCb, exceptionCb, null);
    }

    public Ice.AsyncResult begin_enableMetricsView(String name,
                                                   IceInternal.Functional_VoidCallback responseCb,
                                                   IceInternal.Functional_GenericCallback1 userExceptionCb,
                                                   IceInternal.Functional_GenericCallback1 exceptionCb,
                                                   IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_enableMetricsView(name, null, false, false, responseCb, userExceptionCb, exceptionCb, sentCb);
    }

    public Ice.AsyncResult begin_enableMetricsView(String name,
                                                   java.util.Map context,
                                                   IceInternal.Functional_VoidCallback responseCb,
                                                   IceInternal.Functional_GenericCallback1 userExceptionCb,
                                                   IceInternal.Functional_GenericCallback1 exceptionCb)
    {
        return _iceI_begin_enableMetricsView(name, context, true, false, responseCb, userExceptionCb, exceptionCb, null);
    }

    public Ice.AsyncResult begin_enableMetricsView(String name,
                                                   java.util.Map context,
                                                   IceInternal.Functional_VoidCallback responseCb,
                                                   IceInternal.Functional_GenericCallback1 userExceptionCb,
                                                   IceInternal.Functional_GenericCallback1 exceptionCb,
                                                   IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_enableMetricsView(name, context, true, false, responseCb, userExceptionCb, exceptionCb, sentCb);
    }

    private Ice.AsyncResult _iceI_begin_enableMetricsView(String iceP_name,
                                                          java.util.Map context,
                                                          boolean explicitCtx,
                                                          boolean synchronous,
                                                          IceInternal.Functional_VoidCallback responseCb,
                                                          IceInternal.Functional_GenericCallback1 userExceptionCb,
                                                          IceInternal.Functional_GenericCallback1 exceptionCb,
                                                          IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_enableMetricsView(iceP_name,
                                             context,
                                             explicitCtx,
                                             synchronous,
                                             new IceInternal.Functional_TwowayCallbackVoidUE(responseCb, userExceptionCb, exceptionCb, sentCb)
                                                 {
                                                     public final void _iceCompleted(Ice.AsyncResult result)
                                                     {
                                                         MetricsAdminPrxHelper._iceI_enableMetricsView_completed(this, result);
                                                     }
                                                 });
    }

    private Ice.AsyncResult _iceI_begin_enableMetricsView(String iceP_name,
                                                          java.util.Map context,
                                                          boolean explicitCtx,
                                                          boolean synchronous,
                                                          IceInternal.CallbackBase cb)
    {
        _checkAsyncTwowayOnly(_enableMetricsView_name);
        IceInternal.OutgoingAsync result = getOutgoingAsync(_enableMetricsView_name, cb);
        try
        {
            result.prepare(_enableMetricsView_name, Ice.OperationMode.Normal, context, explicitCtx, synchronous);
            Ice.OutputStream ostr = result.startWriteParams(Ice.FormatType.SlicedFormat);
            ostr.writeString(iceP_name);
            result.endWriteParams();
            result.invoke();
        }
        catch(Ice.Exception ex)
        {
            result.abort(ex);
        }
        return result;
    }

    public void end_enableMetricsView(Ice.AsyncResult iresult)
        throws UnknownMetricsView
    {
        IceInternal.OutgoingAsync result_ = IceInternal.OutgoingAsync.check(iresult, this, _enableMetricsView_name);
        try
        {
            if(!result_.waitForResponseOrUserEx())
            {
                try
                {
                    result_.throwUserException();
                }
                catch(UnknownMetricsView ex_)
                {
                    throw ex_;
                }
                catch(Ice.UserException ex_)
                {
                    throw new Ice.UnknownUserException(ex_.ice_id(), ex_);
                }
            }
            result_.readEmptyParams();
        }
        finally
        {
            if(result_ != null)
            {
                result_.cacheMessageBuffers();
            }
        }
    }

    static public void _iceI_enableMetricsView_completed(Ice.TwowayCallbackVoidUE cb, Ice.AsyncResult result)
    {
        IceMX.MetricsAdminPrx _proxy = (IceMX.MetricsAdminPrx)result.getProxy();
        try
        {
            _proxy.end_enableMetricsView(result);
        }
        catch(Ice.UserException ex)
        {
            cb.exception(ex);
            return;
        }
        catch(Ice.LocalException ex)
        {
            cb.exception(ex);
            return;
        }
        catch(Ice.SystemException ex)
        {
            cb.exception(ex);
            return;
        }
        cb.response();
    }

    private static final String _disableMetricsView_name = "disableMetricsView";

    public void disableMetricsView(String name)
        throws UnknownMetricsView
    {
        _iceI_disableMetricsView(name, null, false);
    }

    public void disableMetricsView(String name, java.util.Map context)
        throws UnknownMetricsView
    {
        _iceI_disableMetricsView(name, context, true);
    }

    private void _iceI_disableMetricsView(String iceP_name, java.util.Map context, boolean explicitCtx)
        throws UnknownMetricsView
    {
        _checkTwowayOnly(_disableMetricsView_name);
        end_disableMetricsView(_iceI_begin_disableMetricsView(iceP_name, context, explicitCtx, true, null));
    }

    public Ice.AsyncResult begin_disableMetricsView(String name)
    {
        return _iceI_begin_disableMetricsView(name, null, false, false, null);
    }

    public Ice.AsyncResult begin_disableMetricsView(String name, java.util.Map context)
    {
        return _iceI_begin_disableMetricsView(name, context, true, false, null);
    }

    public Ice.AsyncResult begin_disableMetricsView(String name, Ice.Callback cb)
    {
        return _iceI_begin_disableMetricsView(name, null, false, false, cb);
    }

    public Ice.AsyncResult begin_disableMetricsView(String name, java.util.Map context, Ice.Callback cb)
    {
        return _iceI_begin_disableMetricsView(name, context, true, false, cb);
    }

    public Ice.AsyncResult begin_disableMetricsView(String name, Callback_MetricsAdmin_disableMetricsView cb)
    {
        return _iceI_begin_disableMetricsView(name, null, false, false, cb);
    }

    public Ice.AsyncResult begin_disableMetricsView(String name, java.util.Map context, Callback_MetricsAdmin_disableMetricsView cb)
    {
        return _iceI_begin_disableMetricsView(name, context, true, false, cb);
    }

    public Ice.AsyncResult begin_disableMetricsView(String name,
                                                    IceInternal.Functional_VoidCallback responseCb,
                                                    IceInternal.Functional_GenericCallback1 userExceptionCb,
                                                    IceInternal.Functional_GenericCallback1 exceptionCb)
    {
        return _iceI_begin_disableMetricsView(name, null, false, false, responseCb, userExceptionCb, exceptionCb, null);
    }

    public Ice.AsyncResult begin_disableMetricsView(String name,
                                                    IceInternal.Functional_VoidCallback responseCb,
                                                    IceInternal.Functional_GenericCallback1 userExceptionCb,
                                                    IceInternal.Functional_GenericCallback1 exceptionCb,
                                                    IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_disableMetricsView(name, null, false, false, responseCb, userExceptionCb, exceptionCb, sentCb);
    }

    public Ice.AsyncResult begin_disableMetricsView(String name,
                                                    java.util.Map context,
                                                    IceInternal.Functional_VoidCallback responseCb,
                                                    IceInternal.Functional_GenericCallback1 userExceptionCb,
                                                    IceInternal.Functional_GenericCallback1 exceptionCb)
    {
        return _iceI_begin_disableMetricsView(name, context, true, false, responseCb, userExceptionCb, exceptionCb, null);
    }

    public Ice.AsyncResult begin_disableMetricsView(String name,
                                                    java.util.Map context,
                                                    IceInternal.Functional_VoidCallback responseCb,
                                                    IceInternal.Functional_GenericCallback1 userExceptionCb,
                                                    IceInternal.Functional_GenericCallback1 exceptionCb,
                                                    IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_disableMetricsView(name, context, true, false, responseCb, userExceptionCb, exceptionCb, sentCb);
    }

    private Ice.AsyncResult _iceI_begin_disableMetricsView(String iceP_name,
                                                           java.util.Map context,
                                                           boolean explicitCtx,
                                                           boolean synchronous,
                                                           IceInternal.Functional_VoidCallback responseCb,
                                                           IceInternal.Functional_GenericCallback1 userExceptionCb,
                                                           IceInternal.Functional_GenericCallback1 exceptionCb,
                                                           IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_disableMetricsView(iceP_name,
                                              context,
                                              explicitCtx,
                                              synchronous,
                                              new IceInternal.Functional_TwowayCallbackVoidUE(responseCb, userExceptionCb, exceptionCb, sentCb)
                                                  {
                                                      public final void _iceCompleted(Ice.AsyncResult result)
                                                      {
                                                          MetricsAdminPrxHelper._iceI_disableMetricsView_completed(this, result);
                                                      }
                                                  });
    }

    private Ice.AsyncResult _iceI_begin_disableMetricsView(String iceP_name,
                                                           java.util.Map context,
                                                           boolean explicitCtx,
                                                           boolean synchronous,
                                                           IceInternal.CallbackBase cb)
    {
        _checkAsyncTwowayOnly(_disableMetricsView_name);
        IceInternal.OutgoingAsync result = getOutgoingAsync(_disableMetricsView_name, cb);
        try
        {
            result.prepare(_disableMetricsView_name, Ice.OperationMode.Normal, context, explicitCtx, synchronous);
            Ice.OutputStream ostr = result.startWriteParams(Ice.FormatType.SlicedFormat);
            ostr.writeString(iceP_name);
            result.endWriteParams();
            result.invoke();
        }
        catch(Ice.Exception ex)
        {
            result.abort(ex);
        }
        return result;
    }

    public void end_disableMetricsView(Ice.AsyncResult iresult)
        throws UnknownMetricsView
    {
        IceInternal.OutgoingAsync result_ = IceInternal.OutgoingAsync.check(iresult, this, _disableMetricsView_name);
        try
        {
            if(!result_.waitForResponseOrUserEx())
            {
                try
                {
                    result_.throwUserException();
                }
                catch(UnknownMetricsView ex_)
                {
                    throw ex_;
                }
                catch(Ice.UserException ex_)
                {
                    throw new Ice.UnknownUserException(ex_.ice_id(), ex_);
                }
            }
            result_.readEmptyParams();
        }
        finally
        {
            if(result_ != null)
            {
                result_.cacheMessageBuffers();
            }
        }
    }

    static public void _iceI_disableMetricsView_completed(Ice.TwowayCallbackVoidUE cb, Ice.AsyncResult result)
    {
        IceMX.MetricsAdminPrx _proxy = (IceMX.MetricsAdminPrx)result.getProxy();
        try
        {
            _proxy.end_disableMetricsView(result);
        }
        catch(Ice.UserException ex)
        {
            cb.exception(ex);
            return;
        }
        catch(Ice.LocalException ex)
        {
            cb.exception(ex);
            return;
        }
        catch(Ice.SystemException ex)
        {
            cb.exception(ex);
            return;
        }
        cb.response();
    }

    private static final String _getMetricsView_name = "getMetricsView";

    public java.util.Map getMetricsView(String view, Ice.LongHolder timestamp)
        throws UnknownMetricsView
    {
        return _iceI_getMetricsView(view, timestamp, null, false);
    }

    public java.util.Map getMetricsView(String view, Ice.LongHolder timestamp, java.util.Map context)
        throws UnknownMetricsView
    {
        return _iceI_getMetricsView(view, timestamp, context, true);
    }

    private java.util.Map _iceI_getMetricsView(String iceP_view, Ice.LongHolder iceP_timestamp, java.util.Map context, boolean explicitCtx)
        throws UnknownMetricsView
    {
        _checkTwowayOnly(_getMetricsView_name);
        return end_getMetricsView(iceP_timestamp, _iceI_begin_getMetricsView(iceP_view, context, explicitCtx, true, null));
    }

    public Ice.AsyncResult begin_getMetricsView(String view)
    {
        return _iceI_begin_getMetricsView(view, null, false, false, null);
    }

    public Ice.AsyncResult begin_getMetricsView(String view, java.util.Map context)
    {
        return _iceI_begin_getMetricsView(view, context, true, false, null);
    }

    public Ice.AsyncResult begin_getMetricsView(String view, Ice.Callback cb)
    {
        return _iceI_begin_getMetricsView(view, null, false, false, cb);
    }

    public Ice.AsyncResult begin_getMetricsView(String view, java.util.Map context, Ice.Callback cb)
    {
        return _iceI_begin_getMetricsView(view, context, true, false, cb);
    }

    public Ice.AsyncResult begin_getMetricsView(String view, Callback_MetricsAdmin_getMetricsView cb)
    {
        return _iceI_begin_getMetricsView(view, null, false, false, cb);
    }

    public Ice.AsyncResult begin_getMetricsView(String view, java.util.Map context, Callback_MetricsAdmin_getMetricsView cb)
    {
        return _iceI_begin_getMetricsView(view, context, true, false, cb);
    }

    public Ice.AsyncResult begin_getMetricsView(String view,
                                                FunctionalCallback_MetricsAdmin_getMetricsView_Response responseCb,
                                                IceInternal.Functional_GenericCallback1 userExceptionCb,
                                                IceInternal.Functional_GenericCallback1 exceptionCb)
    {
        return _iceI_begin_getMetricsView(view, null, false, false, responseCb, userExceptionCb, exceptionCb, null);
    }

    public Ice.AsyncResult begin_getMetricsView(String view,
                                                FunctionalCallback_MetricsAdmin_getMetricsView_Response responseCb,
                                                IceInternal.Functional_GenericCallback1 userExceptionCb,
                                                IceInternal.Functional_GenericCallback1 exceptionCb,
                                                IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_getMetricsView(view, null, false, false, responseCb, userExceptionCb, exceptionCb, sentCb);
    }

    public Ice.AsyncResult begin_getMetricsView(String view,
                                                java.util.Map context,
                                                FunctionalCallback_MetricsAdmin_getMetricsView_Response responseCb,
                                                IceInternal.Functional_GenericCallback1 userExceptionCb,
                                                IceInternal.Functional_GenericCallback1 exceptionCb)
    {
        return _iceI_begin_getMetricsView(view, context, true, false, responseCb, userExceptionCb, exceptionCb, null);
    }

    public Ice.AsyncResult begin_getMetricsView(String view,
                                                java.util.Map context,
                                                FunctionalCallback_MetricsAdmin_getMetricsView_Response responseCb,
                                                IceInternal.Functional_GenericCallback1 userExceptionCb,
                                                IceInternal.Functional_GenericCallback1 exceptionCb,
                                                IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_getMetricsView(view, context, true, false, responseCb, userExceptionCb, exceptionCb, sentCb);
    }

    private Ice.AsyncResult _iceI_begin_getMetricsView(String iceP_view,
                                                       java.util.Map context,
                                                       boolean explicitCtx,
                                                       boolean synchronous,
                                                       FunctionalCallback_MetricsAdmin_getMetricsView_Response responseCb,
                                                       IceInternal.Functional_GenericCallback1 userExceptionCb,
                                                       IceInternal.Functional_GenericCallback1 exceptionCb,
                                                       IceInternal.Functional_BoolCallback sentCb)
    {
        class CB extends IceInternal.Functional_TwowayCallbackUE implements IceMX._Callback_MetricsAdmin_getMetricsView
        {
            public CB(FunctionalCallback_MetricsAdmin_getMetricsView_Response responseCb,
                      IceInternal.Functional_GenericCallback1 userExceptionCb,
                      IceInternal.Functional_GenericCallback1 exceptionCb,
                      IceInternal.Functional_BoolCallback sentCb)
            {
                super(responseCb != null, userExceptionCb, exceptionCb, sentCb);
                _responseCb = responseCb;
            }

            public void response(java.util.Map ret, long timestamp)
            {
                if(_responseCb != null)
                {
                    _responseCb.apply(ret, timestamp);
                }
            }

            public final void _iceCompleted(Ice.AsyncResult result)
            {
                MetricsAdminPrxHelper._iceI_getMetricsView_completed(this, result);
            }

            private final FunctionalCallback_MetricsAdmin_getMetricsView_Response _responseCb;
        }
        return _iceI_begin_getMetricsView(iceP_view, context, explicitCtx, synchronous, new CB(responseCb, userExceptionCb, exceptionCb, sentCb));
    }

    private Ice.AsyncResult _iceI_begin_getMetricsView(String iceP_view,
                                                       java.util.Map context,
                                                       boolean explicitCtx,
                                                       boolean synchronous,
                                                       IceInternal.CallbackBase cb)
    {
        _checkAsyncTwowayOnly(_getMetricsView_name);
        IceInternal.OutgoingAsync result = getOutgoingAsync(_getMetricsView_name, cb);
        try
        {
            result.prepare(_getMetricsView_name, Ice.OperationMode.Normal, context, explicitCtx, synchronous);
            Ice.OutputStream ostr = result.startWriteParams(Ice.FormatType.SlicedFormat);
            ostr.writeString(iceP_view);
            result.endWriteParams();
            result.invoke();
        }
        catch(Ice.Exception ex)
        {
            result.abort(ex);
        }
        return result;
    }

    public java.util.Map end_getMetricsView(Ice.LongHolder timestamp, Ice.AsyncResult iresult)
        throws UnknownMetricsView
    {
        IceInternal.OutgoingAsync result_ = IceInternal.OutgoingAsync.check(iresult, this, _getMetricsView_name);
        try
        {
            if(!result_.waitForResponseOrUserEx())
            {
                try
                {
                    result_.throwUserException();
                }
                catch(UnknownMetricsView ex_)
                {
                    throw ex_;
                }
                catch(Ice.UserException ex_)
                {
                    throw new Ice.UnknownUserException(ex_.ice_id(), ex_);
                }
            }
            Ice.InputStream istr_ = result_.startReadParams();
            timestamp.value = istr_.readLong();
            java.util.Map ret_;
            ret_ = MetricsViewHelper.read(istr_);
            istr_.readPendingValues();
            result_.endReadParams();
            return ret_;
        }
        finally
        {
            if(result_ != null)
            {
                result_.cacheMessageBuffers();
            }
        }
    }

    static public void _iceI_getMetricsView_completed(_Callback_MetricsAdmin_getMetricsView cb, Ice.AsyncResult result)
    {
        IceMX.MetricsAdminPrx _proxy = (IceMX.MetricsAdminPrx)result.getProxy();
        java.util.Map ret = null;
        Ice.LongHolder iceP_timestamp = new Ice.LongHolder();
        try
        {
            ret = _proxy.end_getMetricsView(iceP_timestamp, result);
        }
        catch(Ice.UserException ex)
        {
            cb.exception(ex);
            return;
        }
        catch(Ice.LocalException ex)
        {
            cb.exception(ex);
            return;
        }
        catch(Ice.SystemException ex)
        {
            cb.exception(ex);
            return;
        }
        cb.response(ret, iceP_timestamp.value);
    }

    private static final String _getMapMetricsFailures_name = "getMapMetricsFailures";

    public MetricsFailures[] getMapMetricsFailures(String view, String map)
        throws UnknownMetricsView
    {
        return _iceI_getMapMetricsFailures(view, map, null, false);
    }

    public MetricsFailures[] getMapMetricsFailures(String view, String map, java.util.Map context)
        throws UnknownMetricsView
    {
        return _iceI_getMapMetricsFailures(view, map, context, true);
    }

    private MetricsFailures[] _iceI_getMapMetricsFailures(String iceP_view, String iceP_map, java.util.Map context, boolean explicitCtx)
        throws UnknownMetricsView
    {
        _checkTwowayOnly(_getMapMetricsFailures_name);
        return end_getMapMetricsFailures(_iceI_begin_getMapMetricsFailures(iceP_view, iceP_map, context, explicitCtx, true, null));
    }

    public Ice.AsyncResult begin_getMapMetricsFailures(String view, String map)
    {
        return _iceI_begin_getMapMetricsFailures(view, map, null, false, false, null);
    }

    public Ice.AsyncResult begin_getMapMetricsFailures(String view, String map, java.util.Map context)
    {
        return _iceI_begin_getMapMetricsFailures(view, map, context, true, false, null);
    }

    public Ice.AsyncResult begin_getMapMetricsFailures(String view, String map, Ice.Callback cb)
    {
        return _iceI_begin_getMapMetricsFailures(view, map, null, false, false, cb);
    }

    public Ice.AsyncResult begin_getMapMetricsFailures(String view, String map, java.util.Map context, Ice.Callback cb)
    {
        return _iceI_begin_getMapMetricsFailures(view, map, context, true, false, cb);
    }

    public Ice.AsyncResult begin_getMapMetricsFailures(String view, String map, Callback_MetricsAdmin_getMapMetricsFailures cb)
    {
        return _iceI_begin_getMapMetricsFailures(view, map, null, false, false, cb);
    }

    public Ice.AsyncResult begin_getMapMetricsFailures(String view, String map, java.util.Map context, Callback_MetricsAdmin_getMapMetricsFailures cb)
    {
        return _iceI_begin_getMapMetricsFailures(view, map, context, true, false, cb);
    }

    public Ice.AsyncResult begin_getMapMetricsFailures(String view,
                                                       String map,
                                                       IceInternal.Functional_GenericCallback1 responseCb,
                                                       IceInternal.Functional_GenericCallback1 userExceptionCb,
                                                       IceInternal.Functional_GenericCallback1 exceptionCb)
    {
        return _iceI_begin_getMapMetricsFailures(view, map, null, false, false, responseCb, userExceptionCb, exceptionCb, null);
    }

    public Ice.AsyncResult begin_getMapMetricsFailures(String view,
                                                       String map,
                                                       IceInternal.Functional_GenericCallback1 responseCb,
                                                       IceInternal.Functional_GenericCallback1 userExceptionCb,
                                                       IceInternal.Functional_GenericCallback1 exceptionCb,
                                                       IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_getMapMetricsFailures(view, map, null, false, false, responseCb, userExceptionCb, exceptionCb, sentCb);
    }

    public Ice.AsyncResult begin_getMapMetricsFailures(String view,
                                                       String map,
                                                       java.util.Map context,
                                                       IceInternal.Functional_GenericCallback1 responseCb,
                                                       IceInternal.Functional_GenericCallback1 userExceptionCb,
                                                       IceInternal.Functional_GenericCallback1 exceptionCb)
    {
        return _iceI_begin_getMapMetricsFailures(view, map, context, true, false, responseCb, userExceptionCb, exceptionCb, null);
    }

    public Ice.AsyncResult begin_getMapMetricsFailures(String view,
                                                       String map,
                                                       java.util.Map context,
                                                       IceInternal.Functional_GenericCallback1 responseCb,
                                                       IceInternal.Functional_GenericCallback1 userExceptionCb,
                                                       IceInternal.Functional_GenericCallback1 exceptionCb,
                                                       IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_getMapMetricsFailures(view, map, context, true, false, responseCb, userExceptionCb, exceptionCb, sentCb);
    }

    private Ice.AsyncResult _iceI_begin_getMapMetricsFailures(String iceP_view,
                                                              String iceP_map,
                                                              java.util.Map context,
                                                              boolean explicitCtx,
                                                              boolean synchronous,
                                                              IceInternal.Functional_GenericCallback1 responseCb,
                                                              IceInternal.Functional_GenericCallback1 userExceptionCb,
                                                              IceInternal.Functional_GenericCallback1 exceptionCb,
                                                              IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_getMapMetricsFailures(iceP_view,
                                                 iceP_map,
                                                 context,
                                                 explicitCtx,
                                                 synchronous,
                                                 new IceInternal.Functional_TwowayCallbackArg1UE(responseCb, userExceptionCb, exceptionCb, sentCb)
                                                     {
                                                         public final void _iceCompleted(Ice.AsyncResult result)
                                                         {
                                                             MetricsAdminPrxHelper._iceI_getMapMetricsFailures_completed(this, result);
                                                         }
                                                     });
    }

    private Ice.AsyncResult _iceI_begin_getMapMetricsFailures(String iceP_view,
                                                              String iceP_map,
                                                              java.util.Map context,
                                                              boolean explicitCtx,
                                                              boolean synchronous,
                                                              IceInternal.CallbackBase cb)
    {
        _checkAsyncTwowayOnly(_getMapMetricsFailures_name);
        IceInternal.OutgoingAsync result = getOutgoingAsync(_getMapMetricsFailures_name, cb);
        try
        {
            result.prepare(_getMapMetricsFailures_name, Ice.OperationMode.Normal, context, explicitCtx, synchronous);
            Ice.OutputStream ostr = result.startWriteParams(Ice.FormatType.SlicedFormat);
            ostr.writeString(iceP_view);
            ostr.writeString(iceP_map);
            result.endWriteParams();
            result.invoke();
        }
        catch(Ice.Exception ex)
        {
            result.abort(ex);
        }
        return result;
    }

    public MetricsFailures[] end_getMapMetricsFailures(Ice.AsyncResult iresult)
        throws UnknownMetricsView
    {
        IceInternal.OutgoingAsync result_ = IceInternal.OutgoingAsync.check(iresult, this, _getMapMetricsFailures_name);
        try
        {
            if(!result_.waitForResponseOrUserEx())
            {
                try
                {
                    result_.throwUserException();
                }
                catch(UnknownMetricsView ex_)
                {
                    throw ex_;
                }
                catch(Ice.UserException ex_)
                {
                    throw new Ice.UnknownUserException(ex_.ice_id(), ex_);
                }
            }
            Ice.InputStream istr_ = result_.startReadParams();
            MetricsFailures[] ret_;
            ret_ = MetricsFailuresSeqHelper.read(istr_);
            result_.endReadParams();
            return ret_;
        }
        finally
        {
            if(result_ != null)
            {
                result_.cacheMessageBuffers();
            }
        }
    }

    static public void _iceI_getMapMetricsFailures_completed(Ice.TwowayCallbackArg1UE cb, Ice.AsyncResult result)
    {
        IceMX.MetricsAdminPrx _proxy = (IceMX.MetricsAdminPrx)result.getProxy();
        MetricsFailures[] ret = null;
        try
        {
            ret = _proxy.end_getMapMetricsFailures(result);
        }
        catch(Ice.UserException ex)
        {
            cb.exception(ex);
            return;
        }
        catch(Ice.LocalException ex)
        {
            cb.exception(ex);
            return;
        }
        catch(Ice.SystemException ex)
        {
            cb.exception(ex);
            return;
        }
        cb.response(ret);
    }

    private static final String _getMetricsFailures_name = "getMetricsFailures";

    public MetricsFailures getMetricsFailures(String view, String map, String id)
        throws UnknownMetricsView
    {
        return _iceI_getMetricsFailures(view, map, id, null, false);
    }

    public MetricsFailures getMetricsFailures(String view, String map, String id, java.util.Map context)
        throws UnknownMetricsView
    {
        return _iceI_getMetricsFailures(view, map, id, context, true);
    }

    private MetricsFailures _iceI_getMetricsFailures(String iceP_view, String iceP_map, String iceP_id, java.util.Map context, boolean explicitCtx)
        throws UnknownMetricsView
    {
        _checkTwowayOnly(_getMetricsFailures_name);
        return end_getMetricsFailures(_iceI_begin_getMetricsFailures(iceP_view, iceP_map, iceP_id, context, explicitCtx, true, null));
    }

    public Ice.AsyncResult begin_getMetricsFailures(String view, String map, String id)
    {
        return _iceI_begin_getMetricsFailures(view, map, id, null, false, false, null);
    }

    public Ice.AsyncResult begin_getMetricsFailures(String view, String map, String id, java.util.Map context)
    {
        return _iceI_begin_getMetricsFailures(view, map, id, context, true, false, null);
    }

    public Ice.AsyncResult begin_getMetricsFailures(String view, String map, String id, Ice.Callback cb)
    {
        return _iceI_begin_getMetricsFailures(view, map, id, null, false, false, cb);
    }

    public Ice.AsyncResult begin_getMetricsFailures(String view, String map, String id, java.util.Map context, Ice.Callback cb)
    {
        return _iceI_begin_getMetricsFailures(view, map, id, context, true, false, cb);
    }

    public Ice.AsyncResult begin_getMetricsFailures(String view, String map, String id, Callback_MetricsAdmin_getMetricsFailures cb)
    {
        return _iceI_begin_getMetricsFailures(view, map, id, null, false, false, cb);
    }

    public Ice.AsyncResult begin_getMetricsFailures(String view, String map, String id, java.util.Map context, Callback_MetricsAdmin_getMetricsFailures cb)
    {
        return _iceI_begin_getMetricsFailures(view, map, id, context, true, false, cb);
    }

    public Ice.AsyncResult begin_getMetricsFailures(String view,
                                                    String map,
                                                    String id,
                                                    IceInternal.Functional_GenericCallback1 responseCb,
                                                    IceInternal.Functional_GenericCallback1 userExceptionCb,
                                                    IceInternal.Functional_GenericCallback1 exceptionCb)
    {
        return _iceI_begin_getMetricsFailures(view, map, id, null, false, false, responseCb, userExceptionCb, exceptionCb, null);
    }

    public Ice.AsyncResult begin_getMetricsFailures(String view,
                                                    String map,
                                                    String id,
                                                    IceInternal.Functional_GenericCallback1 responseCb,
                                                    IceInternal.Functional_GenericCallback1 userExceptionCb,
                                                    IceInternal.Functional_GenericCallback1 exceptionCb,
                                                    IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_getMetricsFailures(view, map, id, null, false, false, responseCb, userExceptionCb, exceptionCb, sentCb);
    }

    public Ice.AsyncResult begin_getMetricsFailures(String view,
                                                    String map,
                                                    String id,
                                                    java.util.Map context,
                                                    IceInternal.Functional_GenericCallback1 responseCb,
                                                    IceInternal.Functional_GenericCallback1 userExceptionCb,
                                                    IceInternal.Functional_GenericCallback1 exceptionCb)
    {
        return _iceI_begin_getMetricsFailures(view, map, id, context, true, false, responseCb, userExceptionCb, exceptionCb, null);
    }

    public Ice.AsyncResult begin_getMetricsFailures(String view,
                                                    String map,
                                                    String id,
                                                    java.util.Map context,
                                                    IceInternal.Functional_GenericCallback1 responseCb,
                                                    IceInternal.Functional_GenericCallback1 userExceptionCb,
                                                    IceInternal.Functional_GenericCallback1 exceptionCb,
                                                    IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_getMetricsFailures(view, map, id, context, true, false, responseCb, userExceptionCb, exceptionCb, sentCb);
    }

    private Ice.AsyncResult _iceI_begin_getMetricsFailures(String iceP_view,
                                                           String iceP_map,
                                                           String iceP_id,
                                                           java.util.Map context,
                                                           boolean explicitCtx,
                                                           boolean synchronous,
                                                           IceInternal.Functional_GenericCallback1 responseCb,
                                                           IceInternal.Functional_GenericCallback1 userExceptionCb,
                                                           IceInternal.Functional_GenericCallback1 exceptionCb,
                                                           IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_getMetricsFailures(iceP_view,
                                              iceP_map,
                                              iceP_id,
                                              context,
                                              explicitCtx,
                                              synchronous,
                                              new IceInternal.Functional_TwowayCallbackArg1UE(responseCb, userExceptionCb, exceptionCb, sentCb)
                                                  {
                                                      public final void _iceCompleted(Ice.AsyncResult result)
                                                      {
                                                          MetricsAdminPrxHelper._iceI_getMetricsFailures_completed(this, result);
                                                      }
                                                  });
    }

    private Ice.AsyncResult _iceI_begin_getMetricsFailures(String iceP_view,
                                                           String iceP_map,
                                                           String iceP_id,
                                                           java.util.Map context,
                                                           boolean explicitCtx,
                                                           boolean synchronous,
                                                           IceInternal.CallbackBase cb)
    {
        _checkAsyncTwowayOnly(_getMetricsFailures_name);
        IceInternal.OutgoingAsync result = getOutgoingAsync(_getMetricsFailures_name, cb);
        try
        {
            result.prepare(_getMetricsFailures_name, Ice.OperationMode.Normal, context, explicitCtx, synchronous);
            Ice.OutputStream ostr = result.startWriteParams(Ice.FormatType.SlicedFormat);
            ostr.writeString(iceP_view);
            ostr.writeString(iceP_map);
            ostr.writeString(iceP_id);
            result.endWriteParams();
            result.invoke();
        }
        catch(Ice.Exception ex)
        {
            result.abort(ex);
        }
        return result;
    }

    public MetricsFailures end_getMetricsFailures(Ice.AsyncResult iresult)
        throws UnknownMetricsView
    {
        IceInternal.OutgoingAsync result_ = IceInternal.OutgoingAsync.check(iresult, this, _getMetricsFailures_name);
        try
        {
            if(!result_.waitForResponseOrUserEx())
            {
                try
                {
                    result_.throwUserException();
                }
                catch(UnknownMetricsView ex_)
                {
                    throw ex_;
                }
                catch(Ice.UserException ex_)
                {
                    throw new Ice.UnknownUserException(ex_.ice_id(), ex_);
                }
            }
            Ice.InputStream istr_ = result_.startReadParams();
            MetricsFailures ret_ = null;
            ret_ = MetricsFailures.ice_read(istr_);
            result_.endReadParams();
            return ret_;
        }
        finally
        {
            if(result_ != null)
            {
                result_.cacheMessageBuffers();
            }
        }
    }

    static public void _iceI_getMetricsFailures_completed(Ice.TwowayCallbackArg1UE cb, Ice.AsyncResult result)
    {
        IceMX.MetricsAdminPrx _proxy = (IceMX.MetricsAdminPrx)result.getProxy();
        MetricsFailures ret = null;
        try
        {
            ret = _proxy.end_getMetricsFailures(result);
        }
        catch(Ice.UserException ex)
        {
            cb.exception(ex);
            return;
        }
        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 MetricsAdminPrx checkedCast(Ice.ObjectPrx obj)
    {
        return checkedCastImpl(obj, ice_staticId(), MetricsAdminPrx.class, MetricsAdminPrxHelper.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 MetricsAdminPrx checkedCast(Ice.ObjectPrx obj, java.util.Map context)
    {
        return checkedCastImpl(obj, context, ice_staticId(), MetricsAdminPrx.class, MetricsAdminPrxHelper.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 MetricsAdminPrx checkedCast(Ice.ObjectPrx obj, String facet)
    {
        return checkedCastImpl(obj, facet, ice_staticId(), MetricsAdminPrx.class, MetricsAdminPrxHelper.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 MetricsAdminPrx checkedCast(Ice.ObjectPrx obj, String facet, java.util.Map context)
    {
        return checkedCastImpl(obj, facet, context, ice_staticId(), MetricsAdminPrx.class, MetricsAdminPrxHelper.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 MetricsAdminPrx uncheckedCast(Ice.ObjectPrx obj)
    {
        return uncheckedCastImpl(obj, MetricsAdminPrx.class, MetricsAdminPrxHelper.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 MetricsAdminPrx uncheckedCast(Ice.ObjectPrx obj, String facet)
    {
        return uncheckedCastImpl(obj, facet, MetricsAdminPrx.class, MetricsAdminPrxHelper.class);
    }

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

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

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

    public static final long serialVersionUID = 0L;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy