IceMX.MetricsFailures 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
//
// Copyright (c) ZeroC, Inc. All rights reserved.
//
//
// Ice version 3.7.3
//
//
//
// Generated from file `Metrics.ice'
//
// Warning: do not edit this file.
//
//
//
package IceMX;
/**
* A structure to keep track of failures associated with a given
* metrics.
*
**/
public class MetricsFailures implements java.lang.Cloneable,
java.io.Serializable
{
/**
* The identifier of the metrics object associated to the
* failures.
*
**/
public String id;
/**
* The failures observed for this metrics.
*
**/
public java.util.Map failures;
public MetricsFailures()
{
this.id = "";
}
public MetricsFailures(String id, java.util.Map failures)
{
this.id = id;
this.failures = failures;
}
public boolean
equals(java.lang.Object rhs)
{
if(this == rhs)
{
return true;
}
MetricsFailures r = null;
if(rhs instanceof MetricsFailures)
{
r = (MetricsFailures)rhs;
}
if(r != null)
{
if(this.id != r.id)
{
if(this.id == null || r.id == null || !this.id.equals(r.id))
{
return false;
}
}
if(this.failures != r.failures)
{
if(this.failures == null || r.failures == null || !this.failures.equals(r.failures))
{
return false;
}
}
return true;
}
return false;
}
public int
hashCode()
{
int h_ = 5381;
h_ = IceInternal.HashUtil.hashAdd(h_, "::IceMX::MetricsFailures");
h_ = IceInternal.HashUtil.hashAdd(h_, id);
h_ = IceInternal.HashUtil.hashAdd(h_, failures);
return h_;
}
public MetricsFailures
clone()
{
MetricsFailures c = null;
try
{
c = (MetricsFailures)super.clone();
}
catch(CloneNotSupportedException ex)
{
assert false; // impossible
}
return c;
}
public void
ice_writeMembers(Ice.OutputStream ostr)
{
ostr.writeString(this.id);
StringIntDictHelper.write(ostr, this.failures);
}
public void
ice_readMembers(Ice.InputStream istr)
{
this.id = istr.readString();
this.failures = StringIntDictHelper.read(istr);
}
static public void
ice_write(Ice.OutputStream ostr, MetricsFailures v)
{
if(v == null)
{
_nullMarshalValue.ice_writeMembers(ostr);
}
else
{
v.ice_writeMembers(ostr);
}
}
static public MetricsFailures
ice_read(Ice.InputStream istr)
{
MetricsFailures v = new MetricsFailures();
v.ice_readMembers(istr);
return v;
}
private static final MetricsFailures _nullMarshalValue = new MetricsFailures();
public static final long serialVersionUID = 6458117982298063723L;
}