01: package org.cougaar.qos.ResourceStatus;
02:
03: /**
04: * org/cougaar/qos/ResourceStatus/RSSSubscriberPOA.java .
05: * Generated by the IDL-to-Java compiler (portable), version "3.2"
06: * from qrs.idl
07: * Tuesday, August 7, 2007 11:57:30 AM EDT
08: */
09:
10: // to the RSS should implement this.
11: public abstract class RSSSubscriberPOA extends
12: org.omg.PortableServer.Servant implements
13: org.cougaar.qos.ResourceStatus.RSSSubscriberOperations,
14: org.omg.CORBA.portable.InvokeHandler {
15:
16: // Constructors
17:
18: private static java.util.Hashtable _methods = new java.util.Hashtable();
19: static {
20: _methods.put("dataUpdate", new java.lang.Integer(0));
21: }
22:
23: public org.omg.CORBA.portable.OutputStream _invoke(String $method,
24: org.omg.CORBA.portable.InputStream in,
25: org.omg.CORBA.portable.ResponseHandler $rh) {
26: org.omg.CORBA.portable.OutputStream out = null;
27: java.lang.Integer __method = (java.lang.Integer) _methods
28: .get($method);
29: if (__method == null)
30: throw new org.omg.CORBA.BAD_OPERATION(0,
31: org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE);
32:
33: switch (__method.intValue()) {
34: case 0: // org/cougaar/qos/ResourceStatus/RSSSubscriber/dataUpdate
35: {
36: int callback_id = in.read_long();
37: org.cougaar.qos.ResourceStatus.DataValue value = org.cougaar.qos.ResourceStatus.DataValueHelper
38: .read(in);
39: this .dataUpdate(callback_id, value);
40: out = $rh.createReply();
41: break;
42: }
43:
44: default:
45: throw new org.omg.CORBA.BAD_OPERATION(0,
46: org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE);
47: }
48:
49: return out;
50: } // _invoke
51:
52: // Type-specific CORBA::Object operations
53: private static String[] __ids = { "IDL:org/cougaar/qos/ResourceStatus/RSSSubscriber:1.0" };
54:
55: public String[] _all_interfaces(org.omg.PortableServer.POA poa,
56: byte[] objectId) {
57: return (String[]) __ids.clone();
58: }
59:
60: public RSSSubscriber _this () {
61: return RSSSubscriberHelper.narrow(super ._this _object());
62: }
63:
64: public RSSSubscriber _this (org.omg.CORBA.ORB orb) {
65: return RSSSubscriberHelper.narrow(super ._this _object(orb));
66: }
67:
68: } // class RSSSubscriberPOA
|