use of org.omg.CORBA.portable.ServantObject in project JFramework by gugumall.
the class _JRouter_Stub method getRouterConfig.
public RouterConfig getRouterConfig() throws java.rmi.RemoteException {
if (!Util.isLocal(this)) {
try {
org.omg.CORBA_2_3.portable.InputStream in = null;
try {
OutputStream out = _request("_get_routerConfig", true);
in = (org.omg.CORBA_2_3.portable.InputStream) _invoke(out);
return (RouterConfig) in.read_value(RouterConfig.class);
} catch (ApplicationException ex) {
in = (org.omg.CORBA_2_3.portable.InputStream) ex.getInputStream();
String $_id = in.read_string();
throw new UnexpectedException($_id);
} catch (RemarshalException ex) {
return getRouterConfig();
} finally {
_releaseReply(in);
}
} catch (SystemException ex) {
throw Util.mapSystemException(ex);
}
} else {
ServantObject so = _servant_preinvoke("_get_routerConfig", JRouter.class);
if (so == null) {
return getRouterConfig();
}
try {
RouterConfig result = ((JRouter) so.servant).getRouterConfig();
return (RouterConfig) Util.copyObject(result, _orb());
} catch (Throwable ex) {
Throwable exCopy = (Throwable) Util.copyObject(ex, _orb());
throw Util.wrapException(exCopy);
} finally {
_servant_postinvoke(so);
}
}
}
use of org.omg.CORBA.portable.ServantObject in project JFramework by gugumall.
the class _JRouter_Stub method unregister.
public String unregister(String arg0, String arg1, String arg2, String arg3) throws java.rmi.RemoteException {
if (!Util.isLocal(this)) {
try {
org.omg.CORBA_2_3.portable.InputStream in = null;
try {
org.omg.CORBA_2_3.portable.OutputStream out = (org.omg.CORBA_2_3.portable.OutputStream) _request("unregister__CORBA_WStringValue__CORBA_WStringValue__CORBA_WStringValue__CORBA_WStringValue", true);
out.write_value(arg0, String.class);
out.write_value(arg1, String.class);
out.write_value(arg2, String.class);
out.write_value(arg3, String.class);
in = (org.omg.CORBA_2_3.portable.InputStream) _invoke(out);
return (String) in.read_value(String.class);
} catch (ApplicationException ex) {
in = (org.omg.CORBA_2_3.portable.InputStream) ex.getInputStream();
String $_id = in.read_string();
throw new UnexpectedException($_id);
} catch (RemarshalException ex) {
return unregister(arg0, arg1, arg2, arg3);
} finally {
_releaseReply(in);
}
} catch (SystemException ex) {
throw Util.mapSystemException(ex);
}
} else {
ServantObject so = _servant_preinvoke("unregister__CORBA_WStringValue__CORBA_WStringValue__CORBA_WStringValue__CORBA_WStringValue", JRouter.class);
if (so == null) {
return unregister(arg0, arg1, arg2, arg3);
}
try {
return ((JRouter) so.servant).unregister(arg0, arg1, arg2, arg3);
} catch (Throwable ex) {
Throwable exCopy = (Throwable) Util.copyObject(ex, _orb());
throw Util.wrapException(exCopy);
} finally {
_servant_postinvoke(so);
}
}
}
use of org.omg.CORBA.portable.ServantObject in project JFramework by gugumall.
the class _ServiceBase_Stub method heartbeat.
public String heartbeat() throws java.rmi.RemoteException {
if (!Util.isLocal(this)) {
try {
org.omg.CORBA_2_3.portable.InputStream in = null;
try {
OutputStream out = _request("heartbeat__", true);
in = (org.omg.CORBA_2_3.portable.InputStream) _invoke(out);
return (String) in.read_value(String.class);
} catch (ApplicationException ex) {
in = (org.omg.CORBA_2_3.portable.InputStream) ex.getInputStream();
String $_id = in.read_string();
throw new UnexpectedException($_id);
} catch (RemarshalException ex) {
return heartbeat();
} finally {
_releaseReply(in);
}
} catch (SystemException ex) {
throw Util.mapSystemException(ex);
}
} else {
ServantObject so = _servant_preinvoke("heartbeat__", ServiceBase.class);
if (so == null) {
return heartbeat();
}
try {
return ((ServiceBase) so.servant).heartbeat();
} catch (Throwable ex) {
Throwable exCopy = (Throwable) Util.copyObject(ex, _orb());
throw Util.wrapException(exCopy);
} finally {
_servant_postinvoke(so);
}
}
}
Aggregations