Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  package org.omg.CosNotifyChannelAdminAck;


Generated from IDL interface "StructuredProxyPullSupplierAck".

Author(s):
JacORB IDL compiler V 3.5
Version:
generated at 11-Jul-2014 12:35:23
  
 
 public abstract class StructuredProxyPullSupplierAckPOA
 {
 	static private final java.util.HashMap<String,Integerm_opsHash = new java.util.HashMap<String,Integer>();
 	static
 	{
 		.put ( "get_all_filters", Integer.valueOf(0));
 		.put ( "get_qos", Integer.valueOf(1));
 		.put ( "_get_lifetime_filter", Integer.valueOf(2));
 		.put ( "_get_MyType", Integer.valueOf(3));
 		.put ( "disconnect_structured_pull_supplier", Integer.valueOf(4));
 		.put ( "pull_structured_event", Integer.valueOf(5));
 		.put ( "_get_priority_filter", Integer.valueOf(6));
 		.put ( "get_filter", Integer.valueOf(7));
 		.put ( "connect_structured_pull_consumer", Integer.valueOf(8));
 		.put ( "set_qos", Integer.valueOf(9));
 		.put ( "obtain_offered_types", Integer.valueOf(10));
 		.put ( "add_filter", Integer.valueOf(11));
 		.put ( "subscription_change", Integer.valueOf(12));
 		.put ( "_set_priority_filter", Integer.valueOf(13));
 		.put ( "validate_event_qos", Integer.valueOf(14));
 		.put ( "remove_filter", Integer.valueOf(15));
 		.put ( "remove_all_filters", Integer.valueOf(16));
 		.put ( "_set_lifetime_filter", Integer.valueOf(17));
 		.put ( "validate_qos", Integer.valueOf(18));
 		.put ( "acknowledge", Integer.valueOf(19));
 		.put ( "_get_MyAdmin", Integer.valueOf(20));
 		.put ( "try_pull_structured_event", Integer.valueOf(21));
 	}
 	private String[] ids = {"IDL:omg.org/CosNotifyChannelAdminAck/StructuredProxyPullSupplierAck:1.0","IDL:omg.org/CosNotifyChannelAdmin/StructuredProxyPullSupplier:1.0","IDL:omg.org/CosNotifyChannelAdmin/ProxySupplier:1.0","IDL:omg.org/CosNotifyComm/NotifySubscribe:1.0","IDL:omg.org/CosNotifyFilter/FilterAdmin:1.0","IDL:omg.org/CosNotification/QoSAdmin:1.0","IDL:omg.org/CosNotifyComm/StructuredPullSupplier:1.0"};
 	{
 		org.omg.CORBA.Object __o = _this_object() ;
 		org.omg.CosNotifyChannelAdminAck.StructuredProxyPullSupplierAck __r = org.omg.CosNotifyChannelAdminAck.StructuredProxyPullSupplierAckHelper.narrow(__o);
 		return __r;
 	}
 	{
 		org.omg.CORBA.Object __o = _this_object(orb) ;
 		org.omg.CosNotifyChannelAdminAck.StructuredProxyPullSupplierAck __r = org.omg.CosNotifyChannelAdminAck.StructuredProxyPullSupplierAckHelper.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: // get_all_filters
 			{
 				_out = handler.createReply();
 				org.omg.CosNotifyFilter.FilterIDSeqHelper.write(_out,get_all_filters());
 				break;
 			}
 			case 1: // get_qos
 			{
 				_out = handler.createReply();
 				org.omg.CosNotification.PropertySeqHelper.write(_out,get_qos());
 				break;
 			}
 			case 2: // _get_lifetime_filter
 			{
 			_out = handler.createReply();
 			org.omg.CosNotifyFilter.MappingFilterHelper.write(_out,lifetime_filter());
 				break;
 			}
 			case 3: // _get_MyType
 			{
 			_out = handler.createReply();
 			org.omg.CosNotifyChannelAdmin.ProxyTypeHelper.write(_out,MyType());
 				break;
 			}
 			case 4: // disconnect_structured_pull_supplier
 			{
 				_out = handler.createReply();
 				break;
 			}
 			case 5: // pull_structured_event
 			{
 			try
 			{
 				_out = handler.createReply();
				org.omg.CosNotification.StructuredEventHelper.write(_out,pull_structured_event());
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosEventComm.DisconnectedHelper.write(_out_ex0);
			}
				break;
			}
			case 6: // _get_priority_filter
			{
			_out = handler.createReply();
			org.omg.CosNotifyFilter.MappingFilterHelper.write(_out,priority_filter());
				break;
			}
			case 7: // get_filter
			{
			try
			{
				int _arg0=_input.read_long();
				_out = handler.createReply();
				org.omg.CosNotifyFilter.FilterHelper.write(_out,get_filter(_arg0));
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosNotifyFilter.FilterNotFoundHelper.write(_out_ex0);
			}
				break;
			}
			case 8: // connect_structured_pull_consumer
			{
			try
			{
				org.omg.CosNotifyComm.StructuredPullConsumer _arg0=org.omg.CosNotifyComm.StructuredPullConsumerHelper.read(_input);
				_out = handler.createReply();
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosEventChannelAdmin.AlreadyConnectedHelper.write(_out_ex0);
			}
				break;
			}
			case 9: // set_qos
			{
			try
			{
				org.omg.CosNotification.Property[] _arg0=org.omg.CosNotification.PropertySeqHelper.read(_input);
				_out = handler.createReply();
				set_qos(_arg0);
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosNotification.UnsupportedQoSHelper.write(_out_ex0);
			}
				break;
			}
			case 10: // obtain_offered_types
			{
				org.omg.CosNotifyChannelAdmin.ObtainInfoMode _arg0=org.omg.CosNotifyChannelAdmin.ObtainInfoModeHelper.read(_input);
				_out = handler.createReply();
				org.omg.CosNotification.EventTypeSeqHelper.write(_out,obtain_offered_types(_arg0));
				break;
			}
			case 11: // add_filter
			{
				org.omg.CosNotifyFilter.Filter _arg0=org.omg.CosNotifyFilter.FilterHelper.read(_input);
				_out = handler.createReply();
				_out.write_long(add_filter(_arg0));
				break;
			}
			case 12: // subscription_change
			{
			try
			{
				org.omg.CosNotification.EventType[] _arg0=org.omg.CosNotification.EventTypeSeqHelper.read(_input);
				org.omg.CosNotification.EventType[] _arg1=org.omg.CosNotification.EventTypeSeqHelper.read(_input);
				_out = handler.createReply();
				subscription_change(_arg0,_arg1);
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosNotifyComm.InvalidEventTypeHelper.write(_out_ex0);
			}
				break;
			}
			case 13: // _set_priority_filter
			{
			_out = handler.createReply();
			priority_filter(org.omg.CosNotifyFilter.MappingFilterHelper.read(_input));
				break;
			}
			case 14: // validate_event_qos
			{
			try
			{
				org.omg.CosNotification.Property[] _arg0=org.omg.CosNotification.PropertySeqHelper.read(_input);
				_out = handler.createReply();
				validate_event_qos(_arg0,_arg1);
				org.omg.CosNotification.NamedPropertyRangeSeqHelper.write(_out,_arg1.value);
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosNotification.UnsupportedQoSHelper.write(_out_ex0);
			}
				break;
			}
			case 15: // remove_filter
			{
			try
			{
				int _arg0=_input.read_long();
				_out = handler.createReply();
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosNotifyFilter.FilterNotFoundHelper.write(_out_ex0);
			}
				break;
			}
			case 16: // remove_all_filters
			{
				_out = handler.createReply();
				break;
			}
			case 17: // _set_lifetime_filter
			{
			_out = handler.createReply();
			lifetime_filter(org.omg.CosNotifyFilter.MappingFilterHelper.read(_input));
				break;
			}
			case 18: // validate_qos
			{
			try
			{
				org.omg.CosNotification.Property[] _arg0=org.omg.CosNotification.PropertySeqHelper.read(_input);
				_out = handler.createReply();
				validate_qos(_arg0,_arg1);
				org.omg.CosNotification.NamedPropertyRangeSeqHelper.write(_out,_arg1.value);
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosNotification.UnsupportedQoSHelper.write(_out_ex0);
			}
				break;
			}
			case 19: // acknowledge
			{
				int[] _arg0=org.omg.CosNotifyChannelAdminAck.SequenceNumbersHelper.read(_input);
				_out = handler.createReply();
				break;
			}
			case 20: // _get_MyAdmin
			{
			_out = handler.createReply();
			org.omg.CosNotifyChannelAdmin.ConsumerAdminHelper.write(_out,MyAdmin());
				break;
			}
			case 21: // try_pull_structured_event
			{
			try
			{
				_out = handler.createReply();
				org.omg.CosNotification.StructuredEventHelper.write(_out,try_pull_structured_event(_arg0));
				_out.write_boolean(_arg0.value);
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosEventComm.DisconnectedHelper.write(_out_ex0);
			}
				break;
			}
		}
		return _out;
	}
	public String[] _all_interfaces(org.omg.PortableServer.POA poabyte[] obj_id)
	{
		return ;
	}
New to GrepCode? Check out our FAQ X