📄 _corbaproviderstub.java
字号:
org.omg.CORBA.portable.OutputStream _out = _request ("removeListener", false);
net.sourceforge.gjtapi.raw.remote.corba.CorbaListenerHelper.write (_out, cl);
_in = _invoke (_out);
} catch (org.omg.CORBA.portable.ApplicationException _ex) {
_in = _ex.getInputStream ();
String _id = _ex.getId ();
throw new org.omg.CORBA.MARSHAL (_id);
} catch (org.omg.CORBA.portable.RemarshalException _rm) {
removeListener (cl);
} finally {
_releaseReply (_in);
}
} // removeListener
public void reportCallsOnAddress (String address, boolean flag) throws net.sourceforge.gjtapi.raw.remote.corba.InvalidArgumentEx, net.sourceforge.gjtapi.raw.remote.corba.ResourceUnavailableEx
{
org.omg.CORBA.portable.InputStream _in = null;
try {
org.omg.CORBA.portable.OutputStream _out = _request ("reportCallsOnAddress", true);
_out.write_string (address);
_out.write_boolean (flag);
_in = _invoke (_out);
} catch (org.omg.CORBA.portable.ApplicationException _ex) {
_in = _ex.getInputStream ();
String _id = _ex.getId ();
if (_id.equals ("IDL:com/uforce/jtapi/generic/raw/remote/corba/InvalidArgumentEx:1.0"))
throw net.sourceforge.gjtapi.raw.remote.corba.InvalidArgumentExHelper.read (_in);
else if (_id.equals ("IDL:com/uforce/jtapi/generic/raw/remote/corba/ResourceUnavailableEx:1.0"))
throw net.sourceforge.gjtapi.raw.remote.corba.ResourceUnavailableExHelper.read (_in);
else
throw new org.omg.CORBA.MARSHAL (_id);
} catch (org.omg.CORBA.portable.RemarshalException _rm) {
reportCallsOnAddress (address, flag);
} finally {
_releaseReply (_in);
}
} // reportCallsOnAddress
public void reportCallsOnTerminal (String terminal, boolean flag) throws net.sourceforge.gjtapi.raw.remote.corba.InvalidArgumentEx, net.sourceforge.gjtapi.raw.remote.corba.ResourceUnavailableEx
{
org.omg.CORBA.portable.InputStream _in = null;
try {
org.omg.CORBA.portable.OutputStream _out = _request ("reportCallsOnTerminal", true);
_out.write_string (terminal);
_out.write_boolean (flag);
_in = _invoke (_out);
} catch (org.omg.CORBA.portable.ApplicationException _ex) {
_in = _ex.getInputStream ();
String _id = _ex.getId ();
if (_id.equals ("IDL:com/uforce/jtapi/generic/raw/remote/corba/InvalidArgumentEx:1.0"))
throw net.sourceforge.gjtapi.raw.remote.corba.InvalidArgumentExHelper.read (_in);
else if (_id.equals ("IDL:com/uforce/jtapi/generic/raw/remote/corba/ResourceUnavailableEx:1.0"))
throw net.sourceforge.gjtapi.raw.remote.corba.ResourceUnavailableExHelper.read (_in);
else
throw new org.omg.CORBA.MARSHAL (_id);
} catch (org.omg.CORBA.portable.RemarshalException _rm) {
reportCallsOnTerminal (terminal, flag);
} finally {
_releaseReply (_in);
}
} // reportCallsOnTerminal
public int reserveCallId (String address) throws net.sourceforge.gjtapi.raw.remote.corba.InvalidArgumentEx
{
org.omg.CORBA.portable.InputStream _in = null;
try {
org.omg.CORBA.portable.OutputStream _out = _request ("reserveCallId", true);
_out.write_string (address);
_in = _invoke (_out);
int __result = _in.read_long ();
return __result;
} catch (org.omg.CORBA.portable.ApplicationException _ex) {
_in = _ex.getInputStream ();
String _id = _ex.getId ();
if (_id.equals ("IDL:com/uforce/jtapi/generic/raw/remote/corba/InvalidArgumentEx:1.0"))
throw net.sourceforge.gjtapi.raw.remote.corba.InvalidArgumentExHelper.read (_in);
else
throw new org.omg.CORBA.MARSHAL (_id);
} catch (org.omg.CORBA.portable.RemarshalException _rm) {
return reserveCallId (address);
} finally {
_releaseReply (_in);
}
} // reserveCallId
public net.sourceforge.gjtapi.raw.remote.corba.DetectEvent retrieveSignals (String terminal, int num, int[] patterns, net.sourceforge.gjtapi.raw.remote.corba.LongEntry[] rtcs, net.sourceforge.gjtapi.raw.remote.corba.LongEntry[] optArgs) throws net.sourceforge.gjtapi.raw.remote.corba.MediaResourceEx
{
org.omg.CORBA.portable.InputStream _in = null;
try {
org.omg.CORBA.portable.OutputStream _out = _request ("retrieveSignals", true);
_out.write_string (terminal);
_out.write_long (num);
net.sourceforge.gjtapi.raw.remote.corba.LongArrayHelper.write (_out, patterns);
net.sourceforge.gjtapi.raw.remote.corba.LongDictionaryHelper.write (_out, rtcs);
net.sourceforge.gjtapi.raw.remote.corba.LongDictionaryHelper.write (_out, optArgs);
_in = _invoke (_out);
net.sourceforge.gjtapi.raw.remote.corba.DetectEvent __result = net.sourceforge.gjtapi.raw.remote.corba.DetectEventHelper.read (_in);
return __result;
} catch (org.omg.CORBA.portable.ApplicationException _ex) {
_in = _ex.getInputStream ();
String _id = _ex.getId ();
if (_id.equals ("IDL:com/uforce/jtapi/generic/raw/remote/corba/MediaResourceEx:1.0"))
throw net.sourceforge.gjtapi.raw.remote.corba.MediaResourceExHelper.read (_in);
else
throw new org.omg.CORBA.MARSHAL (_id);
} catch (org.omg.CORBA.portable.RemarshalException _rm) {
return retrieveSignals (terminal, num, patterns, rtcs, optArgs);
} finally {
_releaseReply (_in);
}
} // retrieveSignals
public org.omg.CORBA.Any sendPrivateData (int callId, String address, String terminal, org.omg.CORBA.Any data) throws net.sourceforge.gjtapi.raw.remote.corba.NotSerializableEx
{
org.omg.CORBA.portable.InputStream _in = null;
try {
org.omg.CORBA.portable.OutputStream _out = _request ("sendPrivateData", true);
_out.write_long (callId);
_out.write_string (address);
_out.write_string (terminal);
_out.write_any (data);
_in = _invoke (_out);
org.omg.CORBA.Any __result = _in.read_any ();
return __result;
} catch (org.omg.CORBA.portable.ApplicationException _ex) {
_in = _ex.getInputStream ();
String _id = _ex.getId ();
if (_id.equals ("IDL:com/uforce/jtapi/generic/raw/remote/corba/NotSerializableEx:1.0"))
throw net.sourceforge.gjtapi.raw.remote.corba.NotSerializableExHelper.read (_in);
else
throw new org.omg.CORBA.MARSHAL (_id);
} catch (org.omg.CORBA.portable.RemarshalException _rm) {
return sendPrivateData (callId, address, terminal, data);
} finally {
_releaseReply (_in);
}
} // sendPrivateData
public void sendSignals (String terminal, int[] syms, net.sourceforge.gjtapi.raw.remote.corba.LongEntry[] rtcs, net.sourceforge.gjtapi.raw.remote.corba.LongEntry[] optArgs) throws net.sourceforge.gjtapi.raw.remote.corba.MediaResourceEx
{
org.omg.CORBA.portable.InputStream _in = null;
try {
org.omg.CORBA.portable.OutputStream _out = _request ("sendSignals", true);
_out.write_string (terminal);
net.sourceforge.gjtapi.raw.remote.corba.LongArrayHelper.write (_out, syms);
net.sourceforge.gjtapi.raw.remote.corba.LongDictionaryHelper.write (_out, rtcs);
net.sourceforge.gjtapi.raw.remote.corba.LongDictionaryHelper.write (_out, optArgs);
_in = _invoke (_out);
} catch (org.omg.CORBA.portable.ApplicationException _ex) {
_in = _ex.getInputStream ();
String _id = _ex.getId ();
if (_id.equals ("IDL:com/uforce/jtapi/generic/raw/remote/corba/MediaResourceEx:1.0"))
throw net.sourceforge.gjtapi.raw.remote.corba.MediaResourceExHelper.read (_in);
else
throw new org.omg.CORBA.MARSHAL (_id);
} catch (org.omg.CORBA.portable.RemarshalException _rm) {
sendSignals (terminal, syms, rtcs, optArgs);
} finally {
_releaseReply (_in);
}
} // sendSignals
public void setLoadControl (String startAddr, String endAddr, double duration, double admissionRate, double interval, int[] treatment) throws net.sourceforge.gjtapi.raw.remote.corba.MethodNotSupportedEx
{
org.omg.CORBA.portable.InputStream _in = null;
try {
org.omg.CORBA.portable.OutputStream _out = _request ("setLoadControl", true);
_out.write_string (startAddr);
_out.write_string (endAddr);
_out.write_double (duration);
_out.write_double (admissionRate);
_out.write_double (interval);
net.sourceforge.gjtapi.raw.remote.corba.LongArrayHelper.write (_out, treatment);
_in = _invoke (_out);
} catch (org.omg.CORBA.portable.ApplicationException _ex) {
_in = _ex.getInputStream ();
String _id = _ex.getId ();
if (_id.equals ("IDL:com/uforce/jtapi/generic/raw/remote/corba/MethodNotSupportedEx:1.0"))
throw net.sourceforge.gjtapi.raw.remote.corba.MethodNotSupportedExHelper.read (_in);
else
throw new org.omg.CORBA.MARSHAL (_id);
} catch (org.omg.CORBA.portable.RemarshalException _rm) {
setLoadControl (startAddr, endAddr, duration, admissionRate, interval, treatment);
} finally {
_releaseReply (_in);
}
} // setLoadControl
public void setPrivateData (int callId, String address, String terminal, org.omg.CORBA.Any data)
{
org.omg.CORBA.portable.InputStream _in = null;
try {
org.omg.CORBA.portable.OutputStream _out = _request ("setPrivateData", false);
_out.write_long (callId);
_out.write_string (address);
_out.write_string (terminal);
_out.write_any (data);
_in = _invoke (_out);
} catch (org.omg.CORBA.portable.ApplicationException _ex) {
_in = _ex.getInputStream ();
String _id = _ex.getId ();
throw new org.omg.CORBA.MARSHAL (_id);
} catch (org.omg.CORBA.portable.RemarshalException _rm) {
setPrivateData (callId, address, terminal, data);
} finally {
_releaseReply (_in);
}
} // setPrivateData
public void shutdown ()
{
org.omg.CORBA.portable.InputStream _in = null;
try {
org.omg.CORBA.portable.OutputStream _out = _request ("shutdown", true);
_in = _invoke (_out);
} catch (org.omg.CORBA.portable.ApplicationException _ex) {
_in = _ex.getInputStream ();
String _id = _ex.getId ();
throw new org.omg.CORBA.MARSHAL (_id);
} catch (org.omg.CORBA.portable.RemarshalException _rm) {
shutdown ();
} finally {
_releaseReply (_in);
}
} // shutdown
public void stop (String terminal)
{
org.omg.CORBA.portable.InputStream _in = null;
try {
org.omg.CORBA.portable.OutputStream _out = _request ("stop", true);
_out.write_string (terminal);
_in = _invoke (_out);
} catch (org.omg.CORBA.portable.ApplicationException _ex) {
_in = _ex.getInputStream ();
String _id = _ex.getId ();
throw new org.omg.CORBA.MARSHAL (_id);
} catch (org.omg.CORBA.portable.RemarshalException _rm) {
stop (terminal);
} finally {
_releaseReply (_in);
}
} // stop
public boolean stopReportingCall (int callId)
{
org.omg.CORBA.portable.InputStream _in = null;
try {
org.omg.CORBA.portable.OutputStream _out = _request ("stopReportingCall", true);
_out.write_long (callId);
_in = _invoke (_out);
boolean __result = _in.read_boolean ();
return __result;
} catch (org.omg.CORBA.portable.ApplicationException _ex) {
_in = _ex.getInputStream ();
String _id = _ex.getId ();
throw new org.omg.CORBA.MARSHAL (_id);
} catch (org.omg.CORBA.portable.RemarshalException _rm) {
return stopReportingCall (callId);
} finally {
_releaseReply (_in);
}
} // stopReportingCall
public void triggerRTC (String terminal, int action)
{
org.omg.CORBA.portable.InputStream _in = null;
try {
org.omg.CORBA.portable.OutputStream _out = _request ("triggerRTC", true);
_out.write_string (terminal);
_out.write_long (action);
_in = _invoke (_out);
} catch (org.omg.CORBA.portable.ApplicationException _ex) {
_in = _ex.getInputStream ();
String _id = _ex.getId ();
throw new org.omg.CORBA.MARSHAL (_id);
} catch (org.omg.CORBA.portable.RemarshalException _rm) {
triggerRTC (terminal, action);
} finally {
_releaseReply (_in);
}
} // triggerRTC
public void unHold (int callId, String address, String term) throws net.sourceforge.gjtapi.raw.remote.corba.RawStateEx, net.sourceforge.gjtapi.raw.remote.corba.MethodNotSupportedEx, net.sourceforge.gjtapi.raw.remote.corba.PrivilegeViolationEx, net.sourceforge.gjtapi.raw.remote.corba.ResourceUnavailableEx
{
org.omg.CORBA.portable.InputStream _in = null;
try {
org.omg.CORBA.portable.OutputStream _out = _request ("unHold", true);
_out.write_long (callId);
_out.write_string (address);
_out.write_string (term);
_in = _invoke (_out);
} catch (org.omg.CORBA.portable.ApplicationException _ex) {
_in = _ex.getInputStream ();
String _id = _ex.getId ();
if (_id.equals ("IDL:com/uforce/jtapi/generic/raw/remote/corba/RawStateEx:1.0"))
throw net.sourceforge.gjtapi.raw.remote.corba.RawStateExHelper.read (_in);
else if (_id.equals ("IDL:com/uforce/jtapi/generic/raw/remote/corba/MethodNotSupportedEx:1.0"))
throw net.sourceforge.gjtapi.raw.remote.corba.MethodNotSupportedExHelper.read (_in);
else if (_id.equals ("IDL:com/uforce/jtapi/generic/raw/remote/corba/PrivilegeViolationEx:1.0"))
throw net.sourceforge.gjtapi.raw.remote.corba.PrivilegeViolationExHelper.read (_in);
else if (_id.equals ("IDL:com/uforce/jtapi/generic/raw/remote/corba/ResourceUnavailableEx:1.0"))
throw net.sourceforge.gjtapi.raw.remote.corba.ResourceUnavailableExHelper.read (_in);
else
throw new org.omg.CORBA.MARSHAL (_id);
} catch (org.omg.CORBA.portable.RemarshalException _rm) {
unHold (callId, address, term);
} finally {
_releaseReply (_in);
}
} // unHold
private void writeObject (java.io.ObjectOutputStream s)
{
try
{
String str = org.omg.CORBA.ORB.init ().object_to_string (this);
s.writeUTF (str);
} catch (java.io.IOException e) {}
}
} // class _CorbaProviderStub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -