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

IceMX.SubscriberMetrics Maven / Gradle / Ivy

There is a newer version: 3.7.10
Show newest version
// **********************************************************************
//
// Copyright (c) 2003-2018 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************
//
// Ice version 3.7.1
//
// 
//
// Generated from file `Metrics.ice'
//
// Warning: do not edit this file.
//
// 
//

package IceMX;

/**
 * Provides information on IceStorm subscribers.
 *
 **/
public class SubscriberMetrics extends Metrics
{
    public SubscriberMetrics()
    {
        super();
        this.queued = 0;
        this.outstanding = 0;
        this.delivered = 0L;
    }

    public SubscriberMetrics(String id, long total, int current, long totalLifetime, int failures, int queued, int outstanding, long delivered)
    {
        super(id, total, current, totalLifetime, failures);
        this.queued = queued;
        this.outstanding = outstanding;
        this.delivered = delivered;
    }

    private static class _F implements Ice.ValueFactory
    {
        public Ice.Object create(String type)
        {
            assert(type.equals(ice_staticId()));
            return new SubscriberMetrics();
        }
    }
    private static Ice.ValueFactory _factory = new _F();

    public static Ice.ValueFactory
    ice_factory()
    {
        return _factory;
    }

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

    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[2];
    }

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

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

    protected void _iceWriteImpl(Ice.OutputStream ostr_)
    {
        ostr_.startSlice(ice_staticId(), -1, false);
        ostr_.writeInt(queued);
        ostr_.writeInt(outstanding);
        ostr_.writeLong(delivered);
        ostr_.endSlice();
        super._iceWriteImpl(ostr_);
    }

    protected void _iceReadImpl(Ice.InputStream istr_)
    {
        istr_.startSlice();
        queued = istr_.readInt();
        outstanding = istr_.readInt();
        delivered = istr_.readLong();
        istr_.endSlice();
        super._iceReadImpl(istr_);
    }

    /**
     * Number of queued events.
     *
     **/
    public int queued;

    /**
     * Number of outstanding events.
     *
     **/
    public int outstanding;

    /**
     * Number of forwarded events.
     *
     **/
    public long delivered;

    public SubscriberMetrics
    clone()
    {
        return (SubscriberMetrics)super.clone();
    }

    public static final long serialVersionUID = 9177685135024968031L;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy