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

com.addc.server.monitoring.MonitoredHelper 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 interface "Monitored".
 *
 * @author JacORB IDL compiler V 3.9
 * @version generated at Mar 25, 2019 1:59:31 PM
 */

public abstract class MonitoredHelper
{
	private volatile static org.omg.CORBA.TypeCode _type;
	public static org.omg.CORBA.TypeCode type ()
	{
		if (_type == null)
		{
			synchronized(MonitoredHelper.class)
			{
				if (_type == null)
				{
					_type = org.omg.CORBA.ORB.init().create_interface_tc("IDL:monitoring/Monitored:1.0", "Monitored");
				}
			}
		}
		return _type;
	}

	public static void insert (final org.omg.CORBA.Any any, final com.addc.server.monitoring.Monitored s)
	{
			any.insert_Object(s);
	}
	public static com.addc.server.monitoring.Monitored extract(final org.omg.CORBA.Any any)
	{
		return narrow(any.extract_Object()) ;
	}
	public static String id()
	{
		return "IDL:monitoring/Monitored:1.0";
	}
	public static Monitored read(final org.omg.CORBA.portable.InputStream in)
	{
		return narrow(in.read_Object(com.addc.server.monitoring._MonitoredStub.class));
	}
	public static void write(final org.omg.CORBA.portable.OutputStream _out, final com.addc.server.monitoring.Monitored s)
	{
		_out.write_Object(s);
	}
	public static com.addc.server.monitoring.Monitored narrow(final org.omg.CORBA.Object obj)
	{
		if (obj == null)
		{
			return null;
		}
		else if (obj instanceof com.addc.server.monitoring.Monitored)
		{
			return (com.addc.server.monitoring.Monitored)obj;
		}
		else if (obj._is_a("IDL:monitoring/Monitored:1.0"))
		{
			com.addc.server.monitoring._MonitoredStub stub;
			stub = new com.addc.server.monitoring._MonitoredStub();
			stub._set_delegate(((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate());
			return stub;
		}
		else
		{
			throw new org.omg.CORBA.BAD_PARAM("Narrow failed");
		}
	}
	public static com.addc.server.monitoring.Monitored unchecked_narrow(final org.omg.CORBA.Object obj)
	{
		if (obj == null)
		{
			return null;
		}
		else if (obj instanceof com.addc.server.monitoring.Monitored)
		{
			return (com.addc.server.monitoring.Monitored)obj;
		}
		else
		{
			com.addc.server.monitoring._MonitoredStub stub;
			stub = new com.addc.server.monitoring._MonitoredStub();
			stub._set_delegate(((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate());
			return stub;
		}
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy