IceGrid.ApplicationInfo 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 application.
*
**/
public class ApplicationInfo implements java.lang.Cloneable,
java.io.Serializable
{
/**
* Unique application identifier.
**/
public String uuid;
/**
* The creation time.
**/
public long createTime;
/**
* The user who created the application.
**/
public String createUser;
/**
* The update time.
**/
public long updateTime;
/**
* The user who updated the application.
**/
public String updateUser;
/**
* The application revision number.
**/
public int revision;
/**
* The application descriptor
**/
public ApplicationDescriptor descriptor;
public ApplicationInfo()
{
this.uuid = "";
this.createUser = "";
this.updateUser = "";
this.descriptor = new ApplicationDescriptor();
}
public ApplicationInfo(String uuid, long createTime, String createUser, long updateTime, String updateUser, int revision, ApplicationDescriptor descriptor)
{
this.uuid = uuid;
this.createTime = createTime;
this.createUser = createUser;
this.updateTime = updateTime;
this.updateUser = updateUser;
this.revision = revision;
this.descriptor = descriptor;
}
public boolean
equals(java.lang.Object rhs)
{
if(this == rhs)
{
return true;
}
ApplicationInfo r = null;
if(rhs instanceof ApplicationInfo)
{
r = (ApplicationInfo)rhs;
}
if(r != null)
{
if(this.uuid != r.uuid)
{
if(this.uuid == null || r.uuid == null || !this.uuid.equals(r.uuid))
{
return false;
}
}
if(this.createTime != r.createTime)
{
return false;
}
if(this.createUser != r.createUser)
{
if(this.createUser == null || r.createUser == null || !this.createUser.equals(r.createUser))
{
return false;
}
}
if(this.updateTime != r.updateTime)
{
return false;
}
if(this.updateUser != r.updateUser)
{
if(this.updateUser == null || r.updateUser == null || !this.updateUser.equals(r.updateUser))
{
return false;
}
}
if(this.revision != r.revision)
{
return false;
}
if(this.descriptor != r.descriptor)
{
if(this.descriptor == null || r.descriptor == null || !this.descriptor.equals(r.descriptor))
{
return false;
}
}
return true;
}
return false;
}
public int
hashCode()
{
int h_ = 5381;
h_ = IceInternal.HashUtil.hashAdd(h_, "::IceGrid::ApplicationInfo");
h_ = IceInternal.HashUtil.hashAdd(h_, uuid);
h_ = IceInternal.HashUtil.hashAdd(h_, createTime);
h_ = IceInternal.HashUtil.hashAdd(h_, createUser);
h_ = IceInternal.HashUtil.hashAdd(h_, updateTime);
h_ = IceInternal.HashUtil.hashAdd(h_, updateUser);
h_ = IceInternal.HashUtil.hashAdd(h_, revision);
h_ = IceInternal.HashUtil.hashAdd(h_, descriptor);
return h_;
}
public ApplicationInfo
clone()
{
ApplicationInfo c = null;
try
{
c = (ApplicationInfo)super.clone();
}
catch(CloneNotSupportedException ex)
{
assert false; // impossible
}
return c;
}
public void
ice_writeMembers(Ice.OutputStream ostr)
{
ostr.writeString(this.uuid);
ostr.writeLong(this.createTime);
ostr.writeString(this.createUser);
ostr.writeLong(this.updateTime);
ostr.writeString(this.updateUser);
ostr.writeInt(this.revision);
ApplicationDescriptor.ice_write(ostr, this.descriptor);
}
public void
ice_readMembers(Ice.InputStream istr)
{
this.uuid = istr.readString();
this.createTime = istr.readLong();
this.createUser = istr.readString();
this.updateTime = istr.readLong();
this.updateUser = istr.readString();
this.revision = istr.readInt();
this.descriptor = ApplicationDescriptor.ice_read(istr);
}
static public void
ice_write(Ice.OutputStream ostr, ApplicationInfo v)
{
if(v == null)
{
_nullMarshalValue.ice_writeMembers(ostr);
}
else
{
v.ice_writeMembers(ostr);
}
}
static public ApplicationInfo
ice_read(Ice.InputStream istr)
{
ApplicationInfo v = new ApplicationInfo();
v.ice_readMembers(istr);
return v;
}
private static final ApplicationInfo _nullMarshalValue = new ApplicationInfo();
public static final long serialVersionUID = 39045604663522882L;
}