Examples of Scheme


Examples of cascading.scheme.Scheme

    private EsFactory factory = new EsFactory();

    @Test
    public void testCreateScheme() throws IOException {
        Scheme scheme = factory.createScheme(new Fields(), new Properties());
        assertThat(scheme, notNullValue());

        try {
            scheme.sourceConfInit(null, null, null);
            fail();
        } catch (UnsupportedOperationException ex) {
        }

        try {
            scheme.sinkConfInit(null, null, null);
            fail();
        } catch (UnsupportedOperationException ex) {
        }

        try {
            scheme.source(null, null);
            fail();
        } catch (UnsupportedOperationException ex) {
        }
        try {
            scheme.sink(null, null);
            fail();
        } catch (UnsupportedOperationException ex) {
        }

    }
View Full Code Here

Examples of cascading.scheme.Scheme

    @Test
    public void testCreateTap() {
        Fields fl = new Fields();
        Properties props = new Properties();

        Scheme scheme = factory.createScheme(fl, props);
        Tap tap = factory.createTap(scheme, "somePath", SinkMode.KEEP, props);
        assertThat(tap, notNullValue());
        assertThat(tap.getClass().getName(), containsString("HadoopTap"));
    }
View Full Code Here

Examples of com.cloud.network.rules.LoadBalancerContainer.Scheme

        Long id = cmd.getId();
        String name = cmd.getLoadBalancerRuleName();
        String ip = cmd.getSourceIp();
        Long ipNtwkId = cmd.getSourceIpNetworkId();
        String keyword = cmd.getKeyword();
        Scheme scheme = cmd.getScheme();
        Long networkId = cmd.getNetworkId();
       
        Map<String, String> tags = cmd.getTags();

        Account caller = UserContext.current().getCaller();
View Full Code Here

Examples of com.google.appengine.api.datastore.IMHandle.Scheme

    EvaluationResult r0 = ops.get(0).evaluate(record);
    EvaluationResult r1 = ops.get(1).evaluate(record);
   
    if (r0.getPayload() instanceof String && r1.getPayload() instanceof String) {
      try {
        Scheme scheme = Scheme.valueOf((String) r0.getPayload());
        IMHandle val = new IMHandle(scheme, (String)r1.getPayload());
        return new EvaluationResult(val, r0, r1);
      } catch (IllegalArgumentException e) {
        // input protocol does not match enum Scheme
        return r0.withWarning(ErrorCode.W142);
View Full Code Here

Examples of com.google.dataconnector.registration.v4.ResourceRuleUrlUtil.Scheme

    super.setUp();
  }

  public void testGetSchemeInUrlFromHttpUrl() {
    try {
      Scheme scheme = new ResourceRuleUrlUtil().getSchemeInUrl(constructUrl(Scheme.HTTP,
          TEST_HOST, TEST_PORT));
      assertTrue(scheme == Scheme.HTTP);
    } catch (ResourceUrlException e) {
      fail("unexpected exception " + e.getMessage());
    }
View Full Code Here

Examples of engine.Scheme

   *
   * @param destinationBoard
   * @return the scheme with generated blocks
   */
  public static Scheme generateBlocks(Board destinationBoard) {
    Scheme s = new Scheme(new Board(destinationBoard));
    int mix = rand.nextInt(NUM_COMBINATIONS);
    mix = COMBINATION_2H;
    generateBlock(mix, s);
    return s;
  }
View Full Code Here

Examples of org.apache.abdera.ext.serializer.annotation.Scheme

            Object value = eval(accessor, source);
            if (value != null)
                scheme = toString(value);
        }
        if (scheme == null) {
            Scheme _scheme = objectContext.getAnnotation(Scheme.class);
            if (_scheme != null && !_scheme.value().equals(DEFAULT)) {
                scheme = _scheme.value();
            }
        }
        if (scheme == null && _category != null && !_category.scheme().equals(DEFAULT)) {
            scheme = _category.scheme();
        }
View Full Code Here

Examples of org.apache.abdera.i18n.iri.Scheme

    int port,
    String path,
    String query,
    String fragment) {
      SchemeRegistry reg = SchemeRegistry.getInstance();
      Scheme _scheme = reg.getScheme(scheme);
      StringBuffer buf = new StringBuffer();
      buildAuthority(buf,userinfo, host, port);
      String authority = (buf.length()!=0)?buf.toString():null;
      init(_scheme,scheme,authority,userinfo,
        host,port,path,query,fragment);
View Full Code Here

Examples of org.apache.hadoop.gateway.util.urltemplate.Scheme

      results = new ArrayList<String>( parameters.size() );
      for( String parameter : parameters ) {
        String url = lookupServiceUrl( parameter );
        if( url != null && !url.equals( parameter ) ) {
          Template template = Parser.parse( url );
          Scheme scheme = template.getScheme();
          if( scheme != null ) {
            parameter = scheme.getFirstValue().getPattern();
          }
        }
        results.add( parameter );
      }
    }
View Full Code Here

Examples of org.apache.http.Scheme

        if (this.tunneltarget != null) {
            throw new IllegalStateException("Secure tunnel to " +
                    this.tunneltarget + " is already active");
        }
        assertOpen();
        Scheme protocol = targetHost.getScheme();
        SocketFactory socketfactory = protocol.getSocketFactory();
        if (socketfactory instanceof SecureSocketFactory) {
            Socket socket = ((SecureSocketFactory)socketfactory)
                .createSocket(
                    this.socket,
                    targetHost.getHostName(),
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.