Package org.graylog2
Class Configuration
java.lang.Object
org.graylog2.configuration.PathConfiguration
org.graylog2.plugin.BaseConfiguration
org.graylog2.Configuration
Helper class to hold configuration of Graylog
-
Nested Class Summary
-
Field Summary
Fields inherited from class org.graylog2.plugin.BaseConfiguration
shutdownTimeout
Fields inherited from class org.graylog2.configuration.PathConfiguration
ALLOWED_AUXILIARY_PATHS, DEFAULT_BIN_DIR, DEFAULT_DATA_DIR, DEFAULT_PLUGIN_DIR
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Deprecated.boolean
com.github.joschi.jadconfig.util.Duration
Deprecated.int
com.github.joschi.jadconfig.util.Duration
com.github.joschi.jadconfig.util.Duration
com.github.joschi.jadconfig.util.Duration
int
int
int
int
int
int
long
long
int
long
org.joda.time.DateTimeZone
boolean
int
int
Deprecated.Use getStaleLeaderTimeout insteadint
long
int
boolean
boolean
boolean
boolean
isCloud()
boolean
boolean
isLeader()
Returns the configured leader status.boolean
isMaster()
Deprecated.UseisLeader()
instead.boolean
The root user is disabled if theRootAccountRealm
is deactivated.boolean
boolean
void
setIsLeader
(boolean is) We should remove this method after refactoringStaticLeaderElectionService
andServer
so that they don't need this to communicate demotion from leader to follower anymore.void
setIsMaster
(boolean is) Deprecated.UsesetIsLeader(boolean)
insteadvoid
void
void
Methods inherited from class org.graylog2.plugin.BaseConfiguration
getAsyncEventbusProcessors, getHttpConnectTimeout, getHttpNonProxyHostsPattern, getHttpProxyUri, getHttpReadTimeout, getHttpWriteTimeout, getInputbufferProcessors, getInputBufferRingSize, getInputBufferWaitStrategy, getInstallationSource, getMessageJournalMode, getProcessBufferProcessors, getProcessorWaitStrategy, getRingSize, getShutdownTimeout, getUdpRecvBufferSizes, isDisableNativeSystemStatsCollector, isMessageJournalEnabled, isMessageRecordingsEnabled, setMessageJournalEnabled, validateJournalMode
Methods inherited from class org.graylog2.configuration.PathConfiguration
getAllowedAuxiliaryPaths, getBinDir, getDataDir, getNativeLibDir, getPluginDir
-
Constructor Details
-
Configuration
public Configuration()
-
-
Method Details
-
maintainsStreamAwareFieldTypes
public boolean maintainsStreamAwareFieldTypes() -
isMaster
Deprecated.UseisLeader()
instead. -
isLeader
public boolean isLeader()Returns the configured leader status. This is only valid for static leader election. You should probably useLeaderElectionService.isLeader()
instead. -
setIsMaster
Deprecated.UsesetIsLeader(boolean)
instead -
setIsLeader
public void setIsLeader(boolean is) We should remove this method after refactoringStaticLeaderElectionService
andServer
so that they don't need this to communicate demotion from leader to follower anymore. -
getLeaderElectionMode
-
getLockServiceLockTTL
-
getLeaderElectionLockPollingInterval
-
getPasswordSecret
-
getOutputBatchSize
public int getOutputBatchSize() -
getOutputFlushInterval
public int getOutputFlushInterval() -
getOutputBufferProcessors
public int getOutputBufferProcessors() -
getOutputBufferProcessorThreadsCorePoolSize
public int getOutputBufferProcessorThreadsCorePoolSize() -
isCloud
public boolean isCloud() -
getAutoRestartInputs
public boolean getAutoRestartInputs() -
runMigrations
public boolean runMigrations() -
ignoreMigrationFailures
public boolean ignoreMigrationFailures() -
getSkipPreflightChecks
public boolean getSkipPreflightChecks() -
getNodeIdFile
- Specified by:
getNodeIdFile
in classBaseConfiguration
-
getRootUsername
-
getRootPasswordSha2
-
getRootTimeZone
public org.joda.time.DateTimeZone getRootTimeZone() -
getRootEmail
-
isAllowLeadingWildcardSearches
public boolean isAllowLeadingWildcardSearches() -
isAllowHighlighting
public boolean isAllowHighlighting() -
getLoadBalancerRecognitionPeriodSeconds
public int getLoadBalancerRecognitionPeriodSeconds() -
getStreamProcessingTimeout
public long getStreamProcessingTimeout() -
getStreamProcessingMaxFaults
public int getStreamProcessingMaxFaults() -
getOutputModuleTimeout
public long getOutputModuleTimeout() -
getOutputFaultCountThreshold
public long getOutputFaultCountThreshold() -
getOutputFaultPenaltySeconds
public long getOutputFaultPenaltySeconds() -
getStaleMasterTimeout
Deprecated.Use getStaleLeaderTimeout instead -
getStaleLeaderTimeout
public int getStaleLeaderTimeout() -
getLdapConnectionTimeout
public int getLdapConnectionTimeout() -
getAlertCheckInterval
Deprecated. -
getGcWarningThreshold
public com.github.joschi.jadconfig.util.Duration getGcWarningThreshold() -
getDefaultMessageOutputClass
-
getDashboardWidgetDefaultCacheTime
public com.github.joschi.jadconfig.util.Duration getDashboardWidgetDefaultCacheTime() -
getUserPasswordDefaultAlgorithm
-
getUserPasswordBCryptSaltSize
public int getUserPasswordBCryptSaltSize() -
isContentPacksLoaderEnabled
public boolean isContentPacksLoaderEnabled() -
getContentPacksDir
-
getContentPacksAutoInstall
-
getIndexRangesCleanupInterval
public com.github.joschi.jadconfig.util.Duration getIndexRangesCleanupInterval() -
getTrustedProxies
-
getLoadBalancerRequestThrottleJournalUsage
public int getLoadBalancerRequestThrottleJournalUsage() -
getDeactivatedBuiltinAuthenticationProviders
-
getFailureHandlingQueueCapacity
public int getFailureHandlingQueueCapacity() -
getFailureHandlingShutdownAwait
public com.github.joschi.jadconfig.util.Duration getFailureHandlingShutdownAwait() -
getEnabledTlsProtocols
Deprecated.This is needed for backwards compatibility. The setting in TLSProtocolsConfiguration should be used instead. -
validatePasswordSecret
@ValidatorMethod public void validatePasswordSecret() throws com.github.joschi.jadconfig.ValidationException- Throws:
com.github.joschi.jadconfig.ValidationException
-
validateRootUser
@ValidatorMethod public void validateRootUser() throws com.github.joschi.jadconfig.ValidationException- Throws:
com.github.joschi.jadconfig.ValidationException
-
validateLeaderElectionTimeouts
@ValidatorMethod public void validateLeaderElectionTimeouts() throws com.github.joschi.jadconfig.ValidationException- Throws:
com.github.joschi.jadconfig.ValidationException
-
isRootUserDisabled
public boolean isRootUserDisabled()The root user is disabled if theRootAccountRealm
is deactivated.
-