Examples of GatewayConfigImpl


Examples of org.apache.hadoop.gateway.config.impl.GatewayConfigImpl

    public static final String DESC =
        "Redeploys one or all of the gateway's clusters (a.k.a topologies).";

    @Override
    public void execute() throws Exception {
      GatewayConfig config = new GatewayConfigImpl();
      GatewayServer.redeployTopologies( config, cluster );
    }
View Full Code Here

Examples of org.apache.hadoop.gateway.config.impl.GatewayConfigImpl

public class DeploymentFactoryTest {

  @Test
  public void testEmptyTopology() throws IOException, SAXException, ParserConfigurationException {
    GatewayConfig config = new GatewayConfigImpl();

    Topology topology = new Topology();
    topology.setName( "test-cluster" );

    WebArchive war = DeploymentFactory.createDeployment( config, topology );
View Full Code Here

Examples of org.apache.hadoop.gateway.config.impl.GatewayConfigImpl

  }

  @Test
  public void testFullConfig() {
    System.setProperty( GatewayConfigImpl.GATEWAY_HOME_VAR, getHomeDirName( "conf-full/conf/gateway-default.xml" ) );
    GatewayConfig config = new GatewayConfigImpl();
    assertThat( config.getGatewayPort(), is( 7777 ) );
    //assertThat( config.getShiroConfigFile(), is( "full-shiro.ini") );
  }
View Full Code Here

Examples of org.apache.hadoop.gateway.config.impl.GatewayConfigImpl

  }

  @Test
  public void testSiteConfig() {
    System.setProperty( GatewayConfigImpl.GATEWAY_HOME_VAR, getHomeDirName( "conf-site/conf/gateway-site.xml" ) );
    GatewayConfig config = new GatewayConfigImpl();
    assertThat( config.getGatewayPort(), is( 5555 ) );
    //assertThat( config.getShiroConfigFile(), is( "site-shiro.ini") );
  }
View Full Code Here

Examples of org.apache.hadoop.gateway.config.impl.GatewayConfigImpl

  }

  @Test
  public void testEmptyConfig() {
    System.setProperty( GatewayConfigImpl.GATEWAY_HOME_VAR, getHomeDirName( "conf-empty/conf/empty" ) );
    GatewayConfig config = new GatewayConfigImpl();
    assertThat( config.getGatewayPort(), is( 8888 ) );
    //assertThat( config.getShiroConfigFile(), is( "shiro.ini") );
  }
View Full Code Here

Examples of org.apache.hadoop.gateway.config.impl.GatewayConfigImpl

        System.out.println( res.gatewayVersionMessage(
            buildProperties.getProperty( "build.version", "unknown" ),
            buildProperties.getProperty( "build.hash", "unknown" ) ) );
      } else {
        services = new DefaultGatewayServices();
        GatewayConfig config = new GatewayConfigImpl();
        configureLogging( config );
        Map<String,String> options = new HashMap<String,String>();
        options.put("persist-master", Boolean.toString(cmd.hasOption("persist-master")));
        services.init(config, options);
        startGateway( config, services );
View Full Code Here

Examples of org.apache.hadoop.gateway.config.impl.GatewayConfigImpl

public class DeploymentFactoryTest {

  @Test
  public void testEmptyTopology() throws IOException, SAXException, ParserConfigurationException {
    GatewayConfig config = new GatewayConfigImpl();

    Topology topology = new Topology();
    topology.setName( "test-cluster" );

    WebArchive war = DeploymentFactory.createDeployment( config, topology );
View Full Code Here

Examples of org.apache.hadoop.gateway.config.impl.GatewayConfigImpl

    assertThat( gateway, hasXPath( "/gateway" ) );
  }

  @Test
  public void testSimpleTopology() throws IOException, SAXException, ParserConfigurationException {
    GatewayConfig config = new GatewayConfigImpl();
    Topology topology = new Topology();
    topology.setName( "test-cluster" );
    Service service = new Service();
    service.setRole( "NAMENODE" );
    service.setUrl( new URL( "http://localhost:50070/webhdfs/v1" ) );
View Full Code Here

Examples of org.apache.hadoop.gateway.config.impl.GatewayConfigImpl

  GatewayServices getGatewayServices() {
    return services;
  }

  private void initializeServices(boolean persisting) throws ServiceLifecycleException {
    GatewayConfig config = new GatewayConfigImpl();
    Map<String,String> options = new HashMap<String,String>();
    options.put(GatewayCommandLine.PERSIST_LONG, Boolean.toString(persisting));
    if (master != null) {
      options.put("master", master);
    }
View Full Code Here

Examples of org.apache.hadoop.gateway.config.impl.GatewayConfigImpl

  * @param args
  * @throws Exception
  */
  public static void main(String[] args) throws Exception {
    PropertyConfigurator.configure( System.getProperty( "log4j.configuration" ) );
    int res = ToolRunner.run(new GatewayConfigImpl(), new KnoxCLI(), args);
    System.exit(res);
  }
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.