package com.vci.corba.volume;
|
|
|
/**
|
* Generated from IDL interface "VolumeFactory".
|
*
|
* @author JacORB IDL compiler V 3.9
|
* @version generated at 2022-12-23 15:42:24
|
*/
|
|
public class _VolumeFactoryStub
|
extends org.omg.CORBA.portable.ObjectImpl
|
implements com.vci.corba.volume.VolumeFactory
|
{
|
/** Serial version UID. */
|
private static final long serialVersionUID = 1L;
|
private String[] ids = {"IDL:com/vci/corba/volume/VolumeFactory:1.0"};
|
public String[] _ids()
|
{
|
return ids;
|
}
|
|
public final static java.lang.Class _opsClass = com.vci.corba.volume.VolumeFactoryOperations.class;
|
public int getTransmitBlockSize() 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( "getTransmitBlockSize", true);
|
_is = _invoke(_os);
|
int _result = _is.read_long();
|
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( "getTransmitBlockSize", _opsClass );
|
if( _so == null )
|
continue;
|
VolumeFactoryOperations _localServant = (VolumeFactoryOperations)_so.servant;
|
int _result;
|
try
|
{
|
_result = _localServant.getTransmitBlockSize();
|
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.PvolumeInfo getIsvalidVolumeName() 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( "getIsvalidVolumeName", true);
|
_is = _invoke(_os);
|
com.vci.corba.volume.data.PvolumeInfo _result = com.vci.corba.volume.data.PvolumeInfoHelper.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( "getIsvalidVolumeName", _opsClass );
|
if( _so == null )
|
continue;
|
VolumeFactoryOperations _localServant = (VolumeFactoryOperations)_so.servant;
|
com.vci.corba.volume.data.PvolumeInfo _result;
|
try
|
{
|
_result = _localServant.getIsvalidVolumeName();
|
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 checkDelIsvalid(java.lang.String id) 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( "checkDelIsvalid", true);
|
java.lang.String tmpResult402 = id;
|
_os.write_wstring( tmpResult402 );
|
_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( "checkDelIsvalid", _opsClass );
|
if( _so == null )
|
continue;
|
VolumeFactoryOperations _localServant = (VolumeFactoryOperations)_so.servant;
|
boolean _result;
|
try
|
{
|
_result = _localServant.checkDelIsvalid(id);
|
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 int fetchVolumeInfoByIds(java.lang.String id) 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( "fetchVolumeInfoByIds", true);
|
java.lang.String tmpResult403 = id;
|
_os.write_wstring( tmpResult403 );
|
_is = _invoke(_os);
|
int _result = _is.read_long();
|
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( "fetchVolumeInfoByIds", _opsClass );
|
if( _so == null )
|
continue;
|
VolumeFactoryOperations _localServant = (VolumeFactoryOperations)_so.servant;
|
int _result;
|
try
|
{
|
_result = _localServant.fetchVolumeInfoByIds(id);
|
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 savePvolume(com.vci.corba.volume.data.PvolumeInfo vol, com.vci.corba.common.data.UserEntityInfo userEntity) 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( "savePvolume", true);
|
com.vci.corba.volume.data.PvolumeInfoHelper.write(_os,vol);
|
com.vci.corba.framework.data.UserEntityInfoHelper.write(_os,userEntity);
|
_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( "savePvolume", _opsClass );
|
if( _so == null )
|
continue;
|
VolumeFactoryOperations _localServant = (VolumeFactoryOperations)_so.servant;
|
java.lang.String _result;
|
try
|
{
|
_result = _localServant.savePvolume(vol,userEntity);
|
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 deletePvolume(java.lang.String[] ids, com.vci.corba.common.data.UserEntityInfo userEntity) 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( "deletePvolume", true);
|
com.vci.corba.common.data.WStringArrayHelper.write(_os,ids);
|
com.vci.corba.framework.data.UserEntityInfoHelper.write(_os,userEntity);
|
_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( "deletePvolume", _opsClass );
|
if( _so == null )
|
continue;
|
VolumeFactoryOperations _localServant = (VolumeFactoryOperations)_so.servant;
|
boolean _result;
|
try
|
{
|
_result = _localServant.deletePvolume(ids,userEntity);
|
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 updatePvolume(com.vci.corba.volume.data.PvolumeInfo vol, com.vci.corba.common.data.UserEntityInfo userEntity) 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( "updatePvolume", true);
|
com.vci.corba.volume.data.PvolumeInfoHelper.write(_os,vol);
|
com.vci.corba.framework.data.UserEntityInfoHelper.write(_os,userEntity);
|
_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( "updatePvolume", _opsClass );
|
if( _so == null )
|
continue;
|
VolumeFactoryOperations _localServant = (VolumeFactoryOperations)_so.servant;
|
boolean _result;
|
try
|
{
|
_result = _localServant.updatePvolume(vol,userEntity);
|
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 updatePvolumeHql(com.vci.corba.common.data.UserEntityInfo userEntity) 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( "updatePvolumeHql", true);
|
com.vci.corba.framework.data.UserEntityInfoHelper.write(_os,userEntity);
|
_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( "updatePvolumeHql", _opsClass );
|
if( _so == null )
|
continue;
|
VolumeFactoryOperations _localServant = (VolumeFactoryOperations)_so.servant;
|
try
|
{
|
_localServant.updatePvolumeHql(userEntity);
|
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 com.vci.corba.volume.data.PvolumeInfo getIsvalidVolumeNameInServerEnv() 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( "getIsvalidVolumeNameInServerEnv", true);
|
_is = _invoke(_os);
|
com.vci.corba.volume.data.PvolumeInfo _result = com.vci.corba.volume.data.PvolumeInfoHelper.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( "getIsvalidVolumeNameInServerEnv", _opsClass );
|
if( _so == null )
|
continue;
|
VolumeFactoryOperations _localServant = (VolumeFactoryOperations)_so.servant;
|
com.vci.corba.volume.data.PvolumeInfo _result;
|
try
|
{
|
_result = _localServant.getIsvalidVolumeNameInServerEnv();
|
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.PvolumeInfo getDefaultVolume() 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( "getDefaultVolume", true);
|
_is = _invoke(_os);
|
com.vci.corba.volume.data.PvolumeInfo _result = com.vci.corba.volume.data.PvolumeInfoHelper.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( "getDefaultVolume", _opsClass );
|
if( _so == null )
|
continue;
|
VolumeFactoryOperations _localServant = (VolumeFactoryOperations)_so.servant;
|
com.vci.corba.volume.data.PvolumeInfo _result;
|
try
|
{
|
_result = _localServant.getDefaultVolume();
|
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.PvolumeInfo[] getPvolumesPage(int pageSize, int pageIndex) 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( "getPvolumesPage", true);
|
_os.write_long(pageSize);
|
_os.write_long(pageIndex);
|
_is = _invoke(_os);
|
com.vci.corba.volume.data.PvolumeInfo[] _result = com.vci.corba.volume.data.PvolumeInfoListHelper.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( "getPvolumesPage", _opsClass );
|
if( _so == null )
|
continue;
|
VolumeFactoryOperations _localServant = (VolumeFactoryOperations)_so.servant;
|
com.vci.corba.volume.data.PvolumeInfo[] _result;
|
try
|
{
|
_result = _localServant.getPvolumesPage(pageSize,pageIndex);
|
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.PvolumeInfo getDocumentVolume(java.lang.String id) 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( "getDocumentVolume", true);
|
java.lang.String tmpResult404 = id;
|
_os.write_wstring( tmpResult404 );
|
_is = _invoke(_os);
|
com.vci.corba.volume.data.PvolumeInfo _result = com.vci.corba.volume.data.PvolumeInfoHelper.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( "getDocumentVolume", _opsClass );
|
if( _so == null )
|
continue;
|
VolumeFactoryOperations _localServant = (VolumeFactoryOperations)_so.servant;
|
com.vci.corba.volume.data.PvolumeInfo _result;
|
try
|
{
|
_result = _localServant.getDocumentVolume(id);
|
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.PvolumeInfo[] getAllPvolumes() 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( "getAllPvolumes", true);
|
_is = _invoke(_os);
|
com.vci.corba.volume.data.PvolumeInfo[] _result = com.vci.corba.volume.data.PvolumeInfoListHelper.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( "getAllPvolumes", _opsClass );
|
if( _so == null )
|
continue;
|
VolumeFactoryOperations _localServant = (VolumeFactoryOperations)_so.servant;
|
com.vci.corba.volume.data.PvolumeInfo[] _result;
|
try
|
{
|
_result = _localServant.getAllPvolumes();
|
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);
|
}
|
}
|
|
}
|
|
}
|
|
}
|