Examples of Channel


Examples of EDU.oswego.cs.dl.util.concurrent.Channel

    public ThreadPoolWorkflowEngine(WorkflowInstanceRepository instRep,
            int queueSize, int maxPoolSize, int minPoolSize,
            long threadKeepAliveTime, boolean unlimitedQueue, URL resUrl) {

        this.instRep = instRep;
        Channel c = null;
        if (unlimitedQueue) {
            c = new LinkedQueue();
        } else {
            c = new BoundedBuffer(queueSize);
        }
View Full Code Here

Examples of avrora.sim.radio.Channel

     */
    public LocalAirImpl(Radio r, Position pos, Synchronizer synch) {
        position = pos;
        neighbors = new LinkedList();
        radio = r;
        radioChannel = new Channel(8, bytePeriod, true);
        synchronizer = synch;
    }
View Full Code Here

Examples of ca.eandb.jmist.framework.loader.openexr.attribute.Channel

  private synchronized Buffer getChannelBufferSync(String name) {
    Buffer buf = data.get(name);
    if (buf == null) {
      ChannelList chlist = getChannelList();
      Channel channel = chlist.getChannel(name);
      Box2i dataWindow = getDataWindow();
      int w = dataWindow.getXSize();
      int h = dataWindow.getYSize();
      int sx = 1 + (w - 1) / channel.getxSampling();
      int sy = 1 + (h - 1) / channel.getySampling();
      PixelType pt = channel.getPixelType();

      switch (pt) {
      case UINT:
        buf = IntBuffer.allocate(sx * sy);
        break;
View Full Code Here

Examples of com.agiletec.plugins.jprss.aps.system.services.rss.Channel

  protected void tearDown() throws Exception {
    try {
      List<Channel> fullList = this.getRssManager().getChannels(Channel.STATUS_ALL);
      Iterator<Channel> it = fullList.iterator();
      while (it.hasNext()) {
        Channel current = it.next();
        int id = current.getId();
        this.getRssManager().deleteChannel(id);
      }
      fullList = this.getRssManager().getChannels(Channel.STATUS_ALL);
      assertTrue(fullList.isEmpty());
      IContentManager contentManager = (IContentManager) this.getService(JacmsSystemConstants.CONTENT_MANAGER);
View Full Code Here

Examples of com.alibaba.dubbo.remoting.Channel

    public InetSocketAddress getConnectAddress() {
        return new InetSocketAddress(NetUtils.filterLocalHost(getUrl().getHost()), getUrl().getPort());
    }

    public InetSocketAddress getRemoteAddress() {
        Channel channel = getChannel();
        if (channel == null)
            return getUrl().toInetSocketAddress();
        return channel.getRemoteAddress();
    }
View Full Code Here

Examples of com.alibaba.otter.shared.common.model.config.channel.Channel

    }

    private DbLoadContext buildContext(Identity identity) {
        DbLoadContext context = new DbLoadContext();
        context.setIdentity(identity);
        Channel channel = configClientService.findChannel(identity.getChannelId());
        Pipeline pipeline = configClientService.findPipeline(identity.getPipelineId());
        context.setChannel(channel);
        context.setPipeline(pipeline);
        return context;
    }
View Full Code Here

Examples of com.brewtab.irc.client.Channel

        @Override
        public void run() {
            initClient();

            final Channel channel = client.join(channelName);

            while (running) {
                final LogLine line;

                try {
                    line = buffer.take();
                } catch (InterruptedException e) {
                    continue;
                }

                channel.write(line.getLine());
            }

            channel.part(quitMessage);
        }
View Full Code Here

Examples of com.colorfulsoftware.rss.Channel

      rss1 = rssDoc.readRSSToBean(expectedRSS1);
      assertNotNull(rss1);
      assertNotNull(rss1.getAttributes());
      assertNotNull(rss1.getChannel());
      assertNotNull(rss1.getExtensions());
      Channel channel = rss1.getChannel();
      assertNotNull(channel.getCategories());
      assertNotNull(channel.getRating());
      assertNotNull(channel.getManagingEditor());
      assertNotNull(channel.getCloud());
      assertNotNull(channel.getSkipDays());
      assertNotNull(channel.getSkipHours());
      assertNotNull(channel.getTtl());
      assertNotNull(channel.getWebMaster());

    } catch (Exception e) {
      e.printStackTrace();
      fail("should be working. " + e.getLocalizedMessage());
    }
View Full Code Here

Examples of com.dthielke.herochat.Channel

  public boolean equals(Object other)
  {
    if (other == this) return true;
    if (other == null) return false;
    if (!(other instanceof Channel)) return false;
    Channel channel = (Channel)other;
    return (this.getName().equalsIgnoreCase(channel.getName())) || (this.getName().equalsIgnoreCase(channel.getNick()));
  }
View Full Code Here

Examples of com.facebook.presto.jdbc.internal.netty.channel.Channel

                long wait = getTimeToWait(readLimit,
                        trafficCounter.getCurrentReadBytes(),
                        trafficCounter.getLastTime(), curtime);
                if (wait >= MINIMAL_WAIT) { // At least 10ms seems a minimal
                                            // time in order to
                    Channel channel = ctx.getChannel();
                    // try to limit the traffic
                    if (channel != null && channel.isConnected()) {
                        // Channel version
                        if (timer == null) {
                            // Sleep since no executor
                            // logger.warn("Read sleep since no timer for "+wait+" ms for "+this);
                            if (release.get()) {
                                return;
                            }
                            Thread.sleep(wait);
                            return;
                        }
                        if (ctx.getAttachment() == null) {
                            // readSuspended = true;
                            ctx.setAttachment(Boolean.TRUE);
                            channel.setReadable(false);
                            // logger.warn("Read will wakeup after "+wait+" ms "+this);
                            TimerTask timerTask = new ReopenReadTimerTask(ctx);
                            timeout = timer.newTimeout(timerTask, wait,
                                    TimeUnit.MILLISECONDS);
                        } else {
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.