IceGrid.AdapterDynamicInfo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of icegrid-compat Show documentation
Show all versions of icegrid-compat Show documentation
Locate, deploy, and manage Ice servers
//
// Copyright (c) ZeroC, Inc. All rights reserved.
//
//
// Ice version 3.7.3
//
//
//
// Generated from file `Admin.ice'
//
// Warning: do not edit this file.
//
//
//
package IceGrid;
/**
* Dynamic information about the state of an adapter.
*
**/
public class AdapterDynamicInfo implements java.lang.Cloneable,
java.io.Serializable
{
/**
* The id of the adapter.
*
**/
public String id;
/**
* The direct proxy containing the adapter endpoints.
*
**/
public Ice.ObjectPrx proxy;
public AdapterDynamicInfo()
{
this.id = "";
}
public AdapterDynamicInfo(String id, Ice.ObjectPrx proxy)
{
this.id = id;
this.proxy = proxy;
}
public boolean
equals(java.lang.Object rhs)
{
if(this == rhs)
{
return true;
}
AdapterDynamicInfo r = null;
if(rhs instanceof AdapterDynamicInfo)
{
r = (AdapterDynamicInfo)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.proxy != r.proxy)
{
if(this.proxy == null || r.proxy == null || !this.proxy.equals(r.proxy))
{
return false;
}
}
return true;
}
return false;
}
public int
hashCode()
{
int h_ = 5381;
h_ = IceInternal.HashUtil.hashAdd(h_, "::IceGrid::AdapterDynamicInfo");
h_ = IceInternal.HashUtil.hashAdd(h_, id);
h_ = IceInternal.HashUtil.hashAdd(h_, proxy);
return h_;
}
public AdapterDynamicInfo
clone()
{
AdapterDynamicInfo c = null;
try
{
c = (AdapterDynamicInfo)super.clone();
}
catch(CloneNotSupportedException ex)
{
assert false; // impossible
}
return c;
}
public void
ice_writeMembers(Ice.OutputStream ostr)
{
ostr.writeString(this.id);
ostr.writeProxy(this.proxy);
}
public void
ice_readMembers(Ice.InputStream istr)
{
this.id = istr.readString();
this.proxy = istr.readProxy();
}
static public void
ice_write(Ice.OutputStream ostr, AdapterDynamicInfo v)
{
if(v == null)
{
_nullMarshalValue.ice_writeMembers(ostr);
}
else
{
v.ice_writeMembers(ostr);
}
}
static public AdapterDynamicInfo
ice_read(Ice.InputStream istr)
{
AdapterDynamicInfo v = new AdapterDynamicInfo();
v.ice_readMembers(istr);
return v;
}
private static final AdapterDynamicInfo _nullMarshalValue = new AdapterDynamicInfo();
public static final long serialVersionUID = 6025064701922862545L;
}