Examples of Channel


Examples of org.codehaus.xfire.transport.Channel

        throws Exception
    {
        String peer1 = "jms://Peer1";
        String peer2 = "jms://Peer2";

        Channel channel1 = getTransport().createChannel(peer1);
        Channel channel2 = getTransport().createChannel(peer2);
        channel2.setEndpoint(new JDOMEndpoint());

        // Document to send
        StaxBuilder builder = new StaxBuilder();
        Document doc = builder.build(getResourceAsStream("/org/codehaus/xfire/transport/jms/echo.xml"));
View Full Code Here

Examples of org.cometd.Channel

                            listener.deliver(fromClient,toClient,msg);
                    }
                }
                else
                {
                    Channel channel = _oort._bayeux.getChannel(msg.getChannel(),false);
                    if (channel!=null)
                        channel.publish(_oort._oortClient,msg.getData(),msg.getId());
                }
            }
        }
View Full Code Here

Examples of org.darkhelm.dragonchess.client.channel.Channel

      @Override
      public void onSuccess(String result) {
        channelKey = result;
        append("Channel key: " + channelKey);
        Channel channel = new Channel(channelKey);
        channel.addChannelListener(new ChannelListener() {

          @Override
          public void onReceive(Message message) {
            append(message.toString());

          }
        });
        channel.join();
      }

      @Override
      public void onFailure(Throwable caught) {
View Full Code Here

Examples of org.dbunit.util.concurrent.Channel

     * @param source The source of the data
     * @throws DataSetException
     */
    public StreamingIterator(IDataSetProducer source) throws DataSetException
    {
        Channel channel = new BoundedBuffer(30);
        _channel = channel;

        AsynchronousConsumer consumer = new AsynchronousConsumer(source, channel, this);
        Thread thread = new Thread(consumer, "StreamingIterator");
        thread.setDaemon(true);
View Full Code Here

Examples of org.drools.runtime.Channel

    @Override
    public Map<String, Channel> getChannels() {
        Map<String, Channel> channels = new HashMap<String, Channel>();
        for (final Map.Entry<String, org.kie.api.runtime.Channel> entry : delegate.getChannels().entrySet()) {
            channels.put(entry.getKey(), new Channel() {
                @Override
                public void send(Object object) {
                    entry.getValue().send(object);
                }
            });
View Full Code Here

Examples of org.elasticsearch.common.netty.channel.Channel

        if (!lifecycle.started()) {
            // ignore
        }
        if (isCloseConnectionException(e.getCause())) {
            // disconnect the node
            Channel channel = ctx.getChannel();
            for (Map.Entry<DiscoveryNode, NodeChannels> entry : connectedNodes.entrySet()) {
                if (entry.getValue().hasChannel(channel)) {
                    disconnectFromNode(entry.getKey());
                }
            }
View Full Code Here

Examples of org.hornetq.core.protocol.core.Channel

            int lcid = channel.getLastConfirmedCommandID();

            Packet request = new ReattachSessionMessage(name, lcid);

            Channel channel1 = backupConnection.getChannel(1, -1);

            ReattachSessionResponseMessage response = (ReattachSessionResponseMessage)channel1.sendBlocking(request);

            if (response.isReattached())
            {
               // The session was found on the server - we reattached transparently ok

               channel.replayCommands(response.getLastConfirmedCommandID());
            }
            else
            {

               // The session wasn't found on the server - probably we're failing over onto a backup server where the
               // session won't exist or the target server has been restarted - in this case the session will need to be
               // recreated,
               // and we'll need to recreate any consumers

               // It could also be that the server hasn't been restarted, but the session is currently executing close,
               // and
               // that
               // has already been executed on the server, that's why we can't find the session- in this case we *don't*
               // want
               // to recreate the session, we just want to unblock the blocking call
               if (!inClose)
               {
                  Packet createRequest = new CreateSessionMessage(name,
                                                                  channel.getID(),
                                                                  version,
                                                                  username,
                                                                  password,
                                                                  minLargeMessageSize,
                                                                  xa,
                                                                  autoCommitSends,
                                                                  autoCommitAcks,
                                                                  preAcknowledge,
                                                                  confirmationWindowSize,
                                                                  defaultAddress == null ? null
                                                                                        : defaultAddress.toString());
                  boolean retry = false;
                  do
                  {
                     try
                     {
                        channel1.sendBlocking(createRequest);
                        retry = false;
                     }
                     catch (HornetQException e)
                     {
                        // the session was created while its server was starting, retry it:
View Full Code Here

Examples of org.j2cms.model.channel.Channel

    orderbyRankid.put("rankid", "asc");//正序
    orderbyVisitTotal.put("visitTotal", "desc");
    orderbyCommentCount.put("commentCount", "desc");
    try {
      flashs=flashService.getScrollData(0, 5,"o.checkState=?1",new Object[]{CheckState.pass}, orderby).getResultlist();
      channelsDisplay=channelService.getScrollData(-1,-1, "o.father=?1 and o.display=true",new Object[]{new Channel(1)},orderbyRankid).getResultlist();
      latestArticles=articleService.getScrollData(0, 8,"o.checkState=?1",new Object[]{CheckState.pass},orderby).getResultlist();
      mostVisitArticles=articleService.getScrollData(0, 10,"o.checkState=?1",new Object[]{CheckState.pass},orderbyVisitTotal).getResultlist();
      mostCommentArticles=articleService.getScrollData(0, 10,"o.checkState=?1",new Object[]{CheckState.pass},orderbyCommentCount).getResultlist();
      channelInIndexs=channelService.getScrollData(0,-1, "o.displayInIndex=true",null,orderbyRankid).getResultlist();       
//      List<?> channelArticles[] = new ArrayList<?>[channelInIndexs.size()];     
View Full Code Here

Examples of org.javagroups.Channel

            {
                log.debug( "Listening on port " + port );
            }

            JGConnectionHolder holder = JGConnectionHolder.getInstance(ilca);
            Channel javagroups = holder.getChannel();
            RpcDispatcher disp = holder.getDispatcher();

            if ( javagroups == null )
            {
                log.error( "JavaGroups is null" );
                throw new IOException( "javagroups is null" );
            }


            while ( true )
            {
                if ( log.isDebugEnabled() )
                {
                    log.debug( "Wating for messages." );
                }

                Message mes = null;
                try
                {
                    Object obj = javagroups.receive( 0 );
                    if ( obj != null && obj instanceof org.javagroups.Message )
                    {
                        mes = ( Message ) obj;
                        log.info( "Starting new socket node." );
                        new Thread( new LateralJGReceiverConnection( mes, ilcl ) ).start();
View Full Code Here

Examples of org.jboss.aerogear.simplepush.server.Channel

        assertThat(store.getPrivateKeySalt(), equalTo(salt));
    }

    @Test
    public void saveChannel() {
        final Channel channel = newChannel2();
        assertThat(newRedisDataStore().saveChannel(channel), is(true));
    }
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.