Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  package org.omg.CosTypedEventChannelAdmin;


Generated from IDL interface "TypedSupplierAdmin".

Author(s):
JacORB IDL compiler V 3.5
Version:
generated at 11-Jul-2014 12:35:18
  
 
 public class _TypedSupplierAdminStub
 {
Serial version UID.
 
 	private static final long serialVersionUID = 1L;
 	private String[] ids = {"IDL:omg.org/CosTypedEventChannelAdmin/TypedSupplierAdmin:1.0","IDL:omg.org/CosEventChannelAdmin/SupplierAdmin:1.0"};
 	public String[] _ids()
 	{
 		return ;
 	}
 
 	{
 		while(true)
 		{
 			if(! this._is_local())
 			{
 				org.omg.CORBA.portable.InputStream _is = null;
 				org.omg.CORBA.portable.OutputStream _os = null;
 				try
 				{
 					_os = _request"obtain_typed_push_consumer"true);
 					java.lang.String tmpResult1 = supported_interface;
 _os.write_stringtmpResult1 );
 					_is = _invoke(_os);
 					org.omg.CosTypedEventChannelAdmin.TypedProxyPushConsumer _result = org.omg.CosTypedEventChannelAdmin.TypedProxyPushConsumerHelper.read(_is);
 					return _result;
 				}
 					{
 						continue;
 					}
 				{
 					String _id = _ax.getId();
 					try
 					{
 						if_id.equals("IDL:omg.org/CosTypedEventChannelAdmin/InterfaceNotSupported:1.0"))
 						{
 							throw org.omg.CosTypedEventChannelAdmin.InterfaceNotSupportedHelper.read(_ax.getInputStream());
 						}
 						else 
 						{
 							throw new RuntimeException("Unexpected exception " + _id );
 						}
 					}
 					finally
 					{
 						try
 						{
 						}
 						catch (java.io.IOException e)
 						{
 							throw new RuntimeException("Unexpected exception " + e.toString() );
 						}
 					}
 			}
 			finally
 			{
 				if (_os != null)
 				{
 					try
 					{
 						_os.close();
 					}
 					catch (java.io.IOException e)
 					{
 						throw new RuntimeException("Unexpected exception " + e.toString() );
 					}
 				}
 				this._releaseReply(_is);
 			}
 		}
 		else
 		{
 			org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke"obtain_typed_push_consumer" );
 			if_so == null )
 				continue;
 			try
 			{
 				_result = _localServant.obtain_typed_push_consumer(supported_interface);
 				if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt
 				return _result;
			}
			{
				if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt
				throw ex;
			}
			catch (RuntimeException re
			{
				if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt
				throw re;
			}
			catch (java.lang.Error err
			{
				if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt
				throw err;
			}
			finally
			{
			}
		}
		}
	}
	{
		while(true)
		{
			if(! this._is_local())
			{
				try
				{
					_os = _request"obtain_push_consumer"true);
					_is = _invoke(_os);
					org.omg.CosEventChannelAdmin.ProxyPushConsumer _result = org.omg.CosEventChannelAdmin.ProxyPushConsumerHelper.read(_is);
					return _result;
				}
					{
						continue;
					}
				{
					String _id = _ax.getId();
					try
					{
					}
					catch (java.io.IOException e)
					{
						throw new RuntimeException("Unexpected exception " + e.toString() );
					}
					throw new RuntimeException("Unexpected exception " + _id );
			}
			finally
			{
				if (_os != null)
				{
					try
					{
						_os.close();
					}
					catch (java.io.IOException e)
					{
						throw new RuntimeException("Unexpected exception " + e.toString() );
					}
				}
				this._releaseReply(_is);
			}
		}
		else
		{
			org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke"obtain_push_consumer" );
			if_so == null )
				continue;
			try
			{
				_result = _localServant.obtain_push_consumer();
				if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt
				return _result;
			}
			catch (RuntimeException re
			{
				if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt
				throw re;
			}
			catch (java.lang.Error err
			{
				if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt
				throw err;
			}
			finally
			{
			}
		}
		}
	}
	{
		while(true)
		{
			if(! this._is_local())
			{
				try
				{
					_os = _request"obtain_pull_consumer"true);
					_is = _invoke(_os);
					org.omg.CosEventChannelAdmin.ProxyPullConsumer _result = org.omg.CosEventChannelAdmin.ProxyPullConsumerHelper.read(_is);
					return _result;
				}
					{
						continue;
					}
				{
					String _id = _ax.getId();
					try
					{
					}
					catch (java.io.IOException e)
					{
						throw new RuntimeException("Unexpected exception " + e.toString() );
					}
					throw new RuntimeException("Unexpected exception " + _id );
			}
			finally
			{
				if (_os != null)
				{
					try
					{
						_os.close();
					}
					catch (java.io.IOException e)
					{
						throw new RuntimeException("Unexpected exception " + e.toString() );
					}
				}
				this._releaseReply(_is);
			}
		}
		else
		{
			org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke"obtain_pull_consumer" );
			if_so == null )
				continue;
			try
			{
				_result = _localServant.obtain_pull_consumer();
				if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt
				return _result;
			}
			catch (RuntimeException re
			{
				if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt
				throw re;
			}
			catch (java.lang.Error err
			{
				if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt
				throw err;
			}
			finally
			{
			}
		}
		}
	}
	{
		while(true)
		{
			if(! this._is_local())
			{
				try
				{
					_os = _request"obtain_typed_pull_consumer"true);
					java.lang.String tmpResult2 = uses_interface;
_os.write_stringtmpResult2 );
					_is = _invoke(_os);
					org.omg.CosEventChannelAdmin.ProxyPullConsumer _result = org.omg.CosEventChannelAdmin.ProxyPullConsumerHelper.read(_is);
					return _result;
				}
					{
						continue;
					}
				{
					String _id = _ax.getId();
					try
					{
						if_id.equals("IDL:omg.org/CosTypedEventChannelAdmin/NoSuchImplementation:1.0"))
						{
							throw org.omg.CosTypedEventChannelAdmin.NoSuchImplementationHelper.read(_ax.getInputStream());
						}
						else 
						{
							throw new RuntimeException("Unexpected exception " + _id );
						}
					}
					finally
					{
						try
						{
						}
						catch (java.io.IOException e)
						{
							throw new RuntimeException("Unexpected exception " + e.toString() );
						}
					}
			}
			finally
			{
				if (_os != null)
				{
					try
					{
						_os.close();
					}
					catch (java.io.IOException e)
					{
						throw new RuntimeException("Unexpected exception " + e.toString() );
					}
				}
				this._releaseReply(_is);
			}
		}
		else
		{
			org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke"obtain_typed_pull_consumer" );
			if_so == null )
				continue;
			try
			{
				_result = _localServant.obtain_typed_pull_consumer(uses_interface);
				if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt
				return _result;
			}
			{
				if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt
				throw ex;
			}
			catch (RuntimeException re
			{
				if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt
				throw re;
			}
			catch (java.lang.Error err
			{
				if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt
				throw err;
			}
			finally
			{
			}
		}
		}
	}
New to GrepCode? Check out our FAQ X