Package com.sun.sgs.app

Examples of com.sun.sgs.app.ChannelManager.createChannel()


     */
    public void initialize(Properties props) {
        ChannelManager channelMgr = AppContext.getChannelManager();
       
        // Create and keep a reference to the first channel.
        Channel c1 = channelMgr.createChannel(CHANNEL_1_NAME,
                                              null,
                                              Delivery.RELIABLE);
        channel1 = AppContext.getDataManager().createReference(c1);
       
        // We don't keep a reference to the second channel, to demonstrate
View Full Code Here


        channel1 = AppContext.getDataManager().createReference(c1);
       
        // We don't keep a reference to the second channel, to demonstrate
        // looking it up by name when needed.  Also, this channel uses a
        // {@link ChannelListener} to filter messages.
        channelMgr.createChannel(CHANNEL_2_NAME,
                                 new HelloChannelsChannelListener(),
                                 Delivery.RELIABLE);
    }

    /**
 
View Full Code Here

     */
    protected void openChannel() {
        CellMO cell = cellRef.get();

        ChannelManager cm = AppContext.getChannelManager();
        Channel cellChannel = cm.createChannel("Cell "+cell.getCellID().toString(),
                                               null,
                                               Delivery.RELIABLE);

        DataManager dm = AppContext.getDataManager();
        cellChannelRef = dm.createReference(cellChannel);
View Full Code Here

            ChannelManager cm = AppContext.getChannelManager();
           
            ClientSessionSet sessions = new ClientSessionSet();
            String channelName = handler.getConnectionType().toString() +
                                 "(" + String.valueOf(assignID) + ")";
            Channel channel = cm.createChannel(channelName,
                                               null,
                                               Delivery.RELIABLE);

            // mark ourself for udate
            dm.markForUpdate(this);
View Full Code Here

     */
    public void initialize(Properties props) {
        ChannelManager channelMgr = AppContext.getChannelManager();
       
        // Create and keep a reference to the first channel.
        Channel c1 = channelMgr.createChannel(CHANNEL_1_NAME,
                                              null,
                                              Delivery.RELIABLE);
        channel1 = AppContext.getDataManager().createReference(c1);
       
        // We don't keep a reference to the second channel, to demonstrate
View Full Code Here

        channel1 = AppContext.getDataManager().createReference(c1);
       
        // We don't keep a reference to the second channel, to demonstrate
        // looking it up by name when needed.  Also, this channel uses a
        // {@link ChannelListener} to filter messages.
        channelMgr.createChannel(CHANNEL_2_NAME,
                                 new HelloChannelsChannelListener(),
                                 Delivery.RELIABLE);
    }

    /**
 
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.