Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  package org.omg.CosNotifyCommAck;


Generated from IDL interface "SequencePullSupplierAck".

Author(s):
JacORB IDL compiler V 3.5
Version:
generated at 11-Jul-2014 12:35:23
  
 
 public abstract class SequencePullSupplierAckPOA
 {
 	static private final java.util.HashMap<String,Integerm_opsHash = new java.util.HashMap<String,Integer>();
 	static
 	{
 		.put ( "pull_structured_events", Integer.valueOf(0));
 		.put ( "subscription_change", Integer.valueOf(1));
 		.put ( "disconnect_sequence_pull_supplier", Integer.valueOf(2));
 		.put ( "acknowledge", Integer.valueOf(3));
 		.put ( "try_pull_structured_events", Integer.valueOf(4));
 	}
 	private String[] ids = {"IDL:omg.org/CosNotifyCommAck/SequencePullSupplierAck:1.0","IDL:omg.org/CosNotifyComm/SequencePullSupplier:1.0","IDL:omg.org/CosNotifyComm/NotifySubscribe:1.0"};
 	{
 		org.omg.CORBA.Object __o = _this_object() ;
 		org.omg.CosNotifyCommAck.SequencePullSupplierAck __r = org.omg.CosNotifyCommAck.SequencePullSupplierAckHelper.narrow(__o);
 		return __r;
 	}
 	{
 		org.omg.CORBA.Object __o = _this_object(orb) ;
 		org.omg.CosNotifyCommAck.SequencePullSupplierAck __r = org.omg.CosNotifyCommAck.SequencePullSupplierAckHelper.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: // pull_structured_events
 			{
 			try
 			{
 				int _arg0=_input.read_long();
 				_out = handler.createReply();
 				org.omg.CosNotification.EventBatchHelper.write(_out,pull_structured_events(_arg0));
 			}
 			{
 				_out = handler.createExceptionReply();
 				org.omg.CosEventComm.DisconnectedHelper.write(_out_ex0);
 			}
 				break;
 			}
 			case 1: // 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 2: // disconnect_sequence_pull_supplier
 			{
 				_out = handler.createReply();
 				break;
 			}
 			case 3: // acknowledge
 			{
 				int[] _arg0=org.omg.CosNotifyCommAck.SequenceNumbersHelper.read(_input);
 				_out = handler.createReply();
 				acknowledge(_arg0);
 				break;
 			}
 			case 4: // try_pull_structured_events
 			{
 			try
 			{
 				int _arg0=_input.read_long();
 				_out = handler.createReply();
 				org.omg.CosNotification.EventBatchHelper.write(_out,try_pull_structured_events(_arg0,_arg1));
				_out.write_boolean(_arg1.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