⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 _managekeystub.java

📁 corba是一款商用内存检测工具
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
    throw _vis_err;
    } finally {
    _servant_postinvoke(_so);
    }

    }
    }
  }

  /**
   * <pre>
   *   long long SetKey (in string KeyValue);
   * </pre>
   */
  public long SetKey (java.lang.String KeyValue) {

    while (true) {
    if (!_is_local()) {
      org.omg.CORBA.portable.OutputStream _output = null;
      org.omg.CORBA.portable.InputStream  _input  = null;
      long _result;
      try {
        _output = this._request("SetKey", true);
        _output.write_string((java.lang.String)KeyValue);
        _input = this._invoke(_output);
        _result = _input.read_longlong();
        return _result;
      }
      catch (org.omg.CORBA.portable.ApplicationException _exception) {
        java.lang.String _exception_id = _exception.getId();
        throw new org.omg.CORBA.UNKNOWN("Unexpected User Exception: " + _exception_id);
      }
      catch (org.omg.CORBA.NO_RESPONSE _vis_nm ) {
       if(_vis_nm.minor == (org.omg.CORBA.OMGVMCID.value | 99)) {
            return 0L;

    }
    throw _vis_nm;
    }
    catch (org.omg.CORBA.portable.RemarshalException _exception) {
    continue;
    }
    finally {
    this._releaseReply(_input);
    }
    } else {
    ManageKeyOperations _self = null;
    final org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke("SetKey", _opsClass);
    if (_so == null) {
    continue;
    }
    try {
    _self = (ManageKeyOperations)_so.servant;
    }catch (java.lang.ClassCastException _vis_ce) {
    org.omg.CORBA.portable.OutputStream _output = null;
    org.omg.CORBA.portable.InputStream  _input  = null;
    long _result;
    try {
    _output = _orb().create_output_stream();
    final org.omg.CORBA.portable.OutputStream _response_output = _orb().create_output_stream();
    final org.omg.CORBA.portable.OutputStream _response_ex_output = _orb().create_output_stream();
    com.inprise.vbroker.orb.VBResponseHandler _vis_vbr = com.inprise.vbroker.orb.VBResponseHandler.getResponseHandler(_response_output,_response_ex_output);
    _output.write_string((java.lang.String)KeyValue);
    org.omg.CORBA.portable.OutputStream _result_output = (((org.omg.CORBA.portable.InvokeHandler)_so.servant)._invoke("SetKey",_output.create_input_stream(),_vis_vbr));
    _input = _result_output.create_input_stream();

    _result = _input.read_longlong();
    if (_so instanceof org.omg.CORBA.portable.ServantObjectExt) {
    ((org.omg.CORBA.portable.ServantObjectExt)_so).normalCompletion();
    }
    return _result;
    } catch (java.lang.RuntimeException _vis_re) {
    if (_so instanceof org.omg.CORBA.portable.ServantObjectExt) {
    ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion((Throwable)_vis_re);
    }
    throw _vis_re;
    } catch (java.lang.Error _vis_err) {
    if (_so instanceof org.omg.CORBA.portable.ServantObjectExt) {
    ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion((Throwable)_vis_err);
    }
    throw _vis_err;
    }finally {
    _servant_postinvoke(_so);
    this._releaseReply(_input);
    }
    }
    try {
    long _ret = _self.SetKey(KeyValue);
    if (_so instanceof org.omg.CORBA.portable.ServantObjectExt) {
    ((org.omg.CORBA.portable.ServantObjectExt)_so).normalCompletion();
    }
    return _ret;
    } catch (java.lang.RuntimeException _vis_re) {
    if (_so instanceof org.omg.CORBA.portable.ServantObjectExt) {
    ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion((Throwable)_vis_re);
    }
    throw _vis_re;
    } catch (java.lang.Error _vis_err) {
    if (_so instanceof org.omg.CORBA.portable.ServantObjectExt) {
    ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion((Throwable)_vis_err);
    }
    throw _vis_err;
    } finally {
    _servant_postinvoke(_so);
    }

    }
    }
  }

  /**
   * <pre>
   *   long long Connect (in string UserName);
   * </pre>
   */
  public long Connect (java.lang.String UserName) {

    while (true) {
    if (!_is_local()) {
      org.omg.CORBA.portable.OutputStream _output = null;
      org.omg.CORBA.portable.InputStream  _input  = null;
      long _result;
      try {
        _output = this._request("Connect", true);
        _output.write_string((java.lang.String)UserName);
        _input = this._invoke(_output);
        _result = _input.read_longlong();
        return _result;
      }
      catch (org.omg.CORBA.portable.ApplicationException _exception) {
        java.lang.String _exception_id = _exception.getId();
        throw new org.omg.CORBA.UNKNOWN("Unexpected User Exception: " + _exception_id);
      }
      catch (org.omg.CORBA.NO_RESPONSE _vis_nm ) {
       if(_vis_nm.minor == (org.omg.CORBA.OMGVMCID.value | 99)) {
            return 0L;

    }
    throw _vis_nm;
    }
    catch (org.omg.CORBA.portable.RemarshalException _exception) {
    continue;
    }
    finally {
    this._releaseReply(_input);
    }
    } else {
    ManageKeyOperations _self = null;
    final org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke("Connect", _opsClass);
    if (_so == null) {
    continue;
    }
    try {
    _self = (ManageKeyOperations)_so.servant;
    }catch (java.lang.ClassCastException _vis_ce) {
    org.omg.CORBA.portable.OutputStream _output = null;
    org.omg.CORBA.portable.InputStream  _input  = null;
    long _result;
    try {
    _output = _orb().create_output_stream();
    final org.omg.CORBA.portable.OutputStream _response_output = _orb().create_output_stream();
    final org.omg.CORBA.portable.OutputStream _response_ex_output = _orb().create_output_stream();
    com.inprise.vbroker.orb.VBResponseHandler _vis_vbr = com.inprise.vbroker.orb.VBResponseHandler.getResponseHandler(_response_output,_response_ex_output);
    _output.write_string((java.lang.String)UserName);
    org.omg.CORBA.portable.OutputStream _result_output = (((org.omg.CORBA.portable.InvokeHandler)_so.servant)._invoke("Connect",_output.create_input_stream(),_vis_vbr));
    _input = _result_output.create_input_stream();

    _result = _input.read_longlong();
    if (_so instanceof org.omg.CORBA.portable.ServantObjectExt) {
    ((org.omg.CORBA.portable.ServantObjectExt)_so).normalCompletion();
    }
    return _result;
    } catch (java.lang.RuntimeException _vis_re) {
    if (_so instanceof org.omg.CORBA.portable.ServantObjectExt) {
    ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion((Throwable)_vis_re);
    }
    throw _vis_re;
    } catch (java.lang.Error _vis_err) {
    if (_so instanceof org.omg.CORBA.portable.ServantObjectExt) {
    ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion((Throwable)_vis_err);
    }
    throw _vis_err;
    }finally {
    _servant_postinvoke(_so);
    this._releaseReply(_input);
    }
    }
    try {
    long _ret = _self.Connect(UserName);
    if (_so instanceof org.omg.CORBA.portable.ServantObjectExt) {
    ((org.omg.CORBA.portable.ServantObjectExt)_so).normalCompletion();
    }
    return _ret;
    } catch (java.lang.RuntimeException _vis_re) {
    if (_so instanceof org.omg.CORBA.portable.ServantObjectExt) {
    ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion((Throwable)_vis_re);
    }
    throw _vis_re;
    } catch (java.lang.Error _vis_err) {
    if (_so instanceof org.omg.CORBA.portable.ServantObjectExt) {
    ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion((Throwable)_vis_err);
    }
    throw _vis_err;
    } finally {
    _servant_postinvoke(_so);
    }

    }
    }
  }

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -