Examples of ServerConfig


Examples of net.sf.pipet.server.ServerConfig

    return null;
  }
 
  public static void main(String[] args) {

    ServerConfig cfg = null;
   
    for (int i=0 ; i<args.length ; i++)
    {
      if (args[i].equals("--help"))
        printHelp();
View Full Code Here

Examples of netflix.karyon.transport.AbstractServerModule.ServerConfig

        }
    }

    @Inject
    public void setInjector(Injector injector) {
        ServerConfig config = injector.getInstance(serverConfigKey);

        ConnectionHandler<I, O> connectionHandler = injector.getInstance(connectionHandlerKey);

        ServerBuilder<I, O> builder = RxNetty.newTcpServerBuilder(config.getPort(), connectionHandler);

        if (injector.getExistingBinding(pipelineConfiguratorKey) != null) {
            builder.appendPipelineConfigurator(injector.getInstance(pipelineConfiguratorKey));
        }
View Full Code Here

Examples of org.apache.cxf.transport.jms.ServerConfig

        address = endpointInfo.getTraversedExtensor(address, AddressType.class);
        clientConfig = endpointInfo.getTraversedExtensor(new ClientConfig(), ClientConfig.class);
        runtimePolicy = endpointInfo.getTraversedExtensor(new ClientBehaviorPolicyType(),
                                                          ClientBehaviorPolicyType.class);
        serverConfig = endpointInfo.getTraversedExtensor(new ServerConfig(), ServerConfig.class);
        sessionPool = endpointInfo.getTraversedExtensor(new SessionPoolType(),
                                                        SessionPoolType.class);
        serverBehavior = endpointInfo.getTraversedExtensor(new ServerBehaviorPolicyType(),
                                                           ServerBehaviorPolicyType.class);
        String name = endpointInfo.getName() == null ? null : endpointInfo.getName().toString()
View Full Code Here

Examples of org.apache.jena.fuseki.server.ServerConfig

            Fuseki.configLog.warn("No such directory for static content: "+staticContentDir) ;
       
        if ( jettyConfigFile != null )
            Fuseki.configLog.info("Jetty configuration: "+jettyConfigFile) ;
       
        ServerConfig serverConfig ;
       
        if ( fusekiConfigFile != null )
        {
            Fuseki.configLog.info("Configuration file: "+fusekiConfigFile) ;
            serverConfig = FusekiConfig.configure(fusekiConfigFile) ;
View Full Code Here

Examples of org.apache.pluto.util.install.ServerConfig

        }
        return list;
    }

    protected ServerConfig getServerConfig() {
        ServerConfig config = new ServerConfig();
        config.setDomain(domain);
        config.setHost(host);
        config.setPort(port);
        config.setServer(server);
        return config;
    }
View Full Code Here

Examples of org.apache.zookeeper.server.ServerConfig

      final TestZookeeperServerIntern server = new TestZookeeperServerIntern();
      try {
         QuorumPeerConfig qpConfig = new QuorumPeerConfig();
         qpConfig.parseProperties(zkConfig);
         final ServerConfig sConfig = new ServerConfig();
         sConfig.readFrom(qpConfig);
        
         Thread t = new Thread(new Runnable() {
        
            @Override
            public void run()  {  try { server.runFromConfig(sConfig); } catch(IOException ioe ) { logger.error(MarkerFactory.getMarker("FATAL"), "", ioe); fail("can't start zookeeper"); } }
View Full Code Here

Examples of org.apache.zookeeper.server.ServerConfig

    if (zkConfig.isDistributed()) {
      QuorumPeerMain qp = new QuorumPeerMain();
      qp.runFromConfig(zkConfig);
    } else {
      ZooKeeperServerMain zk = new ZooKeeperServerMain();
      ServerConfig serverConfig = new ServerConfig();
      serverConfig.readFrom(zkConfig);
      zk.runFromConfig(serverConfig);
    }
  }
View Full Code Here

Examples of org.apache.zookeeper.server.ServerConfig

        final ManagedService.MyZooKeeperServerMain zkMain =
            EasyMock.createMock(ManagedService.MyZooKeeperServerMain.class);
        zkMain.runFromConfig((ServerConfig) EasyMock.anyObject());
        EasyMock.expectLastCall().andAnswer(new IAnswer<Object>() {
            public Object answer() throws Throwable {
                ServerConfig sc = (ServerConfig) EasyMock.getCurrentArguments()[0];
                assertEquals(new File(tempDir, "zkdata").getCanonicalFile().toString(),
                    sc.getDataDir());
                assertEquals(1234, sc.getClientPort());
                assertEquals(2000, sc.getTickTime());
                return null;
            }
        });
        EasyMock.replay(zkMain);      
       
View Full Code Here

Examples of org.apache.zookeeper.server.ServerConfig

    if (zkConfig.isDistributed()) {
      QuorumPeerMain qp = new QuorumPeerMain();
      qp.runFromConfig(zkConfig);
    } else {
      ZooKeeperServerMain zk = new ZooKeeperServerMain();
      ServerConfig serverConfig = new ServerConfig();
      serverConfig.readFrom(zkConfig);
      zk.runFromConfig(serverConfig);
    }
  }
View Full Code Here

Examples of org.apache.zookeeper.server.ServerConfig

    zkConfProps.setProperty("clientPort", new Integer(zkClientPort).toString());
    zkConfProps.setProperty("maxClientCnxns", "30");
    zkConfProps.store(new FileOutputStream(zkConfFile), "");

    // create config object
    ServerConfig zkConf = new ServerConfig();
    zkConf.parse(ZK_CONF_FILE);

    return zkConf;
  }
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.