Exemple #1
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Override public java.util.Map<String,String> validate(@Nonnull Config config, @Nonnull Log log) throws org.neo4j.graphdb.config.InvalidSettingException
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
        public override IDictionary <string, string> Validate(Config config, Log log)
        {
            // Make sure mode is HA
            EnterpriseEditionSettings.Mode mode = config.get(EnterpriseEditionSettings.mode);
            if (mode.Equals(EnterpriseEditionSettings.Mode.HA) || mode.Equals(EnterpriseEditionSettings.Mode.ARBITER))
            {
                ValidateServerId(config);
                ValidateInitialHosts(config);
            }

            return(Collections.emptyMap());
        }
Exemple #2
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Override public java.util.Map<String,String> validate(@Nonnull Config config, @Nonnull Log log) throws org.neo4j.graphdb.config.InvalidSettingException
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
        public override IDictionary <string, string> Validate(Config config, Log log)
        {
            // Make sure mode is CC
            EnterpriseEditionSettings.Mode mode = config.get(EnterpriseEditionSettings.mode);
            if (mode.Equals(EnterpriseEditionSettings.Mode.CORE) || mode.Equals(EnterpriseEditionSettings.Mode.READ_REPLICA))
            {
                ValidateInitialDiscoveryMembers(config);
                ValidateBoltConnector(config);
                ValidateLoadBalancing(config, log);
                ValidateDeclaredClusterSizes(config);
            }

            return(Collections.emptyMap());
        }