Examples of configuration()


Examples of com.ngdata.hbaseindexer.model.api.IndexerDefinitionBuilder.configuration()

        if (oldIndexerDef == null || oldIndexerDef.getIndexerComponentFactory() == null)
            builder.indexerComponentFactory(indexerComponentFactoryOption.value(options));

        byte[] indexerConf = getIndexerConf(options, indexerComponentFactoryOption, indexerConfOption, connectionParams);
        if (indexerConf != null)
            builder.configuration(indexerConf);

        String[] defaultBatchIndexCliArguments = getBatchIndexingCliArguments(options, defaultBatchIndexCliArgumentsOption);
        if (defaultBatchIndexCliArguments != null) {
            if (defaultBatchIndexCliArguments.length == 0) {
                builder.defaultBatchIndexCliArguments(null);
View Full Code Here

Examples of de.fuberlin.wiwiss.d2rq.map.Mapping.configuration()

    assertTrue(g.contains(Node.ANY, Node.ANY, Node.createLiteral("Hello World!")));
  }
 
  public void testGenerateEmptyGraphFromSimpleD2RQMapping() {
    Mapping m = MappingHelper.readFromTestFile("helpers/simple.ttl");
    m.configuration().setServeVocabulary(false);
    GraphD2RQ g = new GraphD2RQ(m);
    assertTrue(g.isEmpty());
  }
 
  public void testGenerateTripleFromSimpleD2RQMapping() {
View Full Code Here

Examples of javax.ws.rs.client.Client.configuration()

        }
    }

    private static Client createClient() {
        Client c = JerseyClientFactory.newClient();
        c.configuration()
            .register(new MultiPartFeature())
            .register(new CsrfProtectionFilter("CLI"))
            .register(new ActionReportJsonReader())
            .register(new ParameterMapFormWriter())
            .register(new PayloadPartProvider())
View Full Code Here

Examples of javax.ws.rs.client.WebTarget.configuration()

        // Make REST Request

        Client client2 = ClientFactory.newClient();
        RestUtil.initialize(client2);
        WebTarget target = client2.target(restURL);
        target.configuration().register(new HttpBasicAuthFilter(username, password));
        MultivaluedMap payLoad = new MultivaluedHashMap();
        payLoad.putSingle("remoteHostName", request.getRemoteHost());

        Response resp = target.request(RESPONSE_TYPE).post(Entity.entity(payLoad, MediaType.APPLICATION_FORM_URLENCODED), Response.class);
        RestResponse restResp = RestResponse.getRestResponse(resp);
View Full Code Here

Examples of javax.ws.rs.client.WebTarget.configuration()

        do {
            Metrix.event("doRestCommand() - about to create target");
            WebTarget target = createTarget(uri);
            Metrix.event("doRestCommand() - about to configure security");
            target.configuration().setProperty(ClientProperties.SSL_CONFIG, new SslConfig(new BasicHostnameVerifier(host), getSslContext()));
            /*
             * Any code that wants to trigger a retry will say so explicitly.
             */
            shouldTryCommandAgain = false;
            try {
View Full Code Here

Examples of javax.ws.rs.client.WebTarget.configuration()

                            new Object[]{user, ok(password) ? "<non-null>" : "<null>"});
                }
                final AuthenticationInfo authInfo = authenticationInfo();
                if (authInfo != null) {
                    HttpBasicAuthFilter besicAuth = new HttpBasicAuthFilter(authInfo.getUser(), authInfo.getPassword() == null ? "" : authInfo.getPassword());
                    target.configuration().register(besicAuth);
                }
                Metrix.event("doRestCommand() - about to prepare request builder");
                Builder request = target.request(acceptedResponseTypes);
                Metrix.event("doRestCommand() - about to add headers");
                if (authToken != null) {
View Full Code Here

Examples of model.Partie.configuration()

        vue.dispose();
      } else if (arg0.getActionCommand().equals("Nouvelle partie")) {
        Partie modele = new Partie();
        //colonne/nbredecouleur/essai///
        //  modele.configuration(4,5,6);
        modele.configuration();
        JeuGraphique vue = new JeuGraphique();
        vue.setModele(modele);

      }
View Full Code Here

Examples of org.apache.blur.thrift.generated.Blur.Iface.configuration()

public class PrintConfiguration {

  public static void main(String[] args) throws BlurException, TException, IOException {
    String connectionStr = args[0];
    Iface client = BlurClient.getClient(new Connection("localhost", 40020,10000));
    Map<String, String> map = new TreeMap<String, String>(client.configuration());
    for (Entry<String, String> e : map.entrySet()) {
      System.out.println(e.getKey() + " " + e.getValue());
    }
  }
}
View Full Code Here

Examples of org.apache.felix.ipojo.configuration.Instance.configuration()

        m_logger.log(Log.WARNING, instances.size() + " instances found in class " + classname);
        //Build and enqueue declaration
        for (Instance instance : instances) {
            DefaultInstanceDeclaration declaration = new DefaultInstanceDeclaration(bundle.getBundleContext(),
                    instance.factory(), instance.configuration());
            declaration.start();
            getComponentsAndInstances(bundle).m_instances.add(declaration);
        }
    }
View Full Code Here

Examples of org.apache.sis.internal.system.SupervisorMBean.configuration()

                    final JMXServiceURL url = new JMXServiceURL(path);
                    final JMXConnector jmxc = JMXConnectorFactory.connect(url);
                    try {
                        final MBeanServerConnection mbsc = jmxc.getMBeanServerConnection();
                        final SupervisorMBean bean = JMX.newMBeanProxy(mbsc, new ObjectName(Supervisor.NAME), SupervisorMBean.class);
                        configuration = bean.configuration().toString();
                    } finally {
                        jmxc.close();
                    }
                } catch (IOException e) {
                    error(Errors.format(Errors.Keys.CanNotConnectTo_1, path), e);
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.