public class MainWithNailgun extends Object
This class maintains the state for statically storing daemon fields
Modifier and Type | Field and Description |
---|---|
protected com.google.common.collect.ImmutableMap<String,String> |
clientEnvironment |
protected Platform |
platform |
protected InputStream |
stdIn |
Constructor and Description |
---|
MainWithNailgun(com.facebook.nailgun.NGContext ngContext) |
Modifier and Type | Method and Description |
---|---|
protected BuildId |
getBuildId() |
protected MainRunner.KnownRuleTypesFactoryFactory |
getKnownRuleTypesFactory() |
static void |
nailMain(com.facebook.nailgun.NGContext context)
When running as a daemon in the NailGun server,
nailMain(NGContext) is called instead
of MainRunner so that the given context can be used to listen for client disconnections
and interrupt command processing when they occur. |
protected MainRunner |
prepareMainRunner(BackgroundTaskManager bgTaskManager) |
protected final InputStream stdIn
protected final com.google.common.collect.ImmutableMap<String,String> clientEnvironment
protected final Platform platform
public static void nailMain(com.facebook.nailgun.NGContext context)
nailMain(NGContext)
is called instead
of MainRunner
so that the given context can be used to listen for client disconnections
and interrupt command processing when they occur.protected MainRunner prepareMainRunner(BackgroundTaskManager bgTaskManager)
MainRunner
for running the buck command, with all the base state
setup.protected MainRunner.KnownRuleTypesFactoryFactory getKnownRuleTypesFactory()
MainRunner.KnownRuleTypesFactoryFactory
for this command