Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  package org.omg.CosEventChannelAdmin;


Generated from IDL interface "ProxyPullSupplier".

Author(s):
JacORB IDL compiler V 3.5
Version:
generated at 11-Jul-2014 12:35:15
  
 
 public class _ProxyPullSupplierStub
 {
Serial version UID.
 
 	private static final long serialVersionUID = 1L;
 	private String[] ids = {"IDL:omg.org/CosEventChannelAdmin/ProxyPullSupplier:1.0","IDL:omg.org/CosEventComm/PullSupplier:1.0"};
 	public String[] _ids()
 	{
 		return ;
 	}
 
 	public void disconnect_pull_supplier()
 	{
 		while(true)
 		{
 			if(! this._is_local())
 			{
 				org.omg.CORBA.portable.InputStream _is = null;
 				org.omg.CORBA.portable.OutputStream _os = null;
 				try
 				{
 					_os = _request"disconnect_pull_supplier"true);
 					_is = _invoke(_os);
 					return;
 				}
 					{
 						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"disconnect_pull_supplier" );
 			if_so == null )
 				continue;
 			try
 			{
 				_localServant.disconnect_pull_supplier();
 				if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt
 				return;
 			}
 			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"pull"true);
					_is = _invoke(_os);
					org.omg.CORBA.Any _result = _is.read_any();
					return _result;
				}
					{
						continue;
					}
				{
					String _id = _ax.getId();
					try
					{
						if_id.equals("IDL:omg.org/CosEventComm/Disconnected:1.0"))
						{
							throw org.omg.CosEventComm.DisconnectedHelper.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
		{
			if_so == null )
				continue;
			org.omg.CORBA.Any _result;
			try
			{
				_result = _localServant.pull();
				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"connect_pull_consumer"true);
					org.omg.CosEventComm.PullConsumerHelper.write(_os,pull_consumer);
					_is = _invoke(_os);
					return;
				}
					{
						continue;
					}
				{
					String _id = _ax.getId();
					try
					{
						if_id.equals("IDL:omg.org/CosEventChannelAdmin/AlreadyConnected:1.0"))
						{
							throw org.omg.CosEventChannelAdmin.AlreadyConnectedHelper.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"connect_pull_consumer" );
			if_so == null )
				continue;
			try
			{
				_localServant.connect_pull_consumer(pull_consumer);
				if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt
				return;
			}
			{
				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"try_pull"true);
					_is = _invoke(_os);
					org.omg.CORBA.Any _result = _is.read_any();
					has_event.value = _is.read_boolean();
					return _result;
				}
					{
						continue;
					}
				{
					String _id = _ax.getId();
					try
					{
						if_id.equals("IDL:omg.org/CosEventComm/Disconnected:1.0"))
						{
							throw org.omg.CosEventComm.DisconnectedHelper.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
		{
			if_so == null )
				continue;
			org.omg.CORBA.Any _result;
			try
			{
				_result = _localServant.try_pull(has_event);
				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