package com.vci.corba.volume; /** * Generated from IDL interface "VolumeService". * * @author JacORB IDL compiler V 3.9 * @version generated at 2022-12-23 15:42:24 */ public class _VolumeServiceStub extends org.omg.CORBA.portable.ObjectImpl implements com.vci.corba.volume.VolumeService { /** Serial version UID. */ private static final long serialVersionUID = 1L; private String[] ids = {"IDL:com/vci/corba/volume/VolumeService:1.0"}; public String[] _ids() { return ids; } public final static java.lang.Class _opsClass = com.vci.corba.volume.VolumeServiceOperations.class; public boolean ChangeFileName(java.lang.String resName, java.lang.String desName) 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( "ChangeFileName", true); java.lang.String tmpResult376 = resName; _os.write_wstring( tmpResult376 ); java.lang.String tmpResult377 = desName; _os.write_wstring( tmpResult377 ); _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( "ChangeFileName", _opsClass ); if( _so == null ) continue; VolumeServiceOperations _localServant = (VolumeServiceOperations)_so.servant; boolean _result; try { _result = _localServant.ChangeFileName(resName,desName); 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 deleteAllFiles(java.lang.String[] fileNames) 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( "deleteAllFiles", true); com.vci.corba.common.data.WStringArrayHelper.write(_os,fileNames); _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( "deleteAllFiles", _opsClass ); if( _so == null ) continue; VolumeServiceOperations _localServant = (VolumeServiceOperations)_so.servant; boolean _result; try { _result = _localServant.deleteAllFiles(fileNames); 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 existPath(java.lang.String filePath) 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( "existPath", true); java.lang.String tmpResult378 = filePath; _os.write_wstring( tmpResult378 ); _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( "existPath", _opsClass ); if( _so == null ) continue; VolumeServiceOperations _localServant = (VolumeServiceOperations)_so.servant; boolean _result; try { _result = _localServant.existPath(filePath); 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.volume.data.FileInfo[] getFolderFiles(java.lang.String path) 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( "getFolderFiles", true); java.lang.String tmpResult379 = path; _os.write_wstring( tmpResult379 ); _is = _invoke(_os); com.vci.corba.volume.data.FileInfo[] _result = com.vci.corba.volume.data.FileInfoListHelper.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( "getFolderFiles", _opsClass ); if( _so == null ) continue; VolumeServiceOperations _localServant = (VolumeServiceOperations)_so.servant; com.vci.corba.volume.data.FileInfo[] _result; try { _result = _localServant.getFolderFiles(path); 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 java.lang.String getHostInfo() 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( "getHostInfo", true); _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( "getHostInfo", _opsClass ); if( _so == null ) continue; VolumeServiceOperations _localServant = (VolumeServiceOperations)_so.servant; java.lang.String _result; try { _result = _localServant.getHostInfo(); 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 long getCurrrentTimeMillions() { while(true) { if(! this._is_local()) { org.omg.CORBA.portable.InputStream _is = null; org.omg.CORBA.portable.OutputStream _os = null; try { _os = _request( "getCurrrentTimeMillions", 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 { _ax.getInputStream().close(); } 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( "getCurrrentTimeMillions", _opsClass ); if( _so == null ) continue; VolumeServiceOperations _localServant = (VolumeServiceOperations)_so.servant; long _result; try { _result = _localServant.getCurrrentTimeMillions(); if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) ((org.omg.CORBA.portable.ServantObjectExt)_so).normalCompletion(); return _result; } 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 java.lang.String[] getSubFolders(java.lang.String path) 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( "getSubFolders", true); java.lang.String tmpResult380 = path; _os.write_wstring( tmpResult380 ); _is = _invoke(_os); java.lang.String[] _result = com.vci.corba.common.data.WStringArrayHelper.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( "getSubFolders", _opsClass ); if( _so == null ) continue; VolumeServiceOperations _localServant = (VolumeServiceOperations)_so.servant; java.lang.String[] _result; try { _result = _localServant.getSubFolders(path); 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 long getIntegrationFileSize(java.lang.String fileName) 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( "getIntegrationFileSize", true); java.lang.String tmpResult381 = fileName; _os.write_string( tmpResult381 ); _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( "getIntegrationFileSize", _opsClass ); if( _so == null ) continue; VolumeServiceOperations _localServant = (VolumeServiceOperations)_so.servant; long _result; try { _result = _localServant.getIntegrationFileSize(fileName); 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 byte[] receiveIntegrationFile(java.lang.String fileName, long pointoffile) 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( "receiveIntegrationFile", true); java.lang.String tmpResult382 = fileName; _os.write_string( tmpResult382 ); _os.write_longlong(pointoffile); _is = _invoke(_os); byte[] _result = com.vci.corba.common.data.bytesHelper.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( "receiveIntegrationFile", _opsClass ); if( _so == null ) continue; VolumeServiceOperations _localServant = (VolumeServiceOperations)_so.servant; byte[] _result; try { _result = _localServant.receiveIntegrationFile(fileName,pointoffile); 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 java.lang.String getFileMD5(java.lang.String fileName) 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( "getFileMD5", true); java.lang.String tmpResult383 = fileName; _os.write_wstring( tmpResult383 ); _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( "getFileMD5", _opsClass ); if( _so == null ) continue; VolumeServiceOperations _localServant = (VolumeServiceOperations)_so.servant; java.lang.String _result; try { _result = _localServant.getFileMD5(fileName); 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 deleteFile(java.lang.String fileName) 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( "deleteFile", true); java.lang.String tmpResult384 = fileName; _os.write_wstring( tmpResult384 ); _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( "deleteFile", _opsClass ); if( _so == null ) continue; VolumeServiceOperations _localServant = (VolumeServiceOperations)_so.servant; boolean _result; try { _result = _localServant.deleteFile(fileName); 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 copyFile(java.lang.String fromFileName, java.lang.String copyFileName) 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( "copyFile", true); java.lang.String tmpResult385 = fromFileName; _os.write_wstring( tmpResult385 ); java.lang.String tmpResult386 = copyFileName; _os.write_wstring( tmpResult386 ); _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( "copyFile", _opsClass ); if( _so == null ) continue; VolumeServiceOperations _localServant = (VolumeServiceOperations)_so.servant; boolean _result; try { _result = _localServant.copyFile(fromFileName,copyFileName); 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 byte[][] downloadFile(java.lang.String fileName) 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( "downloadFile", true); java.lang.String tmpResult387 = fileName; _os.write_wstring( tmpResult387 ); _is = _invoke(_os); byte[][] _result = com.vci.corba.common.data.byteSeqHelper.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( "downloadFile", _opsClass ); if( _so == null ) continue; VolumeServiceOperations _localServant = (VolumeServiceOperations)_so.servant; byte[][] _result; try { _result = _localServant.downloadFile(fileName); 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 isFileExist(java.lang.String fileName) 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( "isFileExist", true); java.lang.String tmpResult388 = fileName; _os.write_wstring( tmpResult388 ); _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( "isFileExist", _opsClass ); if( _so == null ) continue; VolumeServiceOperations _localServant = (VolumeServiceOperations)_so.servant; boolean _result; try { _result = _localServant.isFileExist(fileName); 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 long getFileModifiedTime(java.lang.String fileName) 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( "getFileModifiedTime", true); java.lang.String tmpResult389 = fileName; _os.write_wstring( tmpResult389 ); _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( "getFileModifiedTime", _opsClass ); if( _so == null ) continue; VolumeServiceOperations _localServant = (VolumeServiceOperations)_so.servant; long _result; try { _result = _localServant.getFileModifiedTime(fileName); 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 receiveFile(java.lang.String fileName, byte[] file, long pointoffile, long modifiedtime, long filesize) 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( "receiveFile", true); java.lang.String tmpResult390 = fileName; _os.write_wstring( tmpResult390 ); com.vci.corba.common.data.bytesHelper.write(_os,file); _os.write_longlong(pointoffile); _os.write_longlong(modifiedtime); _os.write_longlong(filesize); _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( "receiveFile", _opsClass ); if( _so == null ) continue; VolumeServiceOperations _localServant = (VolumeServiceOperations)_so.servant; boolean _result; try { _result = _localServant.receiveFile(fileName,file,pointoffile,modifiedtime,filesize); 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 verifyFileUploadSuccess(java.lang.String destFileFullPath, long clientFileSize, java.lang.String clientFileMD5, java.lang.String[] otherParams) 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( "verifyFileUploadSuccess", true); java.lang.String tmpResult391 = destFileFullPath; _os.write_wstring( tmpResult391 ); _os.write_longlong(clientFileSize); java.lang.String tmpResult392 = clientFileMD5; _os.write_wstring( tmpResult392 ); com.vci.corba.common.data.WStringArrayHelper.write(_os,otherParams); _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( "verifyFileUploadSuccess", _opsClass ); if( _so == null ) continue; VolumeServiceOperations _localServant = (VolumeServiceOperations)_so.servant; boolean _result; try { _result = _localServant.verifyFileUploadSuccess(destFileFullPath,clientFileSize,clientFileMD5,otherParams); 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 byte[] sendFile(java.lang.String fileName, long pointoffile) 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( "sendFile", true); java.lang.String tmpResult393 = fileName; _os.write_wstring( tmpResult393 ); _os.write_longlong(pointoffile); _is = _invoke(_os); byte[] _result = com.vci.corba.common.data.bytesHelper.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( "sendFile", _opsClass ); if( _so == null ) continue; VolumeServiceOperations _localServant = (VolumeServiceOperations)_so.servant; byte[] _result; try { _result = _localServant.sendFile(fileName,pointoffile); 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.volume.data.VolumeUseInfo[] getVolumeUseInfo() 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( "getVolumeUseInfo", true); _is = _invoke(_os); com.vci.corba.volume.data.VolumeUseInfo[] _result = com.vci.corba.volume.data.VolumeUseInfoListHelper.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( "getVolumeUseInfo", _opsClass ); if( _so == null ) continue; VolumeServiceOperations _localServant = (VolumeServiceOperations)_so.servant; com.vci.corba.volume.data.VolumeUseInfo[] _result; try { _result = _localServant.getVolumeUseInfo(); 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 deleteAllBakFiles(java.lang.String fileName) 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( "deleteAllBakFiles", true); java.lang.String tmpResult394 = fileName; _os.write_wstring( tmpResult394 ); _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( "deleteAllBakFiles", _opsClass ); if( _so == null ) continue; VolumeServiceOperations _localServant = (VolumeServiceOperations)_so.servant; boolean _result; try { _result = _localServant.deleteAllBakFiles(fileName); 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.volume.data.FileInfo[] getFileList(java.lang.String path, java.lang.String savePath) 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( "getFileList", true); java.lang.String tmpResult395 = path; _os.write_wstring( tmpResult395 ); java.lang.String tmpResult396 = savePath; _os.write_wstring( tmpResult396 ); _is = _invoke(_os); com.vci.corba.volume.data.FileInfo[] _result = com.vci.corba.volume.data.FileInfoListHelper.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( "getFileList", _opsClass ); if( _so == null ) continue; VolumeServiceOperations _localServant = (VolumeServiceOperations)_so.servant; com.vci.corba.volume.data.FileInfo[] _result; try { _result = _localServant.getFileList(path,savePath); 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 testConntect() { while(true) { if(! this._is_local()) { org.omg.CORBA.portable.InputStream _is = null; org.omg.CORBA.portable.OutputStream _os = null; try { _os = _request( "testConntect", 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 { _ax.getInputStream().close(); } 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( "testConntect", _opsClass ); if( _so == null ) continue; VolumeServiceOperations _localServant = (VolumeServiceOperations)_so.servant; boolean _result; try { _result = _localServant.testConntect(); if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) ((org.omg.CORBA.portable.ServantObjectExt)_so).normalCompletion(); return _result; } 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 createDirectory(java.lang.String historyDirectory, java.lang.String directoryName) 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( "createDirectory", true); java.lang.String tmpResult397 = historyDirectory; _os.write_wstring( tmpResult397 ); java.lang.String tmpResult398 = directoryName; _os.write_wstring( tmpResult398 ); _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( "createDirectory", _opsClass ); if( _so == null ) continue; VolumeServiceOperations _localServant = (VolumeServiceOperations)_so.servant; boolean _result; try { _result = _localServant.createDirectory(historyDirectory,directoryName); 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 long getFileSize(java.lang.String fileName) 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( "getFileSize", true); java.lang.String tmpResult399 = fileName; _os.write_wstring( tmpResult399 ); _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( "getFileSize", _opsClass ); if( _so == null ) continue; VolumeServiceOperations _localServant = (VolumeServiceOperations)_so.servant; long _result; try { _result = _localServant.getFileSize(fileName); 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); } } } } }