TestLibraryPOA.java

00001 package Sct_CalibrationController;
00002 
00003 
00011 public abstract class TestLibraryPOA extends org.omg.PortableServer.Servant
00012  implements Sct_CalibrationController.TestLibraryOperations, org.omg.CORBA.portable.InvokeHandler
00013 {
00014 
00015   // Constructors
00016 
00017   private static java.util.Hashtable _methods = new java.util.Hashtable ();
00018   static
00019   {
00020     _methods.put ("getTestRequestByName", new java.lang.Integer (0));
00021     _methods.put ("getTestNames", new java.lang.Integer (1));
00022   }
00023 
00024   public org.omg.CORBA.portable.OutputStream _invoke (String $method,
00025                                 org.omg.CORBA.portable.InputStream in,
00026                                 org.omg.CORBA.portable.ResponseHandler $rh)
00027   {
00028     org.omg.CORBA.portable.OutputStream out = null;
00029     java.lang.Integer __method = (java.lang.Integer)_methods.get ($method);
00030     if (__method == null)
00031       throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE);
00032 
00033     switch (__method.intValue ())
00034     {
00035        case 0:  // Sct_CalibrationController/TestLibrary/getTestRequestByName
00036        {
00037          String name = in.read_string ();
00038          Sct_CalibrationController.TestRequest $result = null;
00039          $result = this.getTestRequestByName (name);
00040          out = $rh.createReply();
00041          Sct_CalibrationController.TestRequestHelper.write (out, $result);
00042          break;
00043        }
00044 
00045        case 1:  // Sct_CalibrationController/TestLibrary/getTestNames
00046        {
00047          String $result[] = null;
00048          $result = this.getTestNames ();
00049          out = $rh.createReply();
00050          Sct_CalibrationController.TestLibraryPackage.StringsHelper.write (out, $result);
00051          break;
00052        }
00053 
00054        default:
00055          throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE);
00056     }
00057 
00058     return out;
00059   } // _invoke
00060 
00061   // Type-specific CORBA::Object operations
00062   private static String[] __ids = {
00063     "IDL:Sct_CalibrationController/TestLibrary:1.0"};
00064 
00065   public String[] _all_interfaces (org.omg.PortableServer.POA poa, byte[] objectId)
00066   {
00067     return (String[])__ids.clone ();
00068   }
00069 
00070   public TestLibrary _this() 
00071   {
00072     return TestLibraryHelper.narrow(
00073     super._this_object());
00074   }
00075 
00076   public TestLibrary _this(org.omg.CORBA.ORB orb) 
00077   {
00078     return TestLibraryHelper.narrow(
00079     super._this_object(orb));
00080   }
00081 
00082 
00083 } // class TestLibraryPOA

Generated on Mon Feb 6 14:12:20 2006 for SCT DAQ/DCS Software - Java by  doxygen 1.4.6