Examples of EventChannel


Examples of org.omg.CosEventChannelAdmin.EventChannel

    public void connect(org.omg.CosNotifyChannelAdmin.EventChannel channel, boolean useOrSemantic)
            throws AlreadyConnected
    {

        EventChannel _channel = EventChannelHelper.narrow(channel);
        ConsumerAdmin _admin = _channel.for_consumers();
        mySupplier_ = _admin.obtain_pull_supplier();
        mySupplier_.connect_pull_consumer(_this(orb_));
        connected_ = true;
    }
View Full Code Here

Examples of org.omg.CosEventChannelAdmin.EventChannel

    public void connect(org.omg.CosNotifyChannelAdmin.EventChannel channel, boolean useOrSemantic)
            throws AlreadyConnected, TypeError
    {
        invalidAny_ = orb_.create_any();
        EventChannel _channel = EventChannelHelper.narrow(channel);
        SupplierAdmin _admin = _channel.for_suppliers();
        myConsumer_ = _admin.obtain_pull_consumer();

        myConsumer_.connect_pull_supplier(_this(orb_));
        connected_ = true;
    }
View Full Code Here

Examples of org.omg.CosEventChannelAdmin.EventChannel

    public void connect(org.omg.CosNotifyChannelAdmin.EventChannel channel, boolean useOrSemantic)
            throws AlreadyConnected
    {
        Assert.assertNotNull(channel);
        EventChannel _channel = EventChannelHelper.narrow(channel);
        Assert.assertNotNull(_channel);

        SupplierAdmin _admin = _channel.for_suppliers();
        Assert.assertNotNull(_admin);

        myConsumer_ = _admin.obtain_push_consumer();
        Assert.assertNotNull(myConsumer_);
View Full Code Here

Examples of org.omg.CosEventChannelAdmin.EventChannel

    public void connect(org.omg.CosNotifyChannelAdmin.EventChannel channel, boolean useOrSemantic)
            throws AlreadyConnected, TypeError
    {

        EventChannel _channel = EventChannelHelper.narrow(channel);
        Assert.assertNotNull(_channel);

        ConsumerAdmin _admin = _channel.for_consumers();
        Assert.assertNotNull(_admin);

        mySupplier_ = _admin.obtain_push_supplier();
        Assert.assertNotNull(mySupplier_);
View Full Code Here

Examples of org.omg.CosEventChannelAdmin.EventChannel

    public void connect(org.omg.CosNotifyChannelAdmin.EventChannel channel, boolean useOrSemantic)
            throws AlreadyConnected
    {

        EventChannel _channel = EventChannelHelper.narrow(channel);
        ConsumerAdmin _admin = _channel.for_consumers();
        mySupplier_ = _admin.obtain_pull_supplier();
        mySupplier_.connect_pull_consumer(_this(orb_));
        connected_ = true;
    }
View Full Code Here

Examples of org.omg.CosEventChannelAdmin.EventChannel

    public void connect(org.omg.CosNotifyChannelAdmin.EventChannel channel, boolean useOrSemantic)
            throws AlreadyConnected, TypeError
    {
        invalidAny_ = orb_.create_any();
        EventChannel _channel = EventChannelHelper.narrow(channel);
        SupplierAdmin _admin = _channel.for_suppliers();
        myConsumer_ = _admin.obtain_pull_consumer();

        myConsumer_.connect_pull_supplier(_this(orb_));
        connected_ = true;
    }
View Full Code Here

Examples of org.omg.CosNotifyChannelAdmin.EventChannel

                synchronized(boards) {
                    board = (WhiteBoard)boards.get(name);
                    if (board == null) {
                        System.out.println("Create board "+name);
                        IntHolder _channelId = new IntHolder();
                        EventChannel _channel =
                            channelFactory_.create_channel(new Property[0], new Property[0], _channelId);

                        IntHolder _adminId = new IntHolder();

                        board = new WhiteBoard(orb_, _channel);
View Full Code Here

Examples of org.omg.CosNotifyChannelAdmin.EventChannel

    public void testDestroyChannelDisconnectsClients() throws Exception
    {
        Property[] _p = new Property[0];
        IntHolder _channelId = new IntHolder();

        EventChannel _channel = getEventChannelFactory().create_channel(_p, _p, _channelId);

        SequencePushSender _pushSender = new SequencePushSender(getClientORB(), testEvent_);
        SequencePullSender _pullSender = new SequencePullSender(getClientORB(), testEvent_);
        SequencePushReceiver _pushReceiver = new SequencePushReceiver(getClientORB());
        SequencePullReceiver _pullReceiver = new SequencePullReceiver(getClientORB());

        _pushSender.connect(_channel, false);
        _pullSender.connect(_channel, false);
        _pushReceiver.connect(_channel, false);
        _pullReceiver.connect(_channel, false);

        assertTrue(_pushSender.isConnected());
        assertTrue(_pullSender.isConnected());
        assertTrue(_pushReceiver.isConnected());
        assertTrue(_pullReceiver.isConnected());

        _channel.destroy();

        try
        {
            Thread.sleep(1000);
        } catch (InterruptedException ie)
View Full Code Here

Examples of org.omg.CosNotifyChannelAdmin.EventChannel

     */
    public void testDestroyChannelDisconnectsClients() throws Exception
    {
        IntHolder _id = new IntHolder();

        EventChannel _channel = getEventChannelFactory().create_channel(new Property[0],
                new Property[0], _id);

        AnyPullReceiver _anyPullReceiver = new AnyPullReceiver(getClientORB());
        _anyPullReceiver.connect(_channel, false);

        AnyPushReceiver _anyPushReceiver = new AnyPushReceiver(getClientORB());
        _anyPushReceiver.connect(_channel, false);

        AnyPullSender _anyPullSender = new AnyPullSender(getClientORB(), testPerson_);
        _anyPullSender.connect(_channel, false);

        AnyPushSender _anyPushSender = new AnyPushSender(getClientORB(), testPerson_);
        _anyPushSender.connect(_channel, false);

        assertTrue(_anyPullReceiver.isConnected());
        assertTrue(_anyPushReceiver.isConnected());
        assertTrue(_anyPullSender.isConnected());
        assertTrue(_anyPushSender.isConnected());

        _channel.destroy();

        assertTrue(!_anyPullReceiver.isConnected());
        assertTrue(!_anyPushReceiver.isConnected());
        assertTrue(!_anyPullSender.isConnected());
        assertTrue(!_anyPushSender.isConnected());
View Full Code Here

Examples of org.omg.CosNotifyChannelAdmin.EventChannel

     */
    public void testDestroyAdminDisconnectsClients() throws Exception
    {
        IntHolder _id = new IntHolder();

        EventChannel _channel = getEventChannelFactory().create_channel(new Property[0],
                new Property[0], _id);

        AnyPullReceiver _anyPullReceiver = new AnyPullReceiver(getClientORB());
        _anyPullReceiver.connect(_channel, false);

        AnyPushReceiver _anyPushReceiver = new AnyPushReceiver(getClientORB());
        _anyPushReceiver.connect(_channel, false);

        AnyPullSender _anyPullSender = new AnyPullSender(getClientORB(), testPerson_);
        _anyPullSender.connect(_channel, false);

        AnyPushSender _anyPushSender = new AnyPushSender(getClientORB(), testPerson_);
        _anyPushSender.connect(_channel, false);

        assertTrue(_anyPullReceiver.isConnected());
        assertTrue(_anyPushReceiver.isConnected());
        assertTrue(_anyPullSender.isConnected());
        assertTrue(_anyPushSender.isConnected());

        _anyPullReceiver.myAdmin_.destroy();
        _anyPushReceiver.myAdmin_.destroy();
        _anyPullSender.myAdmin_.destroy();
        _anyPushSender.myAdmin_.destroy();

        assertTrue(!_anyPullReceiver.isConnected());
        assertTrue(!_anyPushReceiver.isConnected());
        assertTrue(!_anyPullSender.isConnected());
        assertTrue(!_anyPushSender.isConnected());

        _channel.destroy();
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.