Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  package org.omg.CosNotifyChannelAdmin;


Generated from IDL interface "SequenceProxyPushSupplier".

Author(s):
JacORB IDL compiler V 3.5
Version:
generated at 11-Jul-2014 12:35:20
  
 
 public abstract class SequenceProxyPushSupplierPOA
 {
 	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 ( "suspend_connection", Integer.valueOf(2));
 		.put ( "_get_lifetime_filter", Integer.valueOf(3));
 		.put ( "_get_MyType", Integer.valueOf(4));
 		.put ( "_get_priority_filter", Integer.valueOf(5));
 		.put ( "get_filter", Integer.valueOf(6));
 		.put ( "disconnect_sequence_push_supplier", Integer.valueOf(7));
 		.put ( "set_qos", Integer.valueOf(8));
 		.put ( "connect_sequence_push_consumer", Integer.valueOf(9));
 		.put ( "resume_connection", Integer.valueOf(10));
 		.put ( "obtain_offered_types", Integer.valueOf(11));
 		.put ( "add_filter", Integer.valueOf(12));
 		.put ( "subscription_change", Integer.valueOf(13));
 		.put ( "_set_priority_filter", Integer.valueOf(14));
 		.put ( "validate_event_qos", Integer.valueOf(15));
 		.put ( "remove_filter", Integer.valueOf(16));
 		.put ( "remove_all_filters", Integer.valueOf(17));
 		.put ( "validate_qos", Integer.valueOf(18));
 		.put ( "_set_lifetime_filter", Integer.valueOf(19));
 		.put ( "_get_MyAdmin", Integer.valueOf(20));
 	}
 	private String[] ids = {"IDL:omg.org/CosNotifyChannelAdmin/SequenceProxyPushSupplier:1.0","IDL:omg.org/CosNotifyComm/SequencePushSupplier: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"};
 	{
 		org.omg.CORBA.Object __o = _this_object() ;
 		org.omg.CosNotifyChannelAdmin.SequenceProxyPushSupplier __r = org.omg.CosNotifyChannelAdmin.SequenceProxyPushSupplierHelper.narrow(__o);
 		return __r;
 	}
 	{
 		org.omg.CORBA.Object __o = _this_object(orb) ;
 		org.omg.CosNotifyChannelAdmin.SequenceProxyPushSupplier __r = org.omg.CosNotifyChannelAdmin.SequenceProxyPushSupplierHelper.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: // suspend_connection
 			{
 			try
 			{
 				_out = handler.createReply();
 			}
 			{
 				_out = handler.createExceptionReply();
 				org.omg.CosNotifyChannelAdmin.NotConnectedHelper.write(_out_ex0);
 			}
 			{
 				_out = handler.createExceptionReply();
 				org.omg.CosNotifyChannelAdmin.ConnectionAlreadyInactiveHelper.write(_out_ex1);
 			}
 				break;
 			}
 			case 3: // _get_lifetime_filter
 			{
 			_out = handler.createReply();
 			org.omg.CosNotifyFilter.MappingFilterHelper.write(_out,lifetime_filter());
 				break;
			}
			case 4: // _get_MyType
			{
			_out = handler.createReply();
			org.omg.CosNotifyChannelAdmin.ProxyTypeHelper.write(_out,MyType());
				break;
			}
			case 5: // _get_priority_filter
			{
			_out = handler.createReply();
			org.omg.CosNotifyFilter.MappingFilterHelper.write(_out,priority_filter());
				break;
			}
			case 6: // 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 7: // disconnect_sequence_push_supplier
			{
				_out = handler.createReply();
				break;
			}
			case 8: // 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 9: // connect_sequence_push_consumer
			{
			try
			{
				org.omg.CosNotifyComm.SequencePushConsumer _arg0=org.omg.CosNotifyComm.SequencePushConsumerHelper.read(_input);
				_out = handler.createReply();
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosEventChannelAdmin.AlreadyConnectedHelper.write(_out_ex0);
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosEventChannelAdmin.TypeErrorHelper.write(_out_ex1);
			}
				break;
			}
			case 10: // resume_connection
			{
			try
			{
				_out = handler.createReply();
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosNotifyChannelAdmin.ConnectionAlreadyActiveHelper.write(_out_ex0);
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosNotifyChannelAdmin.NotConnectedHelper.write(_out_ex1);
			}
				break;
			}
			case 11: // 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 12: // add_filter
			{
				org.omg.CosNotifyFilter.Filter _arg0=org.omg.CosNotifyFilter.FilterHelper.read(_input);
				_out = handler.createReply();
				_out.write_long(add_filter(_arg0));
				break;
			}
			case 13: // 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 14: // _set_priority_filter
			{
			_out = handler.createReply();
			priority_filter(org.omg.CosNotifyFilter.MappingFilterHelper.read(_input));
				break;
			}
			case 15: // 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 16: // remove_filter
			{
			try
			{
				int _arg0=_input.read_long();
				_out = handler.createReply();
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosNotifyFilter.FilterNotFoundHelper.write(_out_ex0);
			}
				break;
			}
			case 17: // remove_all_filters
			{
				_out = handler.createReply();
				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: // _set_lifetime_filter
			{
			_out = handler.createReply();
			lifetime_filter(org.omg.CosNotifyFilter.MappingFilterHelper.read(_input));
				break;
			}
			case 20: // _get_MyAdmin
			{
			_out = handler.createReply();
			org.omg.CosNotifyChannelAdmin.ConsumerAdminHelper.write(_out,MyAdmin());
				break;
			}
		}
		return _out;
	}
	public String[] _all_interfaces(org.omg.PortableServer.POA poabyte[] obj_id)
	{
		return ;
	}
New to GrepCode? Check out our FAQ X