Examples of Source


Examples of org.apache.cocoon.environment.Source

                        XMLResourceBundleFactory.ConfigurationKeys.ROOT_DIRECTORY,
                        "location"
                );

        debug( "catalog location:" + catalogueLocation );
        Source source = resolver.resolve( catalogueLocation );
        String systemId = source.getSystemId();
        if ( !systemId.startsWith( FILE ) ) {
            throw new ResourceNotFoundException( systemId + " does not denote a directory" );
        }
        debug( "catalog directory:" + systemId );
        dirConf.setValue( systemId );
View Full Code Here

Examples of org.apache.crunch.Source

          // Add this to the set of output assignments
          for (Target t : outputs.get(pcollect)) {
            assignments.put(t, e.getValue());
          }
        } else {
          Source source = e.getKey().getSource();
          if (source != null && source instanceof Target) {
            JobPrototype current = e.getValue();
            Collection<JobPrototype> parentJobPrototypes = previousStages.get((Target) source);
            if (parentJobPrototypes != null) {
              for (JobPrototype parentJobProto : parentJobPrototypes) {
View Full Code Here

Examples of org.apache.cxf.ws.rm.Source

        sequence.getIdentifier();
        EasyMock.expectLastCall().andReturn(id).anyTimes();
        id.getValue();
        EasyMock.expectLastCall().andReturn(sid).anyTimes();
        identifiers.add(id);
        Source source = createMock(Source.class);
        sequence.getSource();
        EasyMock.expectLastCall().andReturn(source).anyTimes();
        source.getReliableEndpoint();
        EasyMock.expectLastCall().andReturn(endpoint).anyTimes();
        boolean includesAcked = false;
        for (int i = 0; isAcked != null && i < isAcked.length; i++) {
            sequence.isAcknowledged(messageNumbers[i]);
            EasyMock.expectLastCall().andReturn(isAcked[i]);
View Full Code Here

Examples of org.apache.excalibur.source.Source

                for (Iterator i = this.attachmentList.iterator(); i.hasNext();) {
                    a = (Attachment) i.next();
                    DataSource ds = null;
                    if (a.isURL) {
                        String name = (String) a.getObject();
                        Source src = resolver.resolveURI(name);
                        sourcesList.add(src);
                        if (src.exists()) {
                            ds = new SourceDataSource(
                                    src,
                                    a.getType(src.getMimeType()),
                                    a.getName(name.substring(name.lastIndexOf('/') + 1)));
                        }
                    } else {
                        if (a.getObject() instanceof Part) {
                            Part part = (Part) a.getObject();
View Full Code Here

Examples of org.apache.felix.scrplugin.Source

            scanner.addDefaultExcludes();

            scanner.scan();

            for ( final String fileName : scanner.getIncludedFiles() ) {
                files.add( new Source() {

                    public File getFile() {
                        return new File(project.getBuild().getOutputDirectory(), fileName);
                    }
View Full Code Here

Examples of org.apache.flume.Source

  public void testLifecycle() throws LifecycleException, InterruptedException {

    Channel channel = new MemoryChannel();
    Configurables.configure(channel, new Context());

    Source generatorSource = new SequenceGeneratorSource();
    List<Channel> channels = new ArrayList<Channel>();
    channels.add(channel);

    ChannelSelector rcs = new ReplicatingChannelSelector();
    rcs.setChannels(channels);

    generatorSource.setChannelProcessor(new ChannelProcessor(rcs));

    NullSink nullSink = new NullSink();
    nullSink.configure(new Context());
    nullSink.setChannel(channel);
View Full Code Here

Examples of org.apache.hadoop.hdfs.server.balancer.Balancer.Source

    }

    /** Updates the plan with all pairs of nodes from this bucket which need to be connected */
    public void updatePlan() {
      while (!this.sources.isEmpty() && !this.targets.isEmpty()) {
        Source source = this.sources.poll();
        Target target = this.targets.poll();
        if (!wasUrgent(source) && !wasUrgent(target)) {
          // Due to ordering of DataNodes we can skip the rest
          break;
        }
        long size = moveSize(source, target);
        if (size > 0) {
          scheduleTask(source, size, target);
        }
        if (source.getAvailableMoveSize() > 0) {
          this.sources.add(source);
        }
        if (target.getAvailableMoveSize() > 0) {
          this.targets.add(target);
        }
View Full Code Here

Examples of org.apache.jackrabbit.core.query.jsr283.qom.Source

        assertEquals("Wrong size of orderings", 1, qom.getOrderings().length);
        assertEquals("Wrong size of columns", 1, qom.getColumns().length);
    }

    public void testCreateQueryFromSource() throws RepositoryException {
        Source selector = qomFactory.selector(testNodeType);
        QueryObjectModel qom = qomFactory.createQuery(selector, null, null, null);
        assertTrue("Not a selector source", qom.getSource() instanceof Selector);
        assertNull("Constraint must be null", qom.getConstraint());
        assertEquals("Wrong size of orderings", 0, qom.getOrderings().length);
        assertEquals("Wrong size of columns", 0, qom.getColumns().length);
View Full Code Here

Examples of org.apache.jackrabbit.spi.commons.query.jsr283.qom.Source

        bindVariables = new HashMap();
        read();
        read("SELECT");
        ArrayList list = parseColumns();
        read("FROM");
        Source source = parseSource();
        Column[] columnArray = resolveColumns(list);
        Constraint constraint = null;
        if (readIf("WHERE")) {
            constraint = parseConstraint();
        }
View Full Code Here

Examples of org.apache.jk.ant.Source

    /** Remove all generated files, cleanup
     */
    public void removeOFiles( Vector srcList ) {
        for (int i = 0; i < srcList.size(); i++) {
            //            log( "Checking " + (Source)srcList.elementAt(i));
            Source source=(Source)srcList.elementAt(i);
      String targetNA[]=getTargetFiles(source);
      if( targetNA==null )
    continue;
            String targetDir=source.getPackage();
            File f1=new File( buildDir, targetDir );
            for( int j=0; j<targetNA.length; j++ ) {
                File target=new File( f1, targetNA[j] );
                // Check the dependency
                if( target.exists() ) {
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.