Package org.apache.shenyu.common.config
Class ShenyuConfig
- java.lang.Object
-
- org.apache.shenyu.common.config.ShenyuConfig
-
public class ShenyuConfig extends java.lang.ObjectThe type shenyu config.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classShenyuConfig.CrossFilterConfigThe Cross Filter Config.static classShenyuConfig.ExcludePathThe type Exclude path.static classShenyuConfig.ExtPluginThe type Ext plugin.static classShenyuConfig.FallbackPathThe type fallback path.static classShenyuConfig.FileConfigThe type File config.static classShenyuConfig.HealthThe type Health.static classShenyuConfig.LocalThe local config.static classShenyuConfig.MatchCachethe match cache.static classShenyuConfig.MetricsConfigThe type Metrics config.static classShenyuConfig.RibbonConfigThe Ribbon Config.static classShenyuConfig.SchedulerThe type Scheduler.static classShenyuConfig.SharedPoolThe type Shared Thread Pool.static classShenyuConfig.ShenyuTrieConfigshenyu trie config.static classShenyuConfig.SwitchConfigThe type Switch config.static classShenyuConfig.UpstreamCheckThe type Upstream check.static classShenyuConfig.WebsocketConfigthe websocket config.
-
Constructor Summary
Constructors Constructor Description ShenyuConfig()
-
Method Summary
-
-
-
Method Detail
-
getHealth
public ShenyuConfig.Health getHealth()
Gets health.- Returns:
- the health
-
setHealth
public void setHealth(ShenyuConfig.Health health)
Sets health.- Parameters:
health- the health
-
getMetrics
public ShenyuConfig.MetricsConfig getMetrics()
Gets metrics.- Returns:
- the metrics
-
setMetrics
public void setMetrics(ShenyuConfig.MetricsConfig metrics)
Sets metrics.- Parameters:
metrics- the metrics
-
getSharedPool
public ShenyuConfig.SharedPool getSharedPool()
Gets the shared thread pool config.- Returns:
- the shared thread pool config
-
setSharedPool
public void setSharedPool(ShenyuConfig.SharedPool sharedPool)
Sets the shared thread pool config.- Parameters:
sharedPool- the shared thread pool config
-
getLocal
public ShenyuConfig.Local getLocal()
Gets the local config.- Returns:
- the local config
-
setLocal
public void setLocal(ShenyuConfig.Local local)
Sets the local config.- Parameters:
local- the local config
-
getRibbon
public ShenyuConfig.RibbonConfig getRibbon()
Gets ribbon.- Returns:
- the ribbon
-
setRibbon
public void setRibbon(ShenyuConfig.RibbonConfig ribbon)
Sets ribbon.- Parameters:
ribbon- the ribbon
-
getSwitchConfig
public ShenyuConfig.SwitchConfig getSwitchConfig()
Gets switch config.- Returns:
- the switch config
-
setSwitchConfig
public void setSwitchConfig(ShenyuConfig.SwitchConfig switchConfig)
Sets switch config.- Parameters:
switchConfig- the switch config
-
getScheduler
public ShenyuConfig.Scheduler getScheduler()
Gets scheduler.- Returns:
- the scheduler
-
setScheduler
public void setScheduler(ShenyuConfig.Scheduler scheduler)
Sets scheduler.- Parameters:
scheduler- the scheduler
-
getExtPlugin
public ShenyuConfig.ExtPlugin getExtPlugin()
Gets ext plugin.- Returns:
- the ext plugin
-
setExtPlugin
public void setExtPlugin(ShenyuConfig.ExtPlugin extPlugin)
Sets ext plugin.- Parameters:
extPlugin- the ext plugin
-
getMatchCache
public ShenyuConfig.MatchCache getMatchCache()
Gets match cache.- Returns:
- the match cache
-
setMatchCache
public void setMatchCache(ShenyuConfig.MatchCache matchCache)
Sets match cache.- Parameters:
matchCache- the match cache
-
getFile
public ShenyuConfig.FileConfig getFile()
Gets file.- Returns:
- the file
-
setFile
public void setFile(ShenyuConfig.FileConfig file)
Sets file.- Parameters:
file- the file
-
getExclude
public ShenyuConfig.ExcludePath getExclude()
Gets exclude.- Returns:
- the exclude
-
setExclude
public void setExclude(ShenyuConfig.ExcludePath exclude)
Sets exclude.- Parameters:
exclude- the exclude
-
getFallback
public ShenyuConfig.FallbackPath getFallback()
Gets fallback.- Returns:
- the fallback
-
setFallback
public void setFallback(ShenyuConfig.FallbackPath fallback)
Sets fallback.- Parameters:
fallback- the fallback
-
getUpstreamCheck
public ShenyuConfig.UpstreamCheck getUpstreamCheck()
Gets upstream check.- Returns:
- the upstream check
-
setUpstreamCheck
public void setUpstreamCheck(ShenyuConfig.UpstreamCheck upstreamCheck)
Sets upstream check.- Parameters:
upstreamCheck- the upstream check
-
getCross
public ShenyuConfig.CrossFilterConfig getCross()
Gets cross.- Returns:
- the cross
-
getWebsocket
public ShenyuConfig.WebsocketConfig getWebsocket()
Gets the websocket config.- Returns:
- the websocket config
-
setWebsocket
public void setWebsocket(ShenyuConfig.WebsocketConfig websocket)
Sets the websocket config.- Parameters:
websocket- the websocket config
-
setCross
public void setCross(ShenyuConfig.CrossFilterConfig cross)
Sets cross.- Parameters:
cross- the cross
-
getTrie
public ShenyuConfig.ShenyuTrieConfig getTrie()
get shenyu trie config.- Returns:
- shenyu trie config
-
setTrie
public void setTrie(ShenyuConfig.ShenyuTrieConfig trie)
set shenyu trie config.- Parameters:
trie- trie config
-
-