1 6 24 package gcc.rmi.iiop; 25 26 import gcc.rmi.iiop.ObjectInputStream; 27 import gcc.rmi.iiop.ObjectOutputStream; 28 import gcc.rmi.iiop.RemoteInterface; 29 import gcc.rmi.iiop.RemoteInterface; 30 import gcc.rmi.iiop.ObjectRef; 31 import gcc.rmi.iiop.RemoteObject; 32 import gcc.adapter.Adapter; 33 import java.util.HashMap; 34 35 public class NameServiceOperations_Skeleton 36 extends RemoteObject 37 implements RemoteInterface 38 { 39 public java.lang.String[] _ids = { "gcc.rmi.iiop.NameServiceOperations", "RMI:gcc.rmi.iiop.NameServiceOperations:0000000000000000", "NameService"}; 43 public java.util.HashMap _methods = new HashMap(10); 44 public gcc.rmi.iiop.NameServiceOperations _servant = null; 45 public java.lang.String _f3 = "f1"; 46 public java.lang.String[] _f4 = { "f1", "f2" }; 47 public gcc.rmi.iiop.ValueType vt$0 = gcc.rmi.iiop.ValueType.getInstance( java.lang.String.class ); 48 public gcc.rmi.iiop.ValueType vt$1 = gcc.rmi.iiop.ValueType.getInstance( gcc.org.omg.CosNaming.NameComponent[].class ); 49 public gcc.rmi.iiop.ValueType vt$2 = gcc.rmi.iiop.ValueType.getInstance( org.omg.CORBA.Object.class ); 50 public gcc.rmi.iiop.ValueType vt$3 = gcc.rmi.iiop.ValueType.getInstance( gcc.org.omg.CosNaming.BindingListHolder.class ); 51 public gcc.rmi.iiop.ValueType vt$4 = gcc.rmi.iiop.ValueType.getInstance( gcc.org.omg.CosNaming.BindingIteratorHolder.class ); 52 public gcc.rmi.iiop.ValueType vt$5 = gcc.rmi.iiop.ValueType.getInstance( gcc.org.omg.CosNaming.NamingContext.class ); 53 54 public NameServiceOperations_Skeleton( ) 58 { 59 super(); 60 61 registerMethods(); 62 } 63 64 protected void registerMethods() 65 { 66 super.registerMethods(); 67 68 registerMethod( "resolve_host", 0); 69 registerMethod( "to_string", 1); 70 registerMethod( "to_name", 2); 71 registerMethod( "to_url", 3); 72 registerMethod( "resolve_str", 4); 73 registerMethod( "list", 5); 74 registerMethod( "resolve", 6); 75 registerMethod( "bind", 7); 76 registerMethod( "bind_context", 8); 77 registerMethod( "rebind", 9); 78 registerMethod( "rebind_context", 10); 79 registerMethod( "unbind", 11); 80 registerMethod( "new_context", 12); 81 registerMethod( "bind_new_context", 13); 82 } 83 84 88 public void registerMethod( java.lang.String name, int id ) 89 { 90 _methods.put( name, new Integer(id) ); 91 } 92 93 public java.lang.String[] getIds( ) 94 { 95 return _ids; 96 } 97 98 public RemoteInterface $getSkeleton( ) 99 { 100 return this; 101 } 102 103 public ObjectRef $getObjectRef( ) 104 { 105 gcc.rmi.iiop.ObjectRef or = new ObjectRef(); 106 or.$setID("RMI:gcc.rmi.iiop.NameServiceOperations:0000000000000000"); 107 or.$setObjectKey("gcc.rmi.iiop.NameServiceOperations"); 108 return or; 109 } 110 111 public void $invoke( java.lang.String methodName, byte[] objectKey, java.lang.Object instance, gcc.rmi.iiop.ObjectInputStream input, gcc.rmi.iiop.ObjectOutputStream output ) 112 { 113 java.lang.Integer m = (Integer)_methods.get(methodName); 114 if (m == null) 115 { 116 throw new org.omg.CORBA.BAD_OPERATION(methodName); 117 } 118 119 _servant = (gcc.rmi.iiop.NameServiceOperations)instance; 120 121 if (m.intValue() < 0) 122 { 123 super.invoke( m.intValue(), objectKey, instance, input, output ); 124 } 125 126 127 switch(m.intValue()) 128 { 129 case 0: 130 { 131 resolve_host(input,output); 132 } 133 break; 134 case 1: 135 { 136 to_string(input,output); 137 } 138 break; 139 case 2: 140 { 141 to_name(input,output); 142 } 143 break; 144 case 3: 145 { 146 to_url(input,output); 147 } 148 break; 149 case 4: 150 { 151 resolve_str(input,output); 152 } 153 break; 154 case 5: 155 { 156 list(input,output); 157 } 158 break; 159 case 6: 160 { 161 resolve(input,output); 162 } 163 break; 164 case 7: 165 { 166 bind(input,output); 167 } 168 break; 169 case 8: 170 { 171 bind_context(input,output); 172 } 173 break; 174 case 9: 175 { 176 rebind(input,output); 177 } 178 break; 179 case 10: 180 { 181 rebind_context(input,output); 182 } 183 break; 184 case 11: 185 { 186 unbind(input,output); 187 } 188 break; 189 case 12: 190 { 191 new_context(input,output); 192 } 193 break; 194 case 13: 195 { 196 bind_new_context(input,output); 197 } 198 break; 199 } 200 } 201 202 public void resolve_host( gcc.rmi.iiop.ObjectInputStream input, gcc.rmi.iiop.ObjectOutputStream output ) 203 { 204 java.lang.String rc; 205 206 try 207 { 208 java.lang.String p0 = (java.lang.String) input.readObject( vt$0 ); 209 rc = _servant.resolve_host( p0 ); 210 output.writeObject( vt$0, rc ); 211 } 212 catch( java.lang.Exception ex ) 213 { 214 ex.printStackTrace(); 215 } 216 catch( java.lang.Error er ) 217 { 218 er.printStackTrace(); 219 } 220 } 221 222 public void to_string( gcc.rmi.iiop.ObjectInputStream input, gcc.rmi.iiop.ObjectOutputStream output ) 223 { 224 java.lang.String rc; 225 226 try 227 { 228 gcc.org.omg.CosNaming.NameComponent[] p0 = (gcc.org.omg.CosNaming.NameComponent[]) input.readObject( vt$1 ); 229 rc = _servant.to_string( p0 ); 230 output.writeObject( vt$0, rc ); 231 } 232 catch( java.lang.Exception ex ) 233 { 234 ex.printStackTrace(); 235 } 236 catch( java.lang.Error er ) 237 { 238 er.printStackTrace(); 239 } 240 } 241 242 public void to_name( gcc.rmi.iiop.ObjectInputStream input, gcc.rmi.iiop.ObjectOutputStream output ) 243 { 244 gcc.org.omg.CosNaming.NameComponent[] rc; 245 246 try 247 { 248 java.lang.String p0 = (java.lang.String) input.readObject( vt$0 ); 249 rc = _servant.to_name( p0 ); 250 output.writeObject( vt$1, rc ); 251 } 252 catch( java.lang.Exception ex ) 253 { 254 ex.printStackTrace(); 255 } 256 catch( java.lang.Error er ) 257 { 258 er.printStackTrace(); 259 } 260 } 261 262 public void to_url( gcc.rmi.iiop.ObjectInputStream input, gcc.rmi.iiop.ObjectOutputStream output ) 263 { 264 java.lang.String rc; 265 266 try 267 { 268 java.lang.String p0 = (java.lang.String) input.readObject( vt$0 ); 269 java.lang.String p1 = (java.lang.String) input.readObject( vt$0 ); 270 rc = _servant.to_url( p0, p1 ); 271 output.writeObject( vt$0, rc ); 272 } 273 catch( java.lang.Exception ex ) 274 { 275 ex.printStackTrace(); 276 } 277 catch( java.lang.Error er ) 278 { 279 er.printStackTrace(); 280 } 281 } 282 283 public void resolve_str( gcc.rmi.iiop.ObjectInputStream input, gcc.rmi.iiop.ObjectOutputStream output ) 284 { 285 org.omg.CORBA.Object rc; 286 287 try 288 { 289 java.lang.String p0 = (java.lang.String) input.readObject( vt$0 ); 290 rc = _servant.resolve_str( p0 ); 291 output.writeObject( vt$2, rc ); 292 } 293 catch( java.lang.Exception ex ) 294 { 295 ex.printStackTrace(); 296 } 297 catch( java.lang.Error er ) 298 { 299 er.printStackTrace(); 300 } 301 } 302 303 public void list( gcc.rmi.iiop.ObjectInputStream input, gcc.rmi.iiop.ObjectOutputStream output ) 304 { 305 306 try 307 { 308 int p0 = input.readInt(); 309 gcc.org.omg.CosNaming.BindingListHolder p1 = (gcc.org.omg.CosNaming.BindingListHolder) input.readObject( vt$3 ); 310 gcc.org.omg.CosNaming.BindingIteratorHolder p2 = (gcc.org.omg.CosNaming.BindingIteratorHolder) input.readObject( vt$4 ); 311 _servant.list( p0, p1, p2 ); 312 } 313 catch( java.lang.Exception ex ) 314 { 315 ex.printStackTrace(); 316 } 317 catch( java.lang.Error er ) 318 { 319 er.printStackTrace(); 320 } 321 } 322 323 public void resolve( gcc.rmi.iiop.ObjectInputStream input, gcc.rmi.iiop.ObjectOutputStream output ) 324 { 325 org.omg.CORBA.Object rc; 326 327 try 328 { 329 gcc.org.omg.CosNaming.NameComponent[] p0 = (gcc.org.omg.CosNaming.NameComponent[]) input.readObject( vt$1 ); 330 rc = _servant.resolve( p0 ); 331 output.writeObject( vt$2, rc ); 332 } 333 catch( java.lang.Exception ex ) 334 { 335 ex.printStackTrace(); 336 } 337 catch( java.lang.Error er ) 338 { 339 er.printStackTrace(); 340 } 341 } 342 343 public void bind( gcc.rmi.iiop.ObjectInputStream input, gcc.rmi.iiop.ObjectOutputStream output ) 344 { 345 346 try 347 { 348 gcc.org.omg.CosNaming.NameComponent[] p0 = (gcc.org.omg.CosNaming.NameComponent[]) input.readObject( vt$1 ); 349 org.omg.CORBA.Object p1 = (org.omg.CORBA.Object) input.readObject( vt$2 ); 350 _servant.bind( p0, p1 ); 351 } 352 catch( java.lang.Exception ex ) 353 { 354 ex.printStackTrace(); 355 } 356 catch( java.lang.Error er ) 357 { 358 er.printStackTrace(); 359 } 360 } 361 362 public void bind_context( gcc.rmi.iiop.ObjectInputStream input, gcc.rmi.iiop.ObjectOutputStream output ) 363 { 364 365 try 366 { 367 gcc.org.omg.CosNaming.NameComponent[] p0 = (gcc.org.omg.CosNaming.NameComponent[]) input.readObject( vt$1 ); 368 gcc.org.omg.CosNaming.NamingContext p1 = (gcc.org.omg.CosNaming.NamingContext) input.readObject( vt$5 ); 369 _servant.bind_context( p0, p1 ); 370 } 371 catch( java.lang.Exception ex ) 372 { 373 ex.printStackTrace(); 374 } 375 catch( java.lang.Error er ) 376 { 377 er.printStackTrace(); 378 } 379 } 380 381 public void rebind( gcc.rmi.iiop.ObjectInputStream input, gcc.rmi.iiop.ObjectOutputStream output ) 382 { 383 384 try 385 { 386 gcc.org.omg.CosNaming.NameComponent[] p0 = (gcc.org.omg.CosNaming.NameComponent[]) input.readObject( vt$1 ); 387 org.omg.CORBA.Object p1 = (org.omg.CORBA.Object) input.readObject( vt$2 ); 388 _servant.rebind( p0, p1 ); 389 } 390 catch( java.lang.Exception ex ) 391 { 392 ex.printStackTrace(); 393 } 394 catch( java.lang.Error er ) 395 { 396 er.printStackTrace(); 397 } 398 } 399 400 public void rebind_context( gcc.rmi.iiop.ObjectInputStream input, gcc.rmi.iiop.ObjectOutputStream output ) 401 { 402 403 try 404 { 405 gcc.org.omg.CosNaming.NameComponent[] p0 = (gcc.org.omg.CosNaming.NameComponent[]) input.readObject( vt$1 ); 406 gcc.org.omg.CosNaming.NamingContext p1 = (gcc.org.omg.CosNaming.NamingContext) input.readObject( vt$5 ); 407 _servant.rebind_context( p0, p1 ); 408 } 409 catch( java.lang.Exception ex ) 410 { 411 ex.printStackTrace(); 412 } 413 catch( java.lang.Error er ) 414 { 415 er.printStackTrace(); 416 } 417 } 418 419 public void unbind( gcc.rmi.iiop.ObjectInputStream input, gcc.rmi.iiop.ObjectOutputStream output ) 420 { 421 422 try 423 { 424 gcc.org.omg.CosNaming.NameComponent[] p0 = (gcc.org.omg.CosNaming.NameComponent[]) input.readObject( vt$1 ); 425 _servant.unbind( p0 ); 426 } 427 catch( java.lang.Exception ex ) 428 { 429 ex.printStackTrace(); 430 } 431 catch( java.lang.Error er ) 432 { 433 er.printStackTrace(); 434 } 435 } 436 437 public void new_context( gcc.rmi.iiop.ObjectInputStream input, gcc.rmi.iiop.ObjectOutputStream output ) 438 { 439 gcc.org.omg.CosNaming.NamingContext rc; 440 441 try 442 { 443 rc = _servant.new_context( ); 444 output.writeObject( vt$5, rc ); 445 } 446 catch( java.lang.Exception ex ) 447 { 448 ex.printStackTrace(); 449 } 450 catch( java.lang.Error er ) 451 { 452 er.printStackTrace(); 453 } 454 } 455 456 public void bind_new_context( gcc.rmi.iiop.ObjectInputStream input, gcc.rmi.iiop.ObjectOutputStream output ) 457 { 458 gcc.org.omg.CosNaming.NamingContext rc; 459 460 try 461 { 462 gcc.org.omg.CosNaming.NameComponent[] p0 = (gcc.org.omg.CosNaming.NameComponent[]) input.readObject( vt$1 ); 463 rc = _servant.bind_new_context( p0 ); 464 output.writeObject( vt$5, rc ); 465 } 466 catch( java.lang.Exception ex ) 467 { 468 ex.printStackTrace(); 469 } 470 catch( java.lang.Error er ) 471 { 472 er.printStackTrace(); 473 } 474 } 475 } 476 | Popular Tags |