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 abstract class VolumeServicePOA
|
extends org.omg.PortableServer.Servant
|
implements org.omg.CORBA.portable.InvokeHandler, com.vci.corba.volume.VolumeServiceOperations
|
{
|
static private final java.util.HashMap<String,Integer> m_opsHash = new java.util.HashMap<String,Integer>();
|
static
|
{
|
m_opsHash.put ( "ChangeFileName", Integer.valueOf(0));
|
m_opsHash.put ( "deleteAllFiles", Integer.valueOf(1));
|
m_opsHash.put ( "existPath", Integer.valueOf(2));
|
m_opsHash.put ( "getFolderFiles", Integer.valueOf(3));
|
m_opsHash.put ( "getHostInfo", Integer.valueOf(4));
|
m_opsHash.put ( "getCurrrentTimeMillions", Integer.valueOf(5));
|
m_opsHash.put ( "getSubFolders", Integer.valueOf(6));
|
m_opsHash.put ( "getIntegrationFileSize", Integer.valueOf(7));
|
m_opsHash.put ( "receiveIntegrationFile", Integer.valueOf(8));
|
m_opsHash.put ( "getFileMD5", Integer.valueOf(9));
|
m_opsHash.put ( "deleteFile", Integer.valueOf(10));
|
m_opsHash.put ( "copyFile", Integer.valueOf(11));
|
m_opsHash.put ( "downloadFile", Integer.valueOf(12));
|
m_opsHash.put ( "isFileExist", Integer.valueOf(13));
|
m_opsHash.put ( "getFileModifiedTime", Integer.valueOf(14));
|
m_opsHash.put ( "receiveFile", Integer.valueOf(15));
|
m_opsHash.put ( "verifyFileUploadSuccess", Integer.valueOf(16));
|
m_opsHash.put ( "sendFile", Integer.valueOf(17));
|
m_opsHash.put ( "getVolumeUseInfo", Integer.valueOf(18));
|
m_opsHash.put ( "deleteAllBakFiles", Integer.valueOf(19));
|
m_opsHash.put ( "getFileList", Integer.valueOf(20));
|
m_opsHash.put ( "testConntect", Integer.valueOf(21));
|
m_opsHash.put ( "createDirectory", Integer.valueOf(22));
|
m_opsHash.put ( "getFileSize", Integer.valueOf(23));
|
}
|
private String[] ids = {"IDL:com/vci/corba/volume/VolumeService:1.0"};
|
public com.vci.corba.volume.VolumeService _this()
|
{
|
org.omg.CORBA.Object __o = _this_object() ;
|
com.vci.corba.volume.VolumeService __r = com.vci.corba.volume.VolumeServiceHelper.narrow(__o);
|
return __r;
|
}
|
public com.vci.corba.volume.VolumeService _this(org.omg.CORBA.ORB orb)
|
{
|
org.omg.CORBA.Object __o = _this_object(orb) ;
|
com.vci.corba.volume.VolumeService __r = com.vci.corba.volume.VolumeServiceHelper.narrow(__o);
|
return __r;
|
}
|
public org.omg.CORBA.portable.OutputStream _invoke(String method, org.omg.CORBA.portable.InputStream _input, org.omg.CORBA.portable.ResponseHandler handler)
|
throws org.omg.CORBA.SystemException
|
{
|
org.omg.CORBA.portable.OutputStream _out = null;
|
// do something
|
// quick lookup of operation
|
java.lang.Integer opsIndex = (java.lang.Integer)m_opsHash.get ( method );
|
if ( null == opsIndex )
|
throw new org.omg.CORBA.BAD_OPERATION(method + " not found");
|
switch ( opsIndex.intValue() )
|
{
|
case 0: // ChangeFileName
|
{
|
try
|
{
|
java.lang.String _arg0=_input.read_wstring();
|
java.lang.String _arg1=_input.read_wstring();
|
_out = handler.createReply();
|
_out.write_boolean(ChangeFileName(_arg0,_arg1));
|
}
|
catch(com.vci.corba.common.VCIError _ex0)
|
{
|
_out = handler.createExceptionReply();
|
com.vci.corba.common.VCIErrorHelper.write(_out, _ex0);
|
}
|
break;
|
}
|
case 1: // deleteAllFiles
|
{
|
try
|
{
|
java.lang.String[] _arg0=com.vci.corba.common.data.WStringArrayHelper.read(_input);
|
_out = handler.createReply();
|
_out.write_boolean(deleteAllFiles(_arg0));
|
}
|
catch(com.vci.corba.common.VCIError _ex0)
|
{
|
_out = handler.createExceptionReply();
|
com.vci.corba.common.VCIErrorHelper.write(_out, _ex0);
|
}
|
break;
|
}
|
case 2: // existPath
|
{
|
try
|
{
|
java.lang.String _arg0=_input.read_wstring();
|
_out = handler.createReply();
|
_out.write_boolean(existPath(_arg0));
|
}
|
catch(com.vci.corba.common.VCIError _ex0)
|
{
|
_out = handler.createExceptionReply();
|
com.vci.corba.common.VCIErrorHelper.write(_out, _ex0);
|
}
|
break;
|
}
|
case 3: // getFolderFiles
|
{
|
try
|
{
|
java.lang.String _arg0=_input.read_wstring();
|
_out = handler.createReply();
|
com.vci.corba.volume.data.FileInfoListHelper.write(_out,getFolderFiles(_arg0));
|
}
|
catch(com.vci.corba.common.VCIError _ex0)
|
{
|
_out = handler.createExceptionReply();
|
com.vci.corba.common.VCIErrorHelper.write(_out, _ex0);
|
}
|
break;
|
}
|
case 4: // getHostInfo
|
{
|
try
|
{
|
_out = handler.createReply();
|
java.lang.String tmpResult400 = getHostInfo();
|
_out.write_wstring( tmpResult400 );
|
}
|
catch(com.vci.corba.common.VCIError _ex0)
|
{
|
_out = handler.createExceptionReply();
|
com.vci.corba.common.VCIErrorHelper.write(_out, _ex0);
|
}
|
break;
|
}
|
case 5: // getCurrrentTimeMillions
|
{
|
_out = handler.createReply();
|
_out.write_longlong(getCurrrentTimeMillions());
|
break;
|
}
|
case 6: // getSubFolders
|
{
|
try
|
{
|
java.lang.String _arg0=_input.read_wstring();
|
_out = handler.createReply();
|
com.vci.corba.common.data.WStringArrayHelper.write(_out,getSubFolders(_arg0));
|
}
|
catch(com.vci.corba.common.VCIError _ex0)
|
{
|
_out = handler.createExceptionReply();
|
com.vci.corba.common.VCIErrorHelper.write(_out, _ex0);
|
}
|
break;
|
}
|
case 7: // getIntegrationFileSize
|
{
|
try
|
{
|
java.lang.String _arg0=_input.read_string();
|
_out = handler.createReply();
|
_out.write_longlong(getIntegrationFileSize(_arg0));
|
}
|
catch(com.vci.corba.common.VCIError _ex0)
|
{
|
_out = handler.createExceptionReply();
|
com.vci.corba.common.VCIErrorHelper.write(_out, _ex0);
|
}
|
break;
|
}
|
case 8: // receiveIntegrationFile
|
{
|
try
|
{
|
java.lang.String _arg0=_input.read_string();
|
long _arg1=_input.read_longlong();
|
_out = handler.createReply();
|
com.vci.corba.common.data.bytesHelper.write(_out,receiveIntegrationFile(_arg0,_arg1));
|
}
|
catch(com.vci.corba.common.VCIError _ex0)
|
{
|
_out = handler.createExceptionReply();
|
com.vci.corba.common.VCIErrorHelper.write(_out, _ex0);
|
}
|
break;
|
}
|
case 9: // getFileMD5
|
{
|
try
|
{
|
java.lang.String _arg0=_input.read_wstring();
|
_out = handler.createReply();
|
java.lang.String tmpResult401 = getFileMD5(_arg0);
|
_out.write_wstring( tmpResult401 );
|
}
|
catch(com.vci.corba.common.VCIError _ex0)
|
{
|
_out = handler.createExceptionReply();
|
com.vci.corba.common.VCIErrorHelper.write(_out, _ex0);
|
}
|
break;
|
}
|
case 10: // deleteFile
|
{
|
try
|
{
|
java.lang.String _arg0=_input.read_wstring();
|
_out = handler.createReply();
|
_out.write_boolean(deleteFile(_arg0));
|
}
|
catch(com.vci.corba.common.VCIError _ex0)
|
{
|
_out = handler.createExceptionReply();
|
com.vci.corba.common.VCIErrorHelper.write(_out, _ex0);
|
}
|
break;
|
}
|
case 11: // copyFile
|
{
|
try
|
{
|
java.lang.String _arg0=_input.read_wstring();
|
java.lang.String _arg1=_input.read_wstring();
|
_out = handler.createReply();
|
_out.write_boolean(copyFile(_arg0,_arg1));
|
}
|
catch(com.vci.corba.common.VCIError _ex0)
|
{
|
_out = handler.createExceptionReply();
|
com.vci.corba.common.VCIErrorHelper.write(_out, _ex0);
|
}
|
break;
|
}
|
case 12: // downloadFile
|
{
|
try
|
{
|
java.lang.String _arg0=_input.read_wstring();
|
_out = handler.createReply();
|
com.vci.corba.common.data.byteSeqHelper.write(_out,downloadFile(_arg0));
|
}
|
catch(com.vci.corba.common.VCIError _ex0)
|
{
|
_out = handler.createExceptionReply();
|
com.vci.corba.common.VCIErrorHelper.write(_out, _ex0);
|
}
|
break;
|
}
|
case 13: // isFileExist
|
{
|
try
|
{
|
java.lang.String _arg0=_input.read_wstring();
|
_out = handler.createReply();
|
_out.write_boolean(isFileExist(_arg0));
|
}
|
catch(com.vci.corba.common.VCIError _ex0)
|
{
|
_out = handler.createExceptionReply();
|
com.vci.corba.common.VCIErrorHelper.write(_out, _ex0);
|
}
|
break;
|
}
|
case 14: // getFileModifiedTime
|
{
|
try
|
{
|
java.lang.String _arg0=_input.read_wstring();
|
_out = handler.createReply();
|
_out.write_longlong(getFileModifiedTime(_arg0));
|
}
|
catch(com.vci.corba.common.VCIError _ex0)
|
{
|
_out = handler.createExceptionReply();
|
com.vci.corba.common.VCIErrorHelper.write(_out, _ex0);
|
}
|
break;
|
}
|
case 15: // receiveFile
|
{
|
try
|
{
|
java.lang.String _arg0=_input.read_wstring();
|
byte[] _arg1=com.vci.corba.common.data.bytesHelper.read(_input);
|
long _arg2=_input.read_longlong();
|
long _arg3=_input.read_longlong();
|
long _arg4=_input.read_longlong();
|
_out = handler.createReply();
|
_out.write_boolean(receiveFile(_arg0,_arg1,_arg2,_arg3,_arg4));
|
}
|
catch(com.vci.corba.common.VCIError _ex0)
|
{
|
_out = handler.createExceptionReply();
|
com.vci.corba.common.VCIErrorHelper.write(_out, _ex0);
|
}
|
break;
|
}
|
case 16: // verifyFileUploadSuccess
|
{
|
try
|
{
|
java.lang.String _arg0=_input.read_wstring();
|
long _arg1=_input.read_longlong();
|
java.lang.String _arg2=_input.read_wstring();
|
java.lang.String[] _arg3=com.vci.corba.common.data.WStringArrayHelper.read(_input);
|
_out = handler.createReply();
|
_out.write_boolean(verifyFileUploadSuccess(_arg0,_arg1,_arg2,_arg3));
|
}
|
catch(com.vci.corba.common.VCIError _ex0)
|
{
|
_out = handler.createExceptionReply();
|
com.vci.corba.common.VCIErrorHelper.write(_out, _ex0);
|
}
|
break;
|
}
|
case 17: // sendFile
|
{
|
try
|
{
|
java.lang.String _arg0=_input.read_wstring();
|
long _arg1=_input.read_longlong();
|
_out = handler.createReply();
|
com.vci.corba.common.data.bytesHelper.write(_out,sendFile(_arg0,_arg1));
|
}
|
catch(com.vci.corba.common.VCIError _ex0)
|
{
|
_out = handler.createExceptionReply();
|
com.vci.corba.common.VCIErrorHelper.write(_out, _ex0);
|
}
|
break;
|
}
|
case 18: // getVolumeUseInfo
|
{
|
try
|
{
|
_out = handler.createReply();
|
com.vci.corba.volume.data.VolumeUseInfoListHelper.write(_out,getVolumeUseInfo());
|
}
|
catch(com.vci.corba.common.VCIError _ex0)
|
{
|
_out = handler.createExceptionReply();
|
com.vci.corba.common.VCIErrorHelper.write(_out, _ex0);
|
}
|
break;
|
}
|
case 19: // deleteAllBakFiles
|
{
|
try
|
{
|
java.lang.String _arg0=_input.read_wstring();
|
_out = handler.createReply();
|
_out.write_boolean(deleteAllBakFiles(_arg0));
|
}
|
catch(com.vci.corba.common.VCIError _ex0)
|
{
|
_out = handler.createExceptionReply();
|
com.vci.corba.common.VCIErrorHelper.write(_out, _ex0);
|
}
|
break;
|
}
|
case 20: // getFileList
|
{
|
try
|
{
|
java.lang.String _arg0=_input.read_wstring();
|
java.lang.String _arg1=_input.read_wstring();
|
_out = handler.createReply();
|
com.vci.corba.volume.data.FileInfoListHelper.write(_out,getFileList(_arg0,_arg1));
|
}
|
catch(com.vci.corba.common.VCIError _ex0)
|
{
|
_out = handler.createExceptionReply();
|
com.vci.corba.common.VCIErrorHelper.write(_out, _ex0);
|
}
|
break;
|
}
|
case 21: // testConntect
|
{
|
_out = handler.createReply();
|
_out.write_boolean(testConntect());
|
break;
|
}
|
case 22: // createDirectory
|
{
|
try
|
{
|
java.lang.String _arg0=_input.read_wstring();
|
java.lang.String _arg1=_input.read_wstring();
|
_out = handler.createReply();
|
_out.write_boolean(createDirectory(_arg0,_arg1));
|
}
|
catch(com.vci.corba.common.VCIError _ex0)
|
{
|
_out = handler.createExceptionReply();
|
com.vci.corba.common.VCIErrorHelper.write(_out, _ex0);
|
}
|
break;
|
}
|
case 23: // getFileSize
|
{
|
try
|
{
|
java.lang.String _arg0=_input.read_wstring();
|
_out = handler.createReply();
|
_out.write_longlong(getFileSize(_arg0));
|
}
|
catch(com.vci.corba.common.VCIError _ex0)
|
{
|
_out = handler.createExceptionReply();
|
com.vci.corba.common.VCIErrorHelper.write(_out, _ex0);
|
}
|
break;
|
}
|
}
|
return _out;
|
}
|
|
public String[] _all_interfaces(org.omg.PortableServer.POA poa, byte[] obj_id)
|
{
|
return ids;
|
}
|
}
|