All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.addc.server.monitoring.MonitoredException Maven / Gradle / Ivy

Go to download

Supplies the classes required for monitoring a server with the Amentet Monitoring Service

There is a newer version: 2.9
Show newest version
package com.addc.server.monitoring;

/**
 * Generated from IDL exception "MonitoredException".
 *
 * @author JacORB IDL compiler V 3.9
 * @version generated at Mar 25, 2019 1:59:31 PM
 */

public final class MonitoredException
	extends org.omg.CORBA.UserException
{
	/** Serial version UID. */
	private static final long serialVersionUID = 1L;
	public MonitoredException()
	{
		super(com.addc.server.monitoring.MonitoredExceptionHelper.id());
	}

	public java.lang.String[] failedComponents;
	public String toString() 
	{ 
		final java.lang.StringBuffer _ret  =  new java.lang.StringBuffer("struct com.addc.server.monitoring.MonitoredException {"); 
		_ret.append("\n"); 
		_ret.append("java.lang.String[] failedComponents=");
		_ret.append("{");
		if(failedComponents== null){
			_ret.append(failedComponents);
		}else { 
			for(int $counter =0; $counter < failedComponents.length; $counter++){ 
				_ret.append(failedComponents[$counter]);
				if($counter < failedComponents.length-1) { 
					_ret.append(",");
				} 
			}
		} 
		_ret.append("}");

		_ret.append("\n");
		_ret.append("}");
		return _ret.toString();
	} 

	public boolean equals(java.lang.Object o) 
	{ 
		if (this == o) return true;
		if (o == null) return false;

		if (o instanceof com.addc.server.monitoring.MonitoredException )
		{
			final com.addc.server.monitoring.MonitoredException obj = ( com.addc.server.monitoring.MonitoredException )o;
			boolean res = true; 
			do { 
				res = (this.failedComponents == obj.failedComponents) || (this.failedComponents != null && obj.failedComponents != null && this.failedComponents.length == obj.failedComponents.length);
				if (res)

				{
					res = java.util.Arrays.equals(this.failedComponents, obj.failedComponents);
				}
				if(!res) break;

			}
			while(false);
			return res;
		}
		else
		{
			return false;
		}
	}


	public MonitoredException(java.lang.String _reason,java.lang.String[] failedComponents)
	{
		super(_reason);
		this.failedComponents = failedComponents;
	}
	public MonitoredException(java.lang.String[] failedComponents)
	{
		super(com.addc.server.monitoring.MonitoredExceptionHelper.id());
		this.failedComponents = failedComponents;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy