SctServiceInterfacePOA.java

00001 package SctServiceI;
00002 
00003 
00015 public abstract class SctServiceInterfacePOA extends org.omg.PortableServer.Servant
00016  implements SctServiceI.SctServiceInterfaceOperations, org.omg.CORBA.portable.InvokeHandler
00017 {
00018 
00019   // Constructors
00020 
00021   private static java.util.Hashtable _methods = new java.util.Hashtable ();
00022   static
00023   {
00024     _methods.put ("status", new java.lang.Integer (0));
00025     _methods.put ("busy", new java.lang.Integer (1));
00026     _methods.put ("queueLength", new java.lang.Integer (2));
00027     _methods.put ("_get_information", new java.lang.Integer (3));
00028     _methods.put ("shutdown", new java.lang.Integer (4));
00029   }
00030 
00031   public org.omg.CORBA.portable.OutputStream _invoke (String $method,
00032                                 org.omg.CORBA.portable.InputStream in,
00033                                 org.omg.CORBA.portable.ResponseHandler $rh)
00034   {
00035     org.omg.CORBA.portable.OutputStream out = null;
00036     java.lang.Integer __method = (java.lang.Integer)_methods.get ($method);
00037     if (__method == null)
00038       throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE);
00039 
00040     switch (__method.intValue ())
00041     {
00042 
00046        case 0:  // SctServiceI/SctServiceInterface/status
00047        {
00048          String $result = null;
00049          $result = this.status ();
00050          out = $rh.createReply();
00051          out.write_string ($result);
00052          break;
00053        }
00054 
00055 
00059        case 1:  // SctServiceI/SctServiceInterface/busy
00060        {
00061          short $result = (short)0;
00062          $result = this.busy ();
00063          out = $rh.createReply();
00064          out.write_short ($result);
00065          break;
00066        }
00067 
00068 
00072        case 2:  // SctServiceI/SctServiceInterface/queueLength
00073        {
00074          short $result = (short)0;
00075          $result = this.queueLength ();
00076          out = $rh.createReply();
00077          out.write_short ($result);
00078          break;
00079        }
00080 
00081        case 3:  // ipc/servant/_get_information
00082        {
00083          ipc.servantPackage.info $result = null;
00084          $result = this.information ();
00085          out = $rh.createReply();
00086          ipc.servantPackage.infoHelper.write (out, $result);
00087          break;
00088        }
00089 
00090        case 4:  // ipc/servant/shutdown
00091        {
00092          this.shutdown ();
00093          out = $rh.createReply();
00094          break;
00095        }
00096 
00097        default:
00098          throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE);
00099     }
00100 
00101     return out;
00102   } // _invoke
00103 
00104   // Type-specific CORBA::Object operations
00105   private static String[] __ids = {
00106     "IDL:SctServiceI/SctServiceInterface:1.0", 
00107     "IDL:ipc/servant:1.0"};
00108 
00109   public String[] _all_interfaces (org.omg.PortableServer.POA poa, byte[] objectId)
00110   {
00111     return (String[])__ids.clone ();
00112   }
00113 
00114   public SctServiceInterface _this() 
00115   {
00116     return SctServiceInterfaceHelper.narrow(
00117     super._this_object());
00118   }
00119 
00120   public SctServiceInterface _this(org.omg.CORBA.ORB orb) 
00121   {
00122     return SctServiceInterfaceHelper.narrow(
00123     super._this_object(orb));
00124   }
00125 
00126 
00127 } // class SctServiceInterfacePOA

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