Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  package org.jacorb.notification;


Generated from IDL interface "JacORBEventChannelFactory".

Author(s):
JacORB IDL compiler V 3.5
Version:
generated at 11-Jul-2014 12:35:26
  
 
 public abstract class JacORBEventChannelFactoryPOA
 {
 	static private final java.util.HashMap<String,Integerm_opsHash = new java.util.HashMap<String,Integer>();
 	static
 	{
 		.put ( "create_channel", Integer.valueOf(0));
 		.put ( "get_event_channel", Integer.valueOf(1));
 		.put ( "get_all_channels", Integer.valueOf(2));
 		.put ( "destroy", Integer.valueOf(3));
 	}
 	private String[] ids = {"IDL:org/jacorb/notification/JacORBEventChannelFactory:1.0","IDL:omg.org/CosNotifyChannelAdmin/EventChannelFactory:1.0"};
 	{
 		org.omg.CORBA.Object __o = _this_object() ;
 		org.jacorb.notification.JacORBEventChannelFactory __r = org.jacorb.notification.JacORBEventChannelFactoryHelper.narrow(__o);
 		return __r;
 	}
 	{
 		org.omg.CORBA.Object __o = _this_object(orb) ;
 		org.jacorb.notification.JacORBEventChannelFactory __r = org.jacorb.notification.JacORBEventChannelFactoryHelper.narrow(__o);
 		return __r;
 	}
 	{
 		org.omg.CORBA.portable.OutputStream _out = null;
 		// 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: // create_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.CosNotifyChannelAdmin.EventChannelHelper.write(_out,create_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;
 			}
 			case 1: // get_event_channel
 			{
 			try
 			{
 				int _arg0=_input.read_long();
 				_out = handler.createReply();
 				org.omg.CosNotifyChannelAdmin.EventChannelHelper.write(_out,get_event_channel(_arg0));
 			}
 			{
 				_out = handler.createExceptionReply();
 				org.omg.CosNotifyChannelAdmin.ChannelNotFoundHelper.write(_out_ex0);
 			}
 				break;
 			}
 			case 2: // get_all_channels
 			{
 				_out = handler.createReply();
 				org.omg.CosNotifyChannelAdmin.ChannelIDSeqHelper.write(_out,get_all_channels());
 				break;
 			}
 			case 3: // destroy
 			{
 				_out = handler.createReply();
 				destroy();
 				break;
 			}
 		}
 		return _out;
 	}
	public String[] _all_interfaces(org.omg.PortableServer.POA poabyte[] obj_id)
	{
		return ;
	}
New to GrepCode? Check out our FAQ X