IceGrid.RegistryInfo 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;
/**
* Information about an IceGrid registry replica.
*
**/
public class RegistryInfo implements java.lang.Cloneable,
java.io.Serializable
{
/**
* The name of the registry.
*
**/
public String name;
/**
* The network name of the host running this registry (as defined in
* uname()).
*
**/
public String hostname;
public RegistryInfo()
{
this.name = "";
this.hostname = "";
}
public RegistryInfo(String name, String hostname)
{
this.name = name;
this.hostname = hostname;
}
public boolean
equals(java.lang.Object rhs)
{
if(this == rhs)
{
return true;
}
RegistryInfo r = null;
if(rhs instanceof RegistryInfo)
{
r = (RegistryInfo)rhs;
}
if(r != null)
{
if(this.name != r.name)
{
if(this.name == null || r.name == null || !this.name.equals(r.name))
{
return false;
}
}
if(this.hostname != r.hostname)
{
if(this.hostname == null || r.hostname == null || !this.hostname.equals(r.hostname))
{
return false;
}
}
return true;
}
return false;
}
public int
hashCode()
{
int h_ = 5381;
h_ = IceInternal.HashUtil.hashAdd(h_, "::IceGrid::RegistryInfo");
h_ = IceInternal.HashUtil.hashAdd(h_, name);
h_ = IceInternal.HashUtil.hashAdd(h_, hostname);
return h_;
}
public RegistryInfo
clone()
{
RegistryInfo c = null;
try
{
c = (RegistryInfo)super.clone();
}
catch(CloneNotSupportedException ex)
{
assert false; // impossible
}
return c;
}
public void
ice_writeMembers(Ice.OutputStream ostr)
{
ostr.writeString(this.name);
ostr.writeString(this.hostname);
}
public void
ice_readMembers(Ice.InputStream istr)
{
this.name = istr.readString();
this.hostname = istr.readString();
}
static public void
ice_write(Ice.OutputStream ostr, RegistryInfo v)
{
if(v == null)
{
_nullMarshalValue.ice_writeMembers(ostr);
}
else
{
v.ice_writeMembers(ostr);
}
}
static public RegistryInfo
ice_read(Ice.InputStream istr)
{
RegistryInfo v = new RegistryInfo();
v.ice_readMembers(istr);
return v;
}
private static final RegistryInfo _nullMarshalValue = new RegistryInfo();
public static final long serialVersionUID = -8272433353202123033L;
}