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

IceMX._MetricsAdminDisp 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;

public abstract class _MetricsAdminDisp extends Ice.ObjectImpl implements MetricsAdmin
{
    private static final String[] _ids =
    {
        "::Ice::Object",
        "::IceMX::MetricsAdmin"
    };

    public boolean ice_isA(String s)
    {
        return java.util.Arrays.binarySearch(_ids, s) >= 0;
    }

    public boolean ice_isA(String s, Ice.Current current)
    {
        return java.util.Arrays.binarySearch(_ids, s) >= 0;
    }

    public String[] ice_ids()
    {
        return _ids;
    }

    public String[] ice_ids(Ice.Current current)
    {
        return _ids;
    }

    public String ice_id()
    {
        return _ids[1];
    }

    public String ice_id(Ice.Current current)
    {
        return _ids[1];
    }

    public static String ice_staticId()
    {
        return _ids[1];
    }

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

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

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

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

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

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

    public static boolean _iceD_getMetricsViewNames(MetricsAdmin obj, IceInternal.Incoming inS, Ice.Current current)
        throws Ice.UserException
    {
        _iceCheckMode(Ice.OperationMode.Normal, current.mode);
        inS.readEmptyParams();
        inS.setFormat(Ice.FormatType.SlicedFormat);
        Ice.StringSeqHolder iceP_disabledViews = new Ice.StringSeqHolder();
        String[] ret = obj.getMetricsViewNames(iceP_disabledViews, current);
        Ice.OutputStream ostr = inS.startWriteParams();
        Ice.StringSeqHelper.write(ostr, iceP_disabledViews.value);
        Ice.StringSeqHelper.write(ostr, ret);
        inS.endWriteParams();
        return true;
    }

    public static boolean _iceD_enableMetricsView(MetricsAdmin obj, IceInternal.Incoming inS, Ice.Current current)
        throws Ice.UserException
    {
        _iceCheckMode(Ice.OperationMode.Normal, current.mode);
        Ice.InputStream istr = inS.startReadParams();
        String iceP_name;
        iceP_name = istr.readString();
        inS.endReadParams();
        inS.setFormat(Ice.FormatType.SlicedFormat);
        obj.enableMetricsView(iceP_name, current);
        inS.writeEmptyParams();
        return true;
    }

    public static boolean _iceD_disableMetricsView(MetricsAdmin obj, IceInternal.Incoming inS, Ice.Current current)
        throws Ice.UserException
    {
        _iceCheckMode(Ice.OperationMode.Normal, current.mode);
        Ice.InputStream istr = inS.startReadParams();
        String iceP_name;
        iceP_name = istr.readString();
        inS.endReadParams();
        inS.setFormat(Ice.FormatType.SlicedFormat);
        obj.disableMetricsView(iceP_name, current);
        inS.writeEmptyParams();
        return true;
    }

    public static boolean _iceD_getMetricsView(MetricsAdmin obj, IceInternal.Incoming inS, Ice.Current current)
        throws Ice.UserException
    {
        _iceCheckMode(Ice.OperationMode.Normal, current.mode);
        Ice.InputStream istr = inS.startReadParams();
        String iceP_view;
        iceP_view = istr.readString();
        inS.endReadParams();
        inS.setFormat(Ice.FormatType.SlicedFormat);
        Ice.LongHolder iceP_timestamp = new Ice.LongHolder();
        java.util.Map ret = obj.getMetricsView(iceP_view, iceP_timestamp, current);
        Ice.OutputStream ostr = inS.startWriteParams();
        ostr.writeLong(iceP_timestamp.value);
        MetricsViewHelper.write(ostr, ret);
        ostr.writePendingValues();
        inS.endWriteParams();
        return true;
    }

    public static boolean _iceD_getMapMetricsFailures(MetricsAdmin obj, IceInternal.Incoming inS, Ice.Current current)
        throws Ice.UserException
    {
        _iceCheckMode(Ice.OperationMode.Normal, current.mode);
        Ice.InputStream istr = inS.startReadParams();
        String iceP_view;
        String iceP_map;
        iceP_view = istr.readString();
        iceP_map = istr.readString();
        inS.endReadParams();
        inS.setFormat(Ice.FormatType.SlicedFormat);
        MetricsFailures[] ret = obj.getMapMetricsFailures(iceP_view, iceP_map, current);
        Ice.OutputStream ostr = inS.startWriteParams();
        MetricsFailuresSeqHelper.write(ostr, ret);
        inS.endWriteParams();
        return true;
    }

    public static boolean _iceD_getMetricsFailures(MetricsAdmin obj, IceInternal.Incoming inS, Ice.Current current)
        throws Ice.UserException
    {
        _iceCheckMode(Ice.OperationMode.Normal, current.mode);
        Ice.InputStream istr = inS.startReadParams();
        String iceP_view;
        String iceP_map;
        String iceP_id;
        iceP_view = istr.readString();
        iceP_map = istr.readString();
        iceP_id = istr.readString();
        inS.endReadParams();
        inS.setFormat(Ice.FormatType.SlicedFormat);
        MetricsFailures ret = obj.getMetricsFailures(iceP_view, iceP_map, iceP_id, current);
        Ice.OutputStream ostr = inS.startWriteParams();
        MetricsFailures.ice_write(ostr, ret);
        inS.endWriteParams();
        return true;
    }

    private final static String[] _all =
    {
        "disableMetricsView",
        "enableMetricsView",
        "getMapMetricsFailures",
        "getMetricsFailures",
        "getMetricsView",
        "getMetricsViewNames",
        "ice_id",
        "ice_ids",
        "ice_isA",
        "ice_ping"
    };

    public boolean _iceDispatch(IceInternal.Incoming in, Ice.Current current)
        throws Ice.UserException
    {
        int pos = java.util.Arrays.binarySearch(_all, current.operation);
        if(pos < 0)
        {
            throw new Ice.OperationNotExistException(current.id, current.facet, current.operation);
        }

        switch(pos)
        {
            case 0:
            {
                return _iceD_disableMetricsView(this, in, current);
            }
            case 1:
            {
                return _iceD_enableMetricsView(this, in, current);
            }
            case 2:
            {
                return _iceD_getMapMetricsFailures(this, in, current);
            }
            case 3:
            {
                return _iceD_getMetricsFailures(this, in, current);
            }
            case 4:
            {
                return _iceD_getMetricsView(this, in, current);
            }
            case 5:
            {
                return _iceD_getMetricsViewNames(this, in, current);
            }
            case 6:
            {
                return _iceD_ice_id(this, in, current);
            }
            case 7:
            {
                return _iceD_ice_ids(this, in, current);
            }
            case 8:
            {
                return _iceD_ice_isA(this, in, current);
            }
            case 9:
            {
                return _iceD_ice_ping(this, in, current);
            }
        }

        assert(false);
        throw new Ice.OperationNotExistException(current.id, current.facet, current.operation);
    }

    protected void _iceWriteImpl(Ice.OutputStream ostr_)
    {
        ostr_.startSlice(ice_staticId(), -1, true);
        ostr_.endSlice();
    }

    protected void _iceReadImpl(Ice.InputStream istr_)
    {
        istr_.startSlice();
        istr_.endSlice();
    }

    public static final long serialVersionUID = 0L;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy