Package freenet.config

Examples of freenet.config.SubConfig.register()


        ipDetector.ipDetectorManager.notifyPortChange(getPublicInterfacePorts());
      }
    });
    boolean opennetEnabled = opennetConfig.getBoolean("enabled");

    opennetConfig.register("maxOpennetPeers", OpennetManager.MAX_PEERS_FOR_SCALING, 1, true, false, "Node.maxOpennetPeers",
        "Node.maxOpennetPeersLong", new IntCallback() {
          @Override
          public Integer get() {
            return maxOpennetPeers;
          }
View Full Code Here


        Node.this.config.store();
      }

    });

    opennetConfig.register("acceptSeedConnections", false, 2, true, true, "Node.acceptSeedConnectionsShort", "Node.acceptSeedConnections", new BooleanCallback() {

      @Override
      public Boolean get() {
        return acceptSeedConnections;
      }
View Full Code Here

    this.alert = new UpdatedVersionAvailableUserAlert(this);
    alert.isValid(false);

    SubConfig updaterConfig = new SubConfig("node.updater", config);

    updaterConfig.register("enabled", true, 1, false, false,
        "NodeUpdateManager.enabled", "NodeUpdateManager.enabledLong",
        new UpdaterEnabledCallback());

    wasEnabledOnStartup = updaterConfig.getBoolean("enabled");
View Full Code Here

        new UpdaterEnabledCallback());

    wasEnabledOnStartup = updaterConfig.getBoolean("enabled");

    // is the auto-update allowed ?
    updaterConfig.register("autoupdate", false, 2, false, true,
        "NodeUpdateManager.installNewVersions",
        "NodeUpdateManager.installNewVersionsLong",
        new AutoUpdateAllowedCallback());
    isAutoUpdateAllowed = updaterConfig.getBoolean("autoupdate");
View Full Code Here

        "NodeUpdateManager.installNewVersions",
        "NodeUpdateManager.installNewVersionsLong",
        new AutoUpdateAllowedCallback());
    isAutoUpdateAllowed = updaterConfig.getBoolean("autoupdate");

    updaterConfig
        .register("URI", UPDATE_URI, 3, true, true,
            "NodeUpdateManager.updateURI",
            "NodeUpdateManager.updateURILong",
            new UpdateURICallback());
View Full Code Here

    if(updateURI.hasMetaStrings())
      throw new InvalidConfigValueException(l10n("updateURIMustHaveNoMetaStrings"));
    if(!updateURI.isUSK())
      throw new InvalidConfigValueException(l10n("updateURIMustBeAUSK"));

    updaterConfig.register("revocationURI", REVOCATION_URI, 4, true, false,
        "NodeUpdateManager.revocationURI",
        "NodeUpdateManager.revocationURILong",
        new UpdateRevocationURICallback());

    try {
View Full Code Here

        legacyFetcherCallback);
    transitionExtJarFetcher = new LegacyJarFetcher(transitionExtJarURI,
        transitionExtJarFile, node.clientCore,
        legacyFetcherCallback);

    updaterConfig.register("updateSeednodes", wasEnabledOnStartup, 6, true,
        true, "NodeUpdateManager.updateSeednodes",
        "NodeUpdateManager.updateSeednodesLong", new BooleanCallback() {

          @Override
          public Boolean get() {
View Full Code Here

        });

    updateSeednodes = updaterConfig.getBoolean("updateSeednodes");

    updaterConfig.register("updateInstallers", wasEnabledOnStartup, 6,
        true, true, "NodeUpdateManager.updateInstallers",
        "NodeUpdateManager.updateInstallersLong",
        new BooleanCallback() {

          @Override
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.