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

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

public abstract class MonitorPOA
	extends org.omg.PortableServer.Servant
	implements org.omg.CORBA.portable.InvokeHandler, com.addc.server.monitoring.MonitorOperations
{
	static private final java.util.HashMap m_opsHash = new java.util.HashMap();
	static
	{
		m_opsHash.put ( "componentStops", Integer.valueOf(0));
		m_opsHash.put ( "componentRefresh", Integer.valueOf(1));
		m_opsHash.put ( "listMonitoredComponents", Integer.valueOf(2));
		m_opsHash.put ( "componentStarts", Integer.valueOf(3));
	}
	private String[] ids = {"IDL:monitoring/Monitor:1.0"};
	public com.addc.server.monitoring.Monitor _this()
	{
		org.omg.CORBA.Object __o = _this_object() ;
		com.addc.server.monitoring.Monitor __r = com.addc.server.monitoring.MonitorHelper.narrow(__o);
		return __r;
	}
	public com.addc.server.monitoring.Monitor _this(org.omg.CORBA.ORB orb)
	{
		org.omg.CORBA.Object __o = _this_object(orb) ;
		com.addc.server.monitoring.Monitor __r = com.addc.server.monitoring.MonitorHelper.narrow(__o);
		return __r;
	}
	public org.omg.CORBA.portable.OutputStream _invoke(String method, org.omg.CORBA.portable.InputStream _input, org.omg.CORBA.portable.ResponseHandler handler)
		throws org.omg.CORBA.SystemException
	{
		org.omg.CORBA.portable.OutputStream _out = null;
		// do something
		// quick lookup of operation
		java.lang.Integer opsIndex = (java.lang.Integer)m_opsHash.get ( method );
		if ( null == opsIndex )
			throw new org.omg.CORBA.BAD_OPERATION(method + " not found");
		switch ( opsIndex.intValue() )
		{
			case 0: // componentStops
			{
				java.lang.String _arg0=_input.read_string();
				_out = handler.createReply();
				componentStops(_arg0);
				break;
			}
			case 1: // componentRefresh
			{
				java.lang.String _arg0=_input.read_string();
				_out = handler.createReply();
				componentRefresh(_arg0);
				break;
			}
			case 2: // listMonitoredComponents
			{
				_out = handler.createReply();
				com.addc.server.monitoring.CorbalocsHelper.write(_out,listMonitoredComponents());
				break;
			}
			case 3: // componentStarts
			{
				java.lang.String _arg0=_input.read_string();
				long _arg1=_input.read_longlong();
				_out = handler.createReply();
				componentStarts(_arg0,_arg1);
				break;
			}
		}
		return _out;
	}

	public String[] _all_interfaces(org.omg.PortableServer.POA poa, byte[] obj_id)
	{
		return ids;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy