@ThreadSafe public class BuckGlobalStateLifecycleManager extends Object
BuckGlobalState
instance behind cell configuration checks. Creates
or re-creates the daemon state as necessary if the cell configuration changes.Modifier and Type | Class and Description |
---|---|
static class |
BuckGlobalStateLifecycleManager.LifecycleStatus
Indicates whether a daemon's
BuckGlobalState is reused, or why it can't be reused |
Constructor and Description |
---|
BuckGlobalStateLifecycleManager() |
Modifier and Type | Method and Description |
---|---|
Optional<BuckConfig> |
getBuckConfig() |
Pair<BuckGlobalState,BuckGlobalStateLifecycleManager.LifecycleStatus> |
getBuckGlobalState(Cells cells,
KnownRuleTypesProvider knownRuleTypesProvider,
Watchman watchman,
Console console,
Clock clock,
UnconfiguredBuildTargetViewFactory unconfiguredBuildTargetFactory,
TargetConfigurationSerializer targetConfigurationSerializer)
Get or create Daemon.
|
boolean |
hasStoredBuckGlobalState() |
void |
resetBuckGlobalState()
Manually reset the
BuckGlobalState , used for testing. |
public boolean hasStoredBuckGlobalState()
public Optional<BuckConfig> getBuckConfig()
public Pair<BuckGlobalState,BuckGlobalStateLifecycleManager.LifecycleStatus> getBuckGlobalState(Cells cells, KnownRuleTypesProvider knownRuleTypesProvider, Watchman watchman, Console console, Clock clock, UnconfiguredBuildTargetViewFactory unconfiguredBuildTargetFactory, TargetConfigurationSerializer targetConfigurationSerializer)
public void resetBuckGlobalState()
BuckGlobalState
, used for testing.