IceMX.Metrics Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ice-compat Show documentation
Show all versions of ice-compat Show documentation
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;
/**
* The base class for metrics. A metrics object represents a
* collection of measurements associated to a given a system.
*
**/
public class Metrics extends Ice.ObjectImpl
{
public Metrics()
{
this.id = "";
this.total = 0L;
this.current = 0;
this.totalLifetime = 0L;
this.failures = 0;
}
public Metrics(String id, long total, int current, long totalLifetime, int failures)
{
this.id = id;
this.total = total;
this.current = current;
this.totalLifetime = totalLifetime;
this.failures = failures;
}
private static class _F implements Ice.ValueFactory
{
public Ice.Object create(String type)
{
assert(type.equals(ice_staticId()));
return new Metrics();
}
}
private static Ice.ValueFactory _factory = new _F();
public static Ice.ValueFactory
ice_factory()
{
return _factory;
}
private static final String[] _ids =
{
"::Ice::Object",
"::IceMX::Metrics"
};
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];
}
protected void _iceWriteImpl(Ice.OutputStream ostr_)
{
ostr_.startSlice(ice_staticId(), -1, true);
ostr_.writeString(id);
ostr_.writeLong(total);
ostr_.writeInt(current);
ostr_.writeLong(totalLifetime);
ostr_.writeInt(failures);
ostr_.endSlice();
}
protected void _iceReadImpl(Ice.InputStream istr_)
{
istr_.startSlice();
id = istr_.readString();
total = istr_.readLong();
current = istr_.readInt();
totalLifetime = istr_.readLong();
failures = istr_.readInt();
istr_.endSlice();
}
/**
* The metrics identifier.
*
**/
public String id;
/**
* The total number of objects observed by this metrics. This includes
* the number of currently observed objects and the number of objects
* observed in the past.
*
**/
public long total;
/**
* The number of objects currently observed by this metrics.
*
**/
public int current;
/**
* The sum of the lifetime of each observed objects. This does not
* include the lifetime of objects which are currently observed,
* only the objects observed in the past.
*
**/
public long totalLifetime;
/**
* The number of failures observed.
*
**/
public int failures;
public Metrics
clone()
{
return (Metrics)super.clone();
}
public static final long serialVersionUID = 5637578887472768063L;
}