package com.vci.corba.cache; /** * Generated from IDL interface "CacheService". * * @author JacORB IDL compiler V 3.9 * @version generated at 2022-12-23 15:42:24 */ public class _CacheServiceStub extends org.omg.CORBA.portable.ObjectImpl implements com.vci.corba.cache.CacheService { /** Serial version UID. */ private static final long serialVersionUID = 1L; private String[] ids = {"IDL:com/vci/corba/cache/CacheService:1.0"}; public String[] _ids() { return ids; } public final static java.lang.Class _opsClass = com.vci.corba.cache.CacheServiceOperations.class; public java.lang.String recordModifyInfo(java.lang.String objType, java.lang.String objId, java.lang.String operate) 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( "recordModifyInfo", true); java.lang.String tmpResult1112 = objType; _os.write_wstring( tmpResult1112 ); java.lang.String tmpResult1113 = objId; _os.write_wstring( tmpResult1113 ); java.lang.String tmpResult1114 = operate; _os.write_wstring( tmpResult1114 ); _is = _invoke(_os); java.lang.String _result = _is.read_wstring(); 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( "recordModifyInfo", _opsClass ); if( _so == null ) continue; CacheServiceOperations _localServant = (CacheServiceOperations)_so.servant; java.lang.String _result; try { _result = _localServant.recordModifyInfo(objType,objId,operate); 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); } } } } public com.vci.corba.cache.PLCacheRecord[] getRecordByType(java.lang.String objType, long time) 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( "getRecordByType", true); java.lang.String tmpResult1115 = objType; _os.write_wstring( tmpResult1115 ); _os.write_longlong(time); _is = _invoke(_os); com.vci.corba.cache.PLCacheRecord[] _result = com.vci.corba.cache.PLCacheRecordArrayHelper.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( "getRecordByType", _opsClass ); if( _so == null ) continue; CacheServiceOperations _localServant = (CacheServiceOperations)_so.servant; com.vci.corba.cache.PLCacheRecord[] _result; try { _result = _localServant.getRecordByType(objType,time); 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); } } } } public void resetObjType(java.lang.String type) 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( "resetObjType", true); java.lang.String tmpResult1116 = type; _os.write_wstring( tmpResult1116 ); _is = _invoke(_os); return; } 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( "resetObjType", _opsClass ); if( _so == null ) continue; CacheServiceOperations _localServant = (CacheServiceOperations)_so.servant; try { _localServant.resetObjType(type); if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) ((org.omg.CORBA.portable.ServantObjectExt)_so).normalCompletion(); return; } 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); } } } } public long getDBCurrentTime() 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( "getDBCurrentTime", true); _is = _invoke(_os); long _result = _is.read_longlong(); 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( "getDBCurrentTime", _opsClass ); if( _so == null ) continue; CacheServiceOperations _localServant = (CacheServiceOperations)_so.servant; long _result; try { _result = _localServant.getDBCurrentTime(); 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); } } } } public boolean clearModifyRecordByType(java.lang.String objType) 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( "clearModifyRecordByType", true); java.lang.String tmpResult1117 = objType; _os.write_wstring( tmpResult1117 ); _is = _invoke(_os); boolean _result = _is.read_boolean(); 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( "clearModifyRecordByType", _opsClass ); if( _so == null ) continue; CacheServiceOperations _localServant = (CacheServiceOperations)_so.servant; boolean _result; try { _result = _localServant.clearModifyRecordByType(objType); 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); } } } } public boolean clearModifyRecord() 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( "clearModifyRecord", true); _is = _invoke(_os); boolean _result = _is.read_boolean(); 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( "clearModifyRecord", _opsClass ); if( _so == null ) continue; CacheServiceOperations _localServant = (CacheServiceOperations)_so.servant; boolean _result; try { _result = _localServant.clearModifyRecord(); 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); } } } } public com.vci.corba.cache.PLCacheRecord[] getAllRecordByType(java.lang.String objType) 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( "getAllRecordByType", true); java.lang.String tmpResult1118 = objType; _os.write_wstring( tmpResult1118 ); _is = _invoke(_os); com.vci.corba.cache.PLCacheRecord[] _result = com.vci.corba.cache.PLCacheRecordArrayHelper.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( "getAllRecordByType", _opsClass ); if( _so == null ) continue; CacheServiceOperations _localServant = (CacheServiceOperations)_so.servant; com.vci.corba.cache.PLCacheRecord[] _result; try { _result = _localServant.getAllRecordByType(objType); 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); } } } } public boolean reloadCache() 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( "reloadCache", true); _is = _invoke(_os); boolean _result = _is.read_boolean(); 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( "reloadCache", _opsClass ); if( _so == null ) continue; CacheServiceOperations _localServant = (CacheServiceOperations)_so.servant; boolean _result; try { _result = _localServant.reloadCache(); 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); } } } } }