Examples of Channel


Examples of eu.stratosphere.compiler.plan.Channel

            }
          }
         
          // assign memory to the local and global strategies of the channels
          for (Iterator<Channel> channels = node.getInputs(); channels.hasNext();) {
            final Channel c = channels.next();
            if (c.getLocalStrategy().dams()) {
              final long mem = memoryPerInstanceAndWeight / node.getSubtasksPerInstance();
              c.setMemoryLocalStrategy(mem);
              if (LOG.isDebugEnabled()) {
                final long mib = mem >> 20;
                LOG.debug("Assigned " + mib + " MiBytes memory to each local strategy instance of " +
                  c + " (" + mib * node.getDegreeOfParallelism() + " MiBytes total.)");
              }
            }
            if (c.getTempMode() != TempMode.NONE) {
              final long mem = memoryPerInstanceAndWeight / node.getSubtasksPerInstance();
              c.setTempMemory(mem);
              if (LOG.isDebugEnabled()) {
                final long mib = mem >> 20;
                LOG.debug("Assigned " + mib + " MiBytes memory to each instance of the temp table for " +
                  c + " (" + mib * node.getDegreeOfParallelism() + " MiBytes total.)");
              }
View Full Code Here

Examples of eu.stratosphere.runtime.io.channels.Channel

  public void unregister(ExecutionVertexID vertexId, Task task) {
    final Environment environment = task.getEnvironment();

    // destroy and remove OUTPUT channels from registered channels and cache
    for (ChannelID id : environment.getOutputChannelIDs()) {
      Channel channel = this.channels.remove(id);
      if (channel != null) {
        channel.destroy();
      }

      this.receiverCache.remove(channel);
    }

    // destroy and remove INPUT channels from registered channels and cache
    for (ChannelID id : environment.getInputChannelIDs()) {
      Channel channel = this.channels.remove(id);
      if (channel != null) {
        channel.destroy();
      }

      this.receiverCache.remove(channel);
    }
View Full Code Here

Examples of hudson.remoting.Channel

            if(profile) {
                NumberFormat n = NumberFormat.getInstance();
                PrintStream logger = listener.getLogger();
                logger.println("Total overhead was "+format(n,a.overheadTime)+"ms");
                Channel ch = Channel.current();
                logger.println("Class loading "   +format(n,ch.classLoadingTime.get())   +"ms, "+ch.classLoadingCount+" classes");
                logger.println("Resource loading "+format(n,ch.resourceLoadingTime.get())+"ms, "+ch.resourceLoadingCount+" times");               
            }

            if(r==0)    return Result.SUCCESS;
View Full Code Here

Examples of io.netty.channel.Channel

      b.option(ChannelOption.MAX_MESSAGES_PER_READ, Integer.MAX_VALUE);
      b.childOption(ChannelOption.ALLOCATOR, new PooledByteBufAllocator(true));
      b.childOption(ChannelOption.SO_REUSEADDR, true);
      b.childOption(ChannelOption.MAX_MESSAGES_PER_READ, Integer.MAX_VALUE);

      Channel ch = b.bind(port).sync().channel();
      ch.closeFuture().sync();
  } finally {
      loupGroup.shutdownGracefully().sync();
  }
    }
View Full Code Here

Examples of it.geosolutions.imageio.matfile5.sas.SASTileMetadata.Channel

        // Envelope
        //
        // //
        final double longitude = metadata.getLongitude();
        final double latitude = metadata.getLatitude();
        final Channel channel = metadata.getChannel();
        final double orientation = metadata.getOrientation();
        final double xDim = metadata.getXPixelDim();
        final double yDim = metadata.getYPixelDim();
        AffineTransform gt = null;
        try {
View Full Code Here

Examples of jade.core.Channel

    // FIXME: There is no element in the IntrospectionOntology
    // corresponding to this event
  }

  public synchronized void addedMTP(MTPEvent ev) {
    Channel ch = ev.getChannel();
    ContainerID cid = ev.getPlace();
    String proto = ch.getProtocol();
    String address = ch.getAddress();

    // Generate a suitable AMS event
    AddedMTP amtp = new AddedMTP();
    amtp.setAddress(address);
    amtp.setProto(proto);
View Full Code Here

Examples of java.nio.channels.Channel

     * @throws java.io.IOException if there is an exception during IO
     */
    public static ChannelDescriptor open(String cwd, String path, ModeFlags flags, int perm, POSIX posix) throws FileNotFoundException, DirectoryAsFileException, FileExistsException, IOException {
        boolean fileCreated = false;
        if (path.equals("/dev/null") || path.equalsIgnoreCase("nul:") || path.equalsIgnoreCase("nul")) {
            Channel nullChannel = new NullChannel();
            // FIXME: don't use RubyIO for this
            return new ChannelDescriptor(nullChannel, RubyIO.getNewFileno(), flags, new FileDescriptor());
        } else if(path.startsWith("file:")) {
            String filePath = path.substring(5, path.indexOf("!"));
            String internalPath = path.substring(path.indexOf("!") + 2);
View Full Code Here

Examples of model.Channel

      if (saveForm.getChannelWithDeletePressed() != null) {
        saveForm.removeChannel(saveForm.getChannelWithDeletePressed());
        return "add";
      } else if (saveForm.getAddChannelButton() != null) {
        saveForm.getChannels().add(new Channel());
        return "add";
      } else {
        Unit units = saveForm.getUnit();
        units.addChannels(saveForm.getChannels());
        if (code != null && !code.isEmpty()) {
View Full Code Here

Examples of net.dromard.common.rss.feed.Channel

      Element element = (Element) feedNodes.item(f);
      rss.setVersion(element.getAttribute("version"));
      NodeList channelNodes = element.getElementsByTagName("channel");
      if (channelNodes.getLength() >= 1) {
        element = (Element) channelNodes.item(0);
        Channel channel = new Channel();
        channel.setTitle(getElementValue(element, "title"));
        channel.setDescription(getElementValue(element, "description"));
        channel.setLink(getElementValue(element, "link"));
        channel.setAuthor(getElementValue(element, "author"));
       
        NodeList items = element.getElementsByTagName("item");
        for (int i = 0; i < items.getLength(); i++) {
          Element itemElmt = ((Element) items.item(i));
          Item item = new Item();
          item.setAuthor(getElementValue(itemElmt, "author"));
          item.setCategory(getElementValue(itemElmt, "category"));
          item.setDescription(getElementValue(itemElmt, "description"));
          item.setLink(getElementValue(itemElmt, "link"));
          item.setGuid(getElementValue(itemElmt, "guid"));
          item.setPublished(getElementValue(itemElmt, "pubDate"));
          item.setTitle(getElementValue(itemElmt, "title"));
          NodeList enclosureNode = itemElmt.getElementsByTagName(Enclosure.ENCLOSURE);
          if (enclosureNode.getLength() == 1) {
            Enclosure enclosure = new Enclosure();
            Element enclosureElmt = ((Element) enclosureNode.item(0));
            String length = enclosureElmt.getAttribute(Enclosure.LENGTH);
            if (length.length() > 0) {
              try {
                enclosure.setLength(Integer.parseInt(length));
              } catch (NumberFormatException e) {
              }
            }
            enclosure.setType(enclosureElmt.getAttribute(Enclosure.TYPE));
            enclosure.setUrl(enclosureElmt.getAttribute(Enclosure.URL));
            item.setEnclosure(enclosure);
          }
          channel.addItem(item);
        }

        rss.setChannel(channel);
      }
    }
View Full Code Here

Examples of net.feed_the_beast.launcher.json.launcher.Channel

    private void loadInfo () {
        try {
            Document doc = AppUtils.downloadXML(new URL(DownloadUtils.getStaticCreeperhostLink("newversion.xml")));
            Update upd = JsonFactory.getUpdate("net.ftb:launcher:beta@json", Locations.FTBMAVENFULL);
            if (upd.getPrimary().equals("beta")) {
                Channel beta = upd.getBeta();
                this.betaJenk = beta.getJenkins();
                int beta_ = this.beta = beta.getVersion();
                betaStr += beta_ / (100 * 100) + ".";
                beta_ = beta_ % (100 * 100);
                betaStr += beta_ / (100) + ".";
                beta_ = beta_ % 100;
                betaStr += beta_;
                betaAddress = beta.getFile().getUrl() + beta.getFile().getPath();
                if (beta.getFile().checksums != null) {
                    betaHash = beta.getFile().checksums;
                }
                if (upd.getRelease() != null) {
                    //TODO add code here to handle if the releases are in maven!!
                }
            }
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.