DistributedSystemConfigImpl implements DistributedSystemConfig { public LogConfig createLogConfig() { return new LogConfig() { @Override public int getLogLevel() { return LogLevel.getLogWriterLevel(DistributedSystemConfigImpl.this.getLogLevel()); } @Override public File getLogFile() { return new File(DistributedSystemConfigImpl.this.getLogFile()); } @Override public File getSecurityLogFile() { return null; } @Override public int getSecurityLogLevel() { return LogLevel.getLogWriterLevel(DistributedSystemConfigImpl.this.getLogLevel()); } @Override public int getLogFileSizeLimit() { return DistributedSystemConfigImpl.this.getLogFileSizeLimit(); } @Override public int getLogDiskSpaceLimit() { return DistributedSystemConfigImpl.this.getLogDiskSpaceLimit(); } @Override public String getName() { return DistributedSystemConfigImpl.this.getSystemName(); } @Override public String toLoggerString() { return DistributedSystemConfigImpl.this.toString(); } @Override public boolean isLoner() { return false; } }; } DistributedSystemConfigImpl(DistributionConfig distConfig, String remoteCommand); protected  DistributedSystemConfigImpl(); protected  DistributedSystemConfigImpl(Properties props); protected  DistributedSystemConfigImpl(Properties props, boolean ignoreGemFirePropsFile); InternalLogWriter getInternalLogWriter(); void setInternalLogWriter(InternalLogWriter logWriter); LogConfig createLogConfig(); StatisticsConfig createStatisticsConfig(); @Override String getEntityConfigXMLFile(); @Override void setEntityConfigXMLFile(String xmlFile); @Override String getSystemId(); @Override void setSystemId(String systemId); @Override String getMcastAddress(); @Override void setMcastAddress(String mcastAddress); @Override int getMcastPort(); @Override void setMcastPort(int mcastPort); @Override int getAckWaitThreshold(); @Override void setAckWaitThreshold(int seconds); @Override int getAckSevereAlertThreshold(); @Override void setAckSevereAlertThreshold(int seconds); @Override String getLocators(); @Override void setLocators(String locators); @Override String getMembershipPortRange(); @Override void setMembershipPortRange(String membershipPortRangeStr); @Override void setTcpPort(int port); @Override int getTcpPort(); @Override String getBindAddress(); @Override void setBindAddress(String bindAddress); @Override String getServerBindAddress(); @Override void setServerBindAddress(String bindAddress); @Override boolean getDisableTcp(); @Override void setDisableTcp(boolean flag); @Override boolean getDisableJmx(); @Override void setDisableJmx(boolean flag); @Override void setEnableNetworkPartitionDetection(boolean newValue); @Override boolean getEnableNetworkPartitionDetection(); @Override void setDisableAutoReconnect(boolean newValue); @Override boolean getDisableAutoReconnect(); @Override int getMemberTimeout(); @Override void setMemberTimeout(int value); @Override String getRemoteCommand(); @Override void setRemoteCommand(String remoteCommand); @Override String getSystemName(); @Override void setSystemName(final String systemName); @Override CacheServerConfig[] getCacheServerConfigs(); @Override CacheVmConfig[] getCacheVmConfigs(); @Override CacheServerConfig createCacheServerConfig(); @Override CacheVmConfig createCacheVmConfig(); @Override void removeCacheServerConfig(CacheServerConfig managerConfig); @Override void removeCacheVmConfig(CacheVmConfig managerConfig); @Override DistributionLocatorConfig[] getDistributionLocatorConfigs(); @Override DistributionLocatorConfig createDistributionLocatorConfig(); @Override void removeDistributionLocatorConfig(DistributionLocatorConfig config); static boolean validateBindAddress(String bindAddress); synchronized void configChanged(); @Override void addListener(ConfigListener listener); @Override void removeListener(ConfigListener listener); @Override boolean isSSLEnabled(); @Override void setSSLEnabled(boolean enabled); @Override String getSSLProtocols(); @Override void setSSLProtocols(String protocols); @Override String getSSLCiphers(); @Override void setSSLCiphers(String ciphers); @Override boolean isSSLAuthenticationRequired(); @Override void setSSLAuthenticationRequired(boolean authRequired); @Override Properties getSSLProperties(); @Override void setSSLProperties(Properties sslProperties); @Override void addSSLProperty(String key, String value); @Override void removeSSLProperty(String key); Properties getGfSecurityProperties(); @Override String getLogFile(); @Override void setLogFile(String logFile); @Override String getLogLevel(); @Override void setLogLevel(String logLevel); @Override int getLogDiskSpaceLimit(); @Override void setLogDiskSpaceLimit(int limit); @Override int getLogFileSizeLimit(); @Override void setLogFileSizeLimit(int limit); @Override int getRefreshInterval(); @Override void setRefreshInterval(int timeInSecs); @Override void validate(); @Override Object clone(); @Override String toString();  }
@Test public void createLogConfigCreatesLogConfigWithUsableSecurityLogLevel() { LogConfig logConfig = distributedSystemConfigImpl.createLogConfig(); int securityLogLevel = logConfig.getSecurityLogLevel(); assertThat(securityLogLevel).isNotEqualTo(0); assertThat(LogWriterLevel.find(securityLogLevel)).isInstanceOf(LogWriterLevel.class); }