Examples of toMap()


Examples of hudson.model.queue.MappingWorksheet.Mapping.toMap()

            Mapping m = Jenkins.getInstance().getQueue().getLoadBalancer().map(bi.task, worksheet);
            if (m==null)    return null;

            // figure out how many executors we need on each computer?
            Map<Computer,Integer> footprint = new HashMap<Computer, Integer>();
            for (Entry<WorkChunk, ExecutorChunk> e : m.toMap().entrySet()) {
                Computer c = e.getValue().computer;
                Integer v = footprint.get(c);
                if (v==null)    v = 0;
                v += e.getKey().size();
                footprint.put(c,v);
View Full Code Here

Examples of io.netty.channel.ChannelPipeline.toMap()

    public Map<String, ChannelHandler> getPipelineAsMap() {
        ChannelPipeline pipeline = this.pipeline;
        if (pipeline == null) {
            throw new IllegalStateException("pipelineFactory in use");
        }
        return pipeline.toMap();
    }

    /**
     * Dependency injection friendly convenience method for
     * {@link #setPipeline(ChannelPipeline)} which sets the default pipeline of
View Full Code Here

Examples of net.gleamynode.netty.channel.ChannelPipeline.toMap()

    public Map<String, ChannelHandler> getPipelineAsMap() {
        ChannelPipeline pipeline = this.pipeline;
        if (pipeline == null) {
            throw new IllegalStateException("pipelineFactory in use");
        }
        return pipeline.toMap();
    }

    public void setPipelineAsMap(Map<String, ChannelHandler> pipelineMap) {
        if (pipelineMap == null) {
            throw new NullPointerException("pipelineMap");
View Full Code Here

Examples of net.sourceforge.jrrd.DataChunk.toMap()

    try {
      rrd = new RRDatabase(rrdFile);
      // no period specified, so request the last 24 hours
      chunk = rrd.getData(ConsolidationFunctionType.AVERAGE);
      // retrieve the data for the first datasource
      Map<Date, Double> values = chunk.toMap(0);
            for(Map.Entry<Date, Double> entry : values.entrySet()) {
                Date index = entry.getKey();
                double v = entry.getValue();
                System.out.println("index: <" + index + ">, value <" + v + ">");
            }
View Full Code Here

Examples of oi.thekraken.grok.api.Match.toMap()

    gm.captures();
    assertEquals("{USER=r00t}", gm.toMap().toString());

    gm = g.match("guest");
    gm.captures();
    assertEquals("{USER=guest}", gm.toMap().toString());

    gm = g.match("guest1234");
    gm.captures();
    assertEquals("{USER=guest1234}", gm.toMap().toString());
View Full Code Here

Examples of org.apache.hbase.index.covered.update.IndexUpdateManager.toMap()

    if (LOG.isDebugEnabled()) {
      LOG.debug("Found index updates for Mutation: " + mutation + "\n" + updateMap);
    }

    return updateMap.toMap();
  }

  /**
   * Split the mutation into batches based on the timestamps of each keyvalue. We need to check each
   * key-value in the update to see if it matches the others. Generally, this will be the case, but
View Full Code Here

Examples of org.apache.ode.utils.NSContext.toMap()

        OMElement omElement = parent == null ? omf.createOMElement(src.getLocalName(),elns) :
        omf.createOMElement(src.getLocalName(),elns,parent);
       
        if (parent == null) {
            NSContext nscontext = DOMUtils.getMyNSContext(src);
            injectNamespaces(omElement,nscontext.toMap());
        } else {
            Map<String,String> nss = DOMUtils.getMyNamespaces(src);
            injectNamespaces(omElement, nss);
        }
       
View Full Code Here

Examples of org.apache.ode.utils.NSContext.toMap()

            else omElement.declareDefaultNamespace(src.getNamespaceURI());
        }
       
        if (parent == null) {
            NSContext nscontext = DOMUtils.getMyNSContext(src);
            injectNamespaces(omElement,nscontext.toMap());
        } else {
            Map<String,String> nss = DOMUtils.getMyNamespaces(src);
            injectNamespaces(omElement, nss);
        }
       
View Full Code Here

Examples of org.apache.ode.utils.NSContext.toMap()

            else omElement.declareDefaultNamespace(src.getNamespaceURI());
        }

        if (parent == null) {
            NSContext nscontext = DOMUtils.getMyNSContext(src);
            injectNamespaces(omElement,nscontext.toMap());
        } else {
            Map<String,String> nss = DOMUtils.getMyNamespaces(src);
            injectNamespaces(omElement, nss);
        }
View Full Code Here

Examples of org.apache.phoenix.hbase.index.covered.update.IndexUpdateManager.toMap()

    if (LOG.isDebugEnabled()) {
      LOG.debug("Found index updates for Mutation: " + mutation + "\n" + updateMap);
    }

    return updateMap.toMap();
  }

  /**
   * Split the mutation into batches based on the timestamps of each keyvalue. We need to check each
   * key-value in the update to see if it matches the others. Generally, this will be the case, but
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.