ludc
2025-01-16 986aa62ed00bee39363bab41b4eeb8259d446efd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
package com.vci.corba.omd.btm;
 
 
/**
 * Generated from IDL interface "BTMFactory".
 *
 * @author JacORB IDL compiler V 3.9
 * @version generated at 2022-12-23 15:42:24
 */
 
public class _BTMFactoryStub
    extends org.omg.CORBA.portable.ObjectImpl
    implements com.vci.corba.omd.btm.BTMFactory
{
    /** Serial version UID. */
    private static final long serialVersionUID = 1L;
    private String[] ids = {"IDL:com/vci/corba/omd/btm/BTMFactory:1.0"};
    public String[] _ids()
    {
        return ids;
    }
 
    public final static java.lang.Class _opsClass = com.vci.corba.omd.btm.BTMFactoryOperations.class;
    public com.vci.corba.omd.btm.BTMService getBTMService() throws com.vci.corba.common.VCIError
    {
        while(true)
        {
            if(! this._is_local())
            {
                org.omg.CORBA.portable.InputStream _is = null;
                org.omg.CORBA.portable.OutputStream _os = null;
                try
                {
                    _os = _request( "getBTMService", true);
                    _is = _invoke(_os);
                    com.vci.corba.omd.btm.BTMService _result = com.vci.corba.omd.btm.BTMServiceHelper.read(_is);
                    return _result;
                }
                catch( org.omg.CORBA.portable.RemarshalException _rx )
                    {
                        continue;
                    }
                catch( org.omg.CORBA.portable.ApplicationException _ax )
                {
                    String _id = _ax.getId();
                    try
                    {
                        if( _id.equals("IDL:com/vci/corba/common/VCIError:1.0"))
                        {
                            throw com.vci.corba.common.VCIErrorHelper.read(_ax.getInputStream());
                        }
                        else 
                        {
                            throw new RuntimeException("Unexpected exception " + _id );
                        }
                    }
                    finally
                    {
                        try
                        {
                            _ax.getInputStream().close();
                        }
                        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( "getBTMService", _opsClass );
            if( _so == null )
                continue;
            BTMFactoryOperations _localServant = (BTMFactoryOperations)_so.servant;
            com.vci.corba.omd.btm.BTMService _result;
            try
            {
                _result = _localServant.getBTMService();
                if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 
                    ((org.omg.CORBA.portable.ServantObjectExt)_so).normalCompletion();
                return _result;
            }
            catch (com.vci.corba.common.VCIError ex) 
            {
                if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 
                    ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(ex);
                throw ex;
            }
            catch (RuntimeException re) 
            {
                if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 
                    ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(re);
                throw re;
            }
            catch (java.lang.Error err) 
            {
                if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 
                    ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(err);
                throw err;
            }
            finally
            {
                _servant_postinvoke(_so);
            }
        }
 
        }
 
    }
 
}