Examples of ServerConfiguration


Examples of ca.uhn.hl7v2.app.ServerConfiguration

        setLowerLayerProtocol(new MinLowerLayerProtocol(false));
        setSocketFactory(new StandardSocketFactory());
        setValidationExceptionHandlerFactory(new ReportingValidationExceptionHandler(true));
        setProfileStore(ProfileStoreFactory.getProfileStore());
        setCodeStoreRegistry(new DefaultCodeStoreRegistry());
        setServerConfiguration(new ServerConfiguration());
    }
View Full Code Here

Examples of com.codingcrayons.aspectfaces.plugins.j2ee.configuration.ServerConfiguration

  @Test
  public void testAddConfigurationByUrl() {
    try {
      String name = "config";
      Configuration configuration = new ServerConfiguration(name, null);
      AFWeaver.addConfiguration(configuration, new URL("127.0.0.1"), true, true);
      assertNotNull(ConfigurationStorage.getInstance().getConfiguration(name));
    } catch (java.net.MalformedURLException e) {
      //skip an exception for testing
    } catch (Exception e) {
View Full Code Here

Examples of com.db4o.cs.config.ServerConfiguration

    {
      logger.log(Level.FINE, "Opening connection to db4o database...");
      myself = new DataStore();
      // accessLocalServer
      // Please see Wiki for more information on the ServerConfiguration.
      ServerConfiguration config = Db4oClientServer.newServerConfiguration();
      config.common().reflectWith(new JdkReflector(Thread.currentThread().getContextClassLoader()));
      config.common().objectClass(User.class).storeTransientFields(true); // Enables data persistence for passwords

      //Connect to the Database
      server = Db4oClientServer.openServer(config, WPI_TNG_DB, PORT);
      server.grantAccess(DB4oUser,DB4oPass);
View Full Code Here

Examples of com.googlecode.utterlyidle.ServerConfiguration

    private final Integer port;

    public RestConsole(Console console, Integer port) throws Exception {
        super(console);

        ServerConfiguration configuration = defaultConfiguration().port(port);
        RestConsoleApplication application = new RestConsoleApplication(basePath("/"), this);

        this.server = new RestServer(application, configuration);
        this.port = port;
    }
View Full Code Here

Examples of com.mindtree.techworks.infix.pluginscommon.test.ssh.beans.ServerConfiguration

    marshall(platformConfig, "platform.xml");
  }

  private void createServerConfig () throws IOException {
    ServerConfiguration serverConfig = new ServerConfiguration();

    ServerConfiguration.ServerHostKey hostKey = new ServerConfiguration.ServerHostKey();
    hostKey.setPrivateKeyFile(configDir.getRoot().getAbsolutePath().replace('\\', '/') + "/test-dsa.key");
    serverConfig.addServerHostKey(hostKey);

    serverConfig.setPort(port);
    serverConfig.setListenAddress(bindAddress);
    serverConfig.setMaxConnections(3);
    serverConfig.addAllowedAuthentication("password");
    serverConfig.addAllowedAuthentication("keyboard-interactive");

    ServerConfiguration.Subsystem subsystem = new ServerConfiguration.Subsystem();
    subsystem.setName("sftp");
    subsystem.setType("class");
    subsystem.setProvider(com.sshtools.daemon.sftp.SftpSubsystemServer.class.getName());
    serverConfig.addSubsystem(subsystem);

    marshall(serverConfig, "server.xml");
  }
View Full Code Here

Examples of com.sun.enterprise.ServerConfiguration

   
    private static ClientSecurityContext generateDefaultSecurityContext() {
  final String PRINCIPAL_NAME = "auth.default.principal.name";
  final String PRINCIPAL_PASS = "auth.default.principal.password";
 
  ServerConfiguration config = ServerConfiguration.getConfiguration();
  String username = config.getProperty(PRINCIPAL_NAME, "guest");
  String password = config.getProperty(PRINCIPAL_PASS, "guest123");
 
        synchronized (ClientSecurityContext.class) {
            // login & all that stuff..
            try {
                final Subject subject = new Subject();
View Full Code Here

Examples of net.canarymod.config.ServerConfiguration

    private boolean createServerProperties(String worldname) {

        PropertiesFile props = new PropertiesFile("vanilla/server.properties");

        ServerConfiguration server = Configuration.getServerConfig();
        WorldConfiguration world = Configuration.getWorldConfig(worldname);

        props.setBoolean("allow-flight", world.isFlightAllowed());
        props.setBoolean("allow-nether", world.isNetherAllowed());
        props.setInt("difficulty", world.getDifficulty().getId());
        props.setBoolean("enable-query", server.isQueryEnabled());
        props.setBoolean("enable-rcon", server.isRconEnabled());
        props.setInt("gamemode", world.getGameMode().getId());
        props.setBoolean("generate-structures", world.generatesStructures());
        props.setString("level-name", world.getWorldName());
        props.setString("level-seed", world.getWorldSeed());
        props.setString("level-type", world.getWorldType().toString());
        props.setInt("max-build-height", world.getMaxBuildHeight());
        props.setInt("max-players", server.getMaxPlayers());
        props.setString("motd", server.getMotd());
        props.setBoolean("online-mode", server.isOnlineMode());
        props.setBoolean("pvp", world.isPvpEnabled());
        props.setInt("query.port", server.getQueryPort());
        props.setString("rcon.password", server.getRconPassword());
        props.setInt("rcon.port", server.getRconPort());
        props.setString("server-ip", server.getBindIp());
        props.setInt("server-port", server.getPort());
        props.setBoolean("spawn-animals", world.canSpawnAnimals());
        props.setBoolean("spawn-monsters", world.canSpawnMonsters());
        props.setBoolean("spawn-npcs", world.canSpawnVillagers());
        props.setInt("view-distance", server.getViewDistance());
        props.setBoolean("white-list", false);

        props.save();

        return true;
View Full Code Here

Examples of net.jsunit.configuration.ServerConfiguration

    private void ensureTemporaryServerIsCreated() {
        //noinspection SynchronizeOnNonFinalField
        synchronized (blocker) {
            if (temporaryServer == null) {
                temporaryServer = serverFactory.create(new ServerConfiguration(source));
            }
        }
    }
View Full Code Here

Examples of org.apache.abdera.protocol.server.provider.managed.ServerConfiguration

    public Feed getFeed() throws Exception {
        SqlMapClient client = getSqlMapClient();
        String queryId = config.getFeedId() + "-get-feed";
        List<Map<String, Object>> rows = client.queryForList(queryId);
        Feed feed = createFeed();
        ServerConfiguration serverConfig = config.getServerConfiguration();
        if (serverConfig.getFeedNamespacePrefix() != null && serverConfig.getFeedNamespacePrefix().length() > 0) {
            feed.declareNS(serverConfig.getFeedNamespace(), serverConfig.getFeedNamespacePrefix());
        }
        for (Map<String, Object> row : rows)
            createEntryFromRow(feed, row);
        return feed;
    }
View Full Code Here

Examples of org.apache.accumulo.server.conf.ServerConfiguration

 
  public static void main(String[] args) throws UnknownHostException, IOException {
    SecurityUtil.serverLogin();
   
    Instance instance = HdfsZooInstance.getInstance();
    ServerConfiguration serverConf = new ServerConfiguration(instance);
    final FileSystem fs = FileUtil.getFileSystem(CachedConfiguration.getInstance(), serverConf.getConfiguration());
    Accumulo.init(fs, serverConf, "gc");
    String address = "localhost";
    SimpleGarbageCollector gc = new SimpleGarbageCollector();
    Opts opts = new Opts();
    opts.parseArgs(SimpleGarbageCollector.class.getName(), args);
   
    if (opts.safeMode)
      gc.setSafeMode();
    if (opts.offline)
      gc.setOffline();
    if (opts.verbose)
      gc.setVerbose();
    if (opts.address != null)
      address = opts.address;

    String hostname = address;

    // Catch a few edge cases where we might get a non-useful address
    if ("0.0.0.0".equals(address)) {
      // Get a better hostname for this system
      hostname = InetAddress.getLocalHost().getHostName();
    }
   
    gc.init(fs, instance, SecurityConstants.getSystemCredentials(), serverConf.getConfiguration().getBoolean(Property.GC_TRASH_IGNORE));
    Accumulo.enableTracing(hostname, "gc");
    gc.run(hostname);
  }
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.