📄 _servermanagerimplbase.java
字号:
} catch (com.sun.corba.se.PortableActivationIDL.ServerNotRegistered $ex) {
out = $rh.createExceptionReply ();
com.sun.corba.se.PortableActivationIDL.ServerNotRegisteredHelper.write (out, $ex);
} catch (com.sun.corba.se.PortableActivationIDL.ServerHeldDown $ex) {
out = $rh.createExceptionReply ();
com.sun.corba.se.PortableActivationIDL.ServerHeldDownHelper.write (out, $ex);
} catch (com.sun.corba.se.PortableActivationIDL.ServerAlreadyInstalled $ex) {
out = $rh.createExceptionReply ();
com.sun.corba.se.PortableActivationIDL.ServerAlreadyInstalledHelper.write (out, $ex);
}
break;
}
/** Invoke the server uninstall hook. If the server is not * currently running, this method will activate it. * After this hook completes, the server may still be running. */
case 8: // PortableActivationIDL/Activator/uninstall
{
try {
String serverId = org.omg.PortableInterceptor.ServerIdHelper.read (in);
this.uninstall (serverId);
out = $rh.createReply();
} catch (com.sun.corba.se.PortableActivationIDL.ServerNotRegistered $ex) {
out = $rh.createExceptionReply ();
com.sun.corba.se.PortableActivationIDL.ServerNotRegisteredHelper.write (out, $ex);
} catch (com.sun.corba.se.PortableActivationIDL.ServerHeldDown $ex) {
out = $rh.createExceptionReply ();
com.sun.corba.se.PortableActivationIDL.ServerHeldDownHelper.write (out, $ex);
} catch (com.sun.corba.se.PortableActivationIDL.ServerAlreadyUninstalled $ex) {
out = $rh.createExceptionReply ();
com.sun.corba.se.PortableActivationIDL.ServerAlreadyUninstalledHelper.write (out, $ex);
}
break;
}
/** list active servers */
case 9: // PortableActivationIDL/Activator/getActiveServers
{
String $result[] = null;
$result = this.getActiveServers ();
out = $rh.createReply();
com.sun.corba.se.PortableActivationIDL.ServerIdsHelper.write (out, $result);
break;
}
/** list all registered ORBs for a server */
case 10: // PortableActivationIDL/Activator/getORBNames
{
try {
String serverId = org.omg.PortableInterceptor.ServerIdHelper.read (in);
String $result[] = null;
$result = this.getORBNames (serverId);
out = $rh.createReply();
com.sun.corba.se.PortableActivationIDL.ORBidListHelper.write (out, $result);
} catch (com.sun.corba.se.PortableActivationIDL.ServerNotRegistered $ex) {
out = $rh.createExceptionReply ();
com.sun.corba.se.PortableActivationIDL.ServerNotRegisteredHelper.write (out, $ex);
}
break;
}
/** Find the server template that corresponds to the ORBD's * adapter id. */
case 11: // PortableActivationIDL/Activator/lookupPOATemplate
{
String serverId = org.omg.PortableInterceptor.ServerIdHelper.read (in);
String orbId = org.omg.PortableInterceptor.ORBIdHelper.read (in);
String orbAdapterName[] = org.omg.PortableInterceptor.AdapterNameHelper.read (in);
org.omg.PortableInterceptor.ObjectReferenceTemplate $result = null;
$result = this.lookupPOATemplate (serverId, orbId, orbAdapterName);
out = $rh.createReply();
org.omg.PortableInterceptor.ObjectReferenceTemplateHelper.write (out, $result);
break;
}
/** locate server - returns the port with a specific type for all registered * ORBs of an active server. * Starts the server if it is not already running. */
case 12: // PortableActivationIDL/Locator/locateServer
{
try {
String serverId = org.omg.PortableInterceptor.ServerIdHelper.read (in);
String endPoint = in.read_string ();
com.sun.corba.se.PortableActivationIDL.LocatorPackage.ServerLocationPerType $result = null;
$result = this.locateServer (serverId, endPoint);
out = $rh.createReply();
com.sun.corba.se.PortableActivationIDL.LocatorPackage.ServerLocationPerTypeHelper.write (out, $result);
} catch (com.sun.corba.se.PortableActivationIDL.NoSuchEndPoint $ex) {
out = $rh.createExceptionReply ();
com.sun.corba.se.PortableActivationIDL.NoSuchEndPointHelper.write (out, $ex);
} catch (com.sun.corba.se.PortableActivationIDL.ServerNotRegistered $ex) {
out = $rh.createExceptionReply ();
com.sun.corba.se.PortableActivationIDL.ServerNotRegisteredHelper.write (out, $ex);
} catch (com.sun.corba.se.PortableActivationIDL.ServerHeldDown $ex) {
out = $rh.createExceptionReply ();
com.sun.corba.se.PortableActivationIDL.ServerHeldDownHelper.write (out, $ex);
}
break;
}
/** locate server - returns all ports registered with a specified ORB for * an active server * Starts the server if it is not already running. */
case 13: // PortableActivationIDL/Locator/locateServerForORB
{
try {
String serverId = org.omg.PortableInterceptor.ServerIdHelper.read (in);
String orbId = org.omg.PortableInterceptor.ORBIdHelper.read (in);
com.sun.corba.se.PortableActivationIDL.LocatorPackage.ServerLocationPerORB $result = null;
$result = this.locateServerForORB (serverId, orbId);
out = $rh.createReply();
com.sun.corba.se.PortableActivationIDL.LocatorPackage.ServerLocationPerORBHelper.write (out, $result);
} catch (com.sun.corba.se.PortableActivationIDL.InvalidORBid $ex) {
out = $rh.createExceptionReply ();
com.sun.corba.se.PortableActivationIDL.InvalidORBidHelper.write (out, $ex);
} catch (com.sun.corba.se.PortableActivationIDL.ServerNotRegistered $ex) {
out = $rh.createExceptionReply ();
com.sun.corba.se.PortableActivationIDL.ServerNotRegisteredHelper.write (out, $ex);
} catch (com.sun.corba.se.PortableActivationIDL.ServerHeldDown $ex) {
out = $rh.createExceptionReply ();
com.sun.corba.se.PortableActivationIDL.ServerHeldDownHelper.write (out, $ex);
}
break;
}
/** get the port for the endpoint of the locator */
case 14: // PortableActivationIDL/Locator/getEndpoint
{
try {
String endPointType = in.read_string ();
int $result = (int)0;
$result = this.getEndpoint (endPointType);
out = $rh.createReply();
out.write_long ($result);
} catch (com.sun.corba.se.PortableActivationIDL.NoSuchEndPoint $ex) {
out = $rh.createExceptionReply ();
com.sun.corba.se.PortableActivationIDL.NoSuchEndPointHelper.write (out, $ex);
}
break;
}
/** Useful from external BadServerIdHandlers which need * to pick a particular port type. */
case 15: // PortableActivationIDL/Locator/getServerPortForType
{
try {
com.sun.corba.se.PortableActivationIDL.LocatorPackage.ServerLocationPerORB location = com.sun.corba.se.PortableActivationIDL.LocatorPackage.ServerLocationPerORBHelper.read (in);
String endPointType = in.read_string ();
int $result = (int)0;
$result = this.getServerPortForType (location, endPointType);
out = $rh.createReply();
out.write_long ($result);
} catch (com.sun.corba.se.PortableActivationIDL.NoSuchEndPoint $ex) {
out = $rh.createExceptionReply ();
com.sun.corba.se.PortableActivationIDL.NoSuchEndPointHelper.write (out, $ex);
}
break;
}
default:
throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE);
}
return out;
} // _invoke
// Type-specific CORBA::Object operations
private static String[] __ids = {
"IDL:PortableActivationIDL/ServerManager:1.0",
"IDL:PortableActivationIDL/Activator:1.0",
"IDL:PortableActivationIDL/Locator:1.0"};
public String[] _ids ()
{
return (String[])__ids.clone ();
}
} // class _ServerManagerImplBase
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -