Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.omg.CosTypedNotifyChannelAdmin;


Generated from IDL interface "TypedEventChannelFactory".

Author(s):
JacORB IDL compiler V 3.5
Version:
generated at 11-Jul-2014 12:35:25
 
public abstract class TypedEventChannelFactoryPOA
	static private final java.util.HashMap<String,Integerm_opsHash = new java.util.HashMap<String,Integer>();
	static
	{
		.put ( "get_typed_event_channel", Integer.valueOf(0));
		.put ( "get_all_typed_channels", Integer.valueOf(1));
		.put ( "create_typed_channel", Integer.valueOf(2));
	}
	private String[] ids = {"IDL:omg.org/CosTypedNotifyChannelAdmin/TypedEventChannelFactory:1.0"};
	{
		org.omg.CosTypedNotifyChannelAdmin.TypedEventChannelFactory __r = org.omg.CosTypedNotifyChannelAdmin.TypedEventChannelFactoryHelper.narrow(__o);
		return __r;
	}
	{
		org.omg.CORBA.Object __o = _this_object(orb) ;
		org.omg.CosTypedNotifyChannelAdmin.TypedEventChannelFactory __r = org.omg.CosTypedNotifyChannelAdmin.TypedEventChannelFactoryHelper.narrow(__o);
		return __r;
	}
	{
		// do something
		// quick lookup of operation
		java.lang.Integer opsIndex = (java.lang.Integer).get ( method );
		if ( null == opsIndex )
			throw new org.omg.CORBA.BAD_OPERATION(method + " not found");
		switch ( opsIndex.intValue() )
		{
			case 0: // get_typed_event_channel
			{
			try
			{
				int _arg0=_input.read_long();
				_out = handler.createReply();
				org.omg.CosTypedNotifyChannelAdmin.TypedEventChannelHelper.write(_out,get_typed_event_channel(_arg0));
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosNotifyChannelAdmin.ChannelNotFoundHelper.write(_out_ex0);
			}
				break;
			}
			case 1: // get_all_typed_channels
			{
				_out = handler.createReply();
				org.omg.CosNotifyChannelAdmin.ChannelIDSeqHelper.write(_out,get_all_typed_channels());
				break;
			}
			case 2: // create_typed_channel
			{
			try
			{
				org.omg.CosNotification.Property[] _arg0=org.omg.CosNotification.PropertySeqHelper.read(_input);
				org.omg.CosNotification.Property[] _arg1=org.omg.CosNotification.PropertySeqHelper.read(_input);
				_out = handler.createReply();
				org.omg.CosTypedNotifyChannelAdmin.TypedEventChannelHelper.write(_out,create_typed_channel(_arg0,_arg1,_arg2));
				_out.write_long(_arg2.value);
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosNotification.UnsupportedAdminHelper.write(_out_ex0);
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosNotification.UnsupportedQoSHelper.write(_out_ex1);
			}
				break;
			}
		}
		return _out;
	}
	public String[] _all_interfaces(org.omg.PortableServer.POA poabyte[] obj_id)
	{
		return ;
	}
New to GrepCode? Check out our FAQ X