1 package com.sun.corba.se.spi.activation; 2 3 4 10 11 public class _ServerManagerStub extends org.omg.CORBA.portable.ObjectImpl implements com.sun.corba.se.spi.activation.ServerManager 12 { 13 14 15 public void active (int serverId, com.sun.corba.se.spi.activation.Server serverObj) throws com.sun.corba.se.spi.activation.ServerNotRegistered 17 { 18 org.omg.CORBA.portable.InputStream $in = null; 19 try { 20 org.omg.CORBA.portable.OutputStream $out = _request ("active", true); 21 com.sun.corba.se.spi.activation.ServerIdHelper.write ($out, serverId); 22 com.sun.corba.se.spi.activation.ServerHelper.write ($out, serverObj); 23 $in = _invoke ($out); 24 return; 25 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 26 $in = $ex.getInputStream (); 27 String _id = $ex.getId (); 28 if (_id.equals ("IDL:activation/ServerNotRegistered:1.0")) 29 throw com.sun.corba.se.spi.activation.ServerNotRegisteredHelper.read ($in); 30 else 31 throw new org.omg.CORBA.MARSHAL (_id); 32 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 33 active (serverId, serverObj ); 34 } finally { 35 _releaseReply ($in); 36 } 37 } 39 40 public void registerEndpoints (int serverId, String orbId, com.sun.corba.se.spi.activation.EndPointInfo[] endPointInfo) throws com.sun.corba.se.spi.activation.ServerNotRegistered, com.sun.corba.se.spi.activation.NoSuchEndPoint, com.sun.corba.se.spi.activation.ORBAlreadyRegistered 42 { 43 org.omg.CORBA.portable.InputStream $in = null; 44 try { 45 org.omg.CORBA.portable.OutputStream $out = _request ("registerEndpoints", true); 46 com.sun.corba.se.spi.activation.ServerIdHelper.write ($out, serverId); 47 com.sun.corba.se.spi.activation.ORBidHelper.write ($out, orbId); 48 com.sun.corba.se.spi.activation.EndpointInfoListHelper.write ($out, endPointInfo); 49 $in = _invoke ($out); 50 return; 51 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 52 $in = $ex.getInputStream (); 53 String _id = $ex.getId (); 54 if (_id.equals ("IDL:activation/ServerNotRegistered:1.0")) 55 throw com.sun.corba.se.spi.activation.ServerNotRegisteredHelper.read ($in); 56 else if (_id.equals ("IDL:activation/NoSuchEndPoint:1.0")) 57 throw com.sun.corba.se.spi.activation.NoSuchEndPointHelper.read ($in); 58 else if (_id.equals ("IDL:activation/ORBAlreadyRegistered:1.0")) 59 throw com.sun.corba.se.spi.activation.ORBAlreadyRegisteredHelper.read ($in); 60 else 61 throw new org.omg.CORBA.MARSHAL (_id); 62 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 63 registerEndpoints (serverId, orbId, endPointInfo ); 64 } finally { 65 _releaseReply ($in); 66 } 67 } 69 70 public int[] getActiveServers () 72 { 73 org.omg.CORBA.portable.InputStream $in = null; 74 try { 75 org.omg.CORBA.portable.OutputStream $out = _request ("getActiveServers", true); 76 $in = _invoke ($out); 77 int $result[] = com.sun.corba.se.spi.activation.ServerIdsHelper.read ($in); 78 return $result; 79 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 80 $in = $ex.getInputStream (); 81 String _id = $ex.getId (); 82 throw new org.omg.CORBA.MARSHAL (_id); 83 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 84 return getActiveServers ( ); 85 } finally { 86 _releaseReply ($in); 87 } 88 } 90 91 public void activate (int serverId) throws com.sun.corba.se.spi.activation.ServerAlreadyActive, com.sun.corba.se.spi.activation.ServerNotRegistered, com.sun.corba.se.spi.activation.ServerHeldDown 93 { 94 org.omg.CORBA.portable.InputStream $in = null; 95 try { 96 org.omg.CORBA.portable.OutputStream $out = _request ("activate", true); 97 com.sun.corba.se.spi.activation.ServerIdHelper.write ($out, serverId); 98 $in = _invoke ($out); 99 return; 100 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 101 $in = $ex.getInputStream (); 102 String _id = $ex.getId (); 103 if (_id.equals ("IDL:activation/ServerAlreadyActive:1.0")) 104 throw com.sun.corba.se.spi.activation.ServerAlreadyActiveHelper.read ($in); 105 else if (_id.equals ("IDL:activation/ServerNotRegistered:1.0")) 106 throw com.sun.corba.se.spi.activation.ServerNotRegisteredHelper.read ($in); 107 else if (_id.equals ("IDL:activation/ServerHeldDown:1.0")) 108 throw com.sun.corba.se.spi.activation.ServerHeldDownHelper.read ($in); 109 else 110 throw new org.omg.CORBA.MARSHAL (_id); 111 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 112 activate (serverId ); 113 } finally { 114 _releaseReply ($in); 115 } 116 } 118 119 public void shutdown (int serverId) throws com.sun.corba.se.spi.activation.ServerNotActive, com.sun.corba.se.spi.activation.ServerNotRegistered 121 { 122 org.omg.CORBA.portable.InputStream $in = null; 123 try { 124 org.omg.CORBA.portable.OutputStream $out = _request ("shutdown", true); 125 com.sun.corba.se.spi.activation.ServerIdHelper.write ($out, serverId); 126 $in = _invoke ($out); 127 return; 128 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 129 $in = $ex.getInputStream (); 130 String _id = $ex.getId (); 131 if (_id.equals ("IDL:activation/ServerNotActive:1.0")) 132 throw com.sun.corba.se.spi.activation.ServerNotActiveHelper.read ($in); 133 else if (_id.equals ("IDL:activation/ServerNotRegistered:1.0")) 134 throw com.sun.corba.se.spi.activation.ServerNotRegisteredHelper.read ($in); 135 else 136 throw new org.omg.CORBA.MARSHAL (_id); 137 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 138 shutdown (serverId ); 139 } finally { 140 _releaseReply ($in); 141 } 142 } 144 145 public void install (int serverId) throws com.sun.corba.se.spi.activation.ServerNotRegistered, com.sun.corba.se.spi.activation.ServerHeldDown, com.sun.corba.se.spi.activation.ServerAlreadyInstalled 147 { 148 org.omg.CORBA.portable.InputStream $in = null; 149 try { 150 org.omg.CORBA.portable.OutputStream $out = _request ("install", true); 151 com.sun.corba.se.spi.activation.ServerIdHelper.write ($out, serverId); 152 $in = _invoke ($out); 153 return; 154 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 155 $in = $ex.getInputStream (); 156 String _id = $ex.getId (); 157 if (_id.equals ("IDL:activation/ServerNotRegistered:1.0")) 158 throw com.sun.corba.se.spi.activation.ServerNotRegisteredHelper.read ($in); 159 else if (_id.equals ("IDL:activation/ServerHeldDown:1.0")) 160 throw com.sun.corba.se.spi.activation.ServerHeldDownHelper.read ($in); 161 else if (_id.equals ("IDL:activation/ServerAlreadyInstalled:1.0")) 162 throw com.sun.corba.se.spi.activation.ServerAlreadyInstalledHelper.read ($in); 163 else 164 throw new org.omg.CORBA.MARSHAL (_id); 165 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 166 install (serverId ); 167 } finally { 168 _releaseReply ($in); 169 } 170 } 172 173 public String [] getORBNames (int serverId) throws com.sun.corba.se.spi.activation.ServerNotRegistered 175 { 176 org.omg.CORBA.portable.InputStream $in = null; 177 try { 178 org.omg.CORBA.portable.OutputStream $out = _request ("getORBNames", true); 179 com.sun.corba.se.spi.activation.ServerIdHelper.write ($out, serverId); 180 $in = _invoke ($out); 181 String $result[] = com.sun.corba.se.spi.activation.ORBidListHelper.read ($in); 182 return $result; 183 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 184 $in = $ex.getInputStream (); 185 String _id = $ex.getId (); 186 if (_id.equals ("IDL:activation/ServerNotRegistered:1.0")) 187 throw com.sun.corba.se.spi.activation.ServerNotRegisteredHelper.read ($in); 188 else 189 throw new org.omg.CORBA.MARSHAL (_id); 190 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 191 return getORBNames (serverId ); 192 } finally { 193 _releaseReply ($in); 194 } 195 } 197 198 public void uninstall (int serverId) throws com.sun.corba.se.spi.activation.ServerNotRegistered, com.sun.corba.se.spi.activation.ServerHeldDown, com.sun.corba.se.spi.activation.ServerAlreadyUninstalled 200 { 201 org.omg.CORBA.portable.InputStream $in = null; 202 try { 203 org.omg.CORBA.portable.OutputStream $out = _request ("uninstall", true); 204 com.sun.corba.se.spi.activation.ServerIdHelper.write ($out, serverId); 205 $in = _invoke ($out); 206 return; 207 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 208 $in = $ex.getInputStream (); 209 String _id = $ex.getId (); 210 if (_id.equals ("IDL:activation/ServerNotRegistered:1.0")) 211 throw com.sun.corba.se.spi.activation.ServerNotRegisteredHelper.read ($in); 212 else if (_id.equals ("IDL:activation/ServerHeldDown:1.0")) 213 throw com.sun.corba.se.spi.activation.ServerHeldDownHelper.read ($in); 214 else if (_id.equals ("IDL:activation/ServerAlreadyUninstalled:1.0")) 215 throw com.sun.corba.se.spi.activation.ServerAlreadyUninstalledHelper.read ($in); 216 else 217 throw new org.omg.CORBA.MARSHAL (_id); 218 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 219 uninstall (serverId ); 220 } finally { 221 _releaseReply ($in); 222 } 223 } 225 226 public com.sun.corba.se.spi.activation.LocatorPackage.ServerLocation locateServer (int serverId, String endPoint) throws com.sun.corba.se.spi.activation.NoSuchEndPoint, com.sun.corba.se.spi.activation.ServerNotRegistered, com.sun.corba.se.spi.activation.ServerHeldDown 228 { 229 org.omg.CORBA.portable.InputStream $in = null; 230 try { 231 org.omg.CORBA.portable.OutputStream $out = _request ("locateServer", true); 232 com.sun.corba.se.spi.activation.ServerIdHelper.write ($out, serverId); 233 $out.write_string (endPoint); 234 $in = _invoke ($out); 235 com.sun.corba.se.spi.activation.LocatorPackage.ServerLocation $result = com.sun.corba.se.spi.activation.LocatorPackage.ServerLocationHelper.read ($in); 236 return $result; 237 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 238 $in = $ex.getInputStream (); 239 String _id = $ex.getId (); 240 if (_id.equals ("IDL:activation/NoSuchEndPoint:1.0")) 241 throw com.sun.corba.se.spi.activation.NoSuchEndPointHelper.read ($in); 242 else if (_id.equals ("IDL:activation/ServerNotRegistered:1.0")) 243 throw com.sun.corba.se.spi.activation.ServerNotRegisteredHelper.read ($in); 244 else if (_id.equals ("IDL:activation/ServerHeldDown:1.0")) 245 throw com.sun.corba.se.spi.activation.ServerHeldDownHelper.read ($in); 246 else 247 throw new org.omg.CORBA.MARSHAL (_id); 248 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 249 return locateServer (serverId, endPoint ); 250 } finally { 251 _releaseReply ($in); 252 } 253 } 255 256 public com.sun.corba.se.spi.activation.LocatorPackage.ServerLocationPerORB locateServerForORB (int serverId, String orbId) throws com.sun.corba.se.spi.activation.InvalidORBid, com.sun.corba.se.spi.activation.ServerNotRegistered, com.sun.corba.se.spi.activation.ServerHeldDown 258 { 259 org.omg.CORBA.portable.InputStream $in = null; 260 try { 261 org.omg.CORBA.portable.OutputStream $out = _request ("locateServerForORB", true); 262 com.sun.corba.se.spi.activation.ServerIdHelper.write ($out, serverId); 263 com.sun.corba.se.spi.activation.ORBidHelper.write ($out, orbId); 264 $in = _invoke ($out); 265 com.sun.corba.se.spi.activation.LocatorPackage.ServerLocationPerORB $result = com.sun.corba.se.spi.activation.LocatorPackage.ServerLocationPerORBHelper.read ($in); 266 return $result; 267 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 268 $in = $ex.getInputStream (); 269 String _id = $ex.getId (); 270 if (_id.equals ("IDL:activation/InvalidORBid:1.0")) 271 throw com.sun.corba.se.spi.activation.InvalidORBidHelper.read ($in); 272 else if (_id.equals ("IDL:activation/ServerNotRegistered:1.0")) 273 throw com.sun.corba.se.spi.activation.ServerNotRegisteredHelper.read ($in); 274 else if (_id.equals ("IDL:activation/ServerHeldDown:1.0")) 275 throw com.sun.corba.se.spi.activation.ServerHeldDownHelper.read ($in); 276 else 277 throw new org.omg.CORBA.MARSHAL (_id); 278 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 279 return locateServerForORB (serverId, orbId ); 280 } finally { 281 _releaseReply ($in); 282 } 283 } 285 286 public int getEndpoint (String endPointType) throws com.sun.corba.se.spi.activation.NoSuchEndPoint 288 { 289 org.omg.CORBA.portable.InputStream $in = null; 290 try { 291 org.omg.CORBA.portable.OutputStream $out = _request ("getEndpoint", true); 292 $out.write_string (endPointType); 293 $in = _invoke ($out); 294 int $result = com.sun.corba.se.spi.activation.TCPPortHelper.read ($in); 295 return $result; 296 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 297 $in = $ex.getInputStream (); 298 String _id = $ex.getId (); 299 if (_id.equals ("IDL:activation/NoSuchEndPoint:1.0")) 300 throw com.sun.corba.se.spi.activation.NoSuchEndPointHelper.read ($in); 301 else 302 throw new org.omg.CORBA.MARSHAL (_id); 303 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 304 return getEndpoint (endPointType ); 305 } finally { 306 _releaseReply ($in); 307 } 308 } 310 311 public int getServerPortForType (com.sun.corba.se.spi.activation.LocatorPackage.ServerLocationPerORB location, String endPointType) throws com.sun.corba.se.spi.activation.NoSuchEndPoint 313 { 314 org.omg.CORBA.portable.InputStream $in = null; 315 try { 316 org.omg.CORBA.portable.OutputStream $out = _request ("getServerPortForType", true); 317 com.sun.corba.se.spi.activation.LocatorPackage.ServerLocationPerORBHelper.write ($out, location); 318 $out.write_string (endPointType); 319 $in = _invoke ($out); 320 int $result = com.sun.corba.se.spi.activation.TCPPortHelper.read ($in); 321 return $result; 322 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 323 $in = $ex.getInputStream (); 324 String _id = $ex.getId (); 325 if (_id.equals ("IDL:activation/NoSuchEndPoint:1.0")) 326 throw com.sun.corba.se.spi.activation.NoSuchEndPointHelper.read ($in); 327 else 328 throw new org.omg.CORBA.MARSHAL (_id); 329 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 330 return getServerPortForType (location, endPointType ); 331 } finally { 332 _releaseReply ($in); 333 } 334 } 336 private static String [] __ids = { 338 "IDL:activation/ServerManager:1.0", 339 "IDL:activation/Activator:1.0", 340 "IDL:activation/Locator:1.0"}; 341 342 public String [] _ids () 343 { 344 return (String [])__ids.clone (); 345 } 346 347 private void readObject (java.io.ObjectInputStream s) throws java.io.IOException 348 { 349 String str = s.readUTF (); 350 String [] args = null; 351 java.util.Properties props = null; 352 org.omg.CORBA.Object obj = org.omg.CORBA.ORB.init (args, props).string_to_object (str); 353 org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl ) obj)._get_delegate (); 354 _set_delegate (delegate); 355 } 356 357 private void writeObject (java.io.ObjectOutputStream s) throws java.io.IOException 358 { 359 String [] args = null; 360 java.util.Properties props = null; 361 String str = org.omg.CORBA.ORB.init (args, props).object_to_string (this); 362 s.writeUTF (str); 363 } 364 } | Popular Tags |