1 28 29 30 package org.objectweb.ccm.runtime; 31 32 import org.objectweb.corba.runtime.*; 33 34 38 public class LocalEventsImpl 39 extends org.omg.CORBA.LocalObject 40 implements org.omg.Components.LocalEvents 41 { 42 static private String _class_name = "LocalEventsImpl"; 44 private HomeLocalEventsImpl _delegate; 45 private byte[] _component_id; 46 47 public 49 LocalEventsImpl(HomeLocalEventsImpl evts, byte[] cid) 50 { 51 _delegate = evts; 53 _component_id = cid; 54 } 55 56 60 final public int 61 get_channel(String name) 62 throws org.omg.Components.ChannelUnavailable 63 { 64 return _delegate.get_channel(_component_id, name); 65 } 66 67 final public org.omg.Components.Cookie 68 subscribe(org.omg.Components.EventConsumerBase consumer, int chid) 69 throws org.omg.Components.InvalidChannel 70 { 71 return _delegate.subscribe(_component_id, consumer, chid); 72 } 73 74 final public org.omg.Components.EventConsumerBase 75 unsubscribe(org.omg.Components.Cookie ck) 76 throws org.omg.Components.InvalidSubscription 77 { 78 return _delegate.unsubscribe(_component_id, ck); 79 } 80 81 final public void 82 push(org.omg.Components.EventBase evt, int chid) 83 throws org.omg.Components.InvalidChannel 84 { 85 _delegate.push(_component_id, evt, chid); 86 } 87 } 88 | Popular Tags |