01: package org.cougaar.qos.ResourceStatus;
02:
03: /**
04: * org/cougaar/qos/ResourceStatus/_RSSSubscriberStub.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 class _RSSSubscriberStub extends
12: org.omg.CORBA.portable.ObjectImpl implements
13: org.cougaar.qos.ResourceStatus.RSSSubscriber {
14:
15: public void dataUpdate(int callback_id,
16: org.cougaar.qos.ResourceStatus.DataValue value) {
17: org.omg.CORBA.portable.InputStream $in = null;
18: try {
19: org.omg.CORBA.portable.OutputStream $out = _request(
20: "dataUpdate", false);
21: $out.write_long(callback_id);
22: org.cougaar.qos.ResourceStatus.DataValueHelper.write($out,
23: value);
24: $in = _invoke($out);
25: return;
26: } catch (org.omg.CORBA.portable.ApplicationException $ex) {
27: $in = $ex.getInputStream();
28: String _id = $ex.getId();
29: throw new org.omg.CORBA.MARSHAL(_id);
30: } catch (org.omg.CORBA.portable.RemarshalException $rm) {
31: dataUpdate(callback_id, value);
32: } finally {
33: _releaseReply($in);
34: }
35: } // dataUpdate
36:
37: // Type-specific CORBA::Object operations
38: private static String[] __ids = { "IDL:org/cougaar/qos/ResourceStatus/RSSSubscriber:1.0" };
39:
40: public String[] _ids() {
41: return (String[]) __ids.clone();
42: }
43:
44: private void readObject(java.io.ObjectInputStream s)
45: throws java.io.IOException {
46: String str = s.readUTF();
47: String[] args = null;
48: java.util.Properties props = null;
49: org.omg.CORBA.Object obj = org.omg.CORBA.ORB.init(args, props)
50: .string_to_object(str);
51: org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl) obj)
52: ._get_delegate();
53: _set_delegate(delegate);
54: }
55:
56: private void writeObject(java.io.ObjectOutputStream s)
57: throws java.io.IOException {
58: String[] args = null;
59: java.util.Properties props = null;
60: String str = org.omg.CORBA.ORB.init(args, props)
61: .object_to_string(this );
62: s.writeUTF(str);
63: }
64: } // class _RSSSubscriberStub
|