@Configuration
public class CliAutoConfiguration
extends java.lang.Object
Constructor and Description |
---|
CliAutoConfiguration() |
Modifier and Type | Method and Description |
---|---|
ArgumentDelegates.CacheArguments |
cacheArgumentsDelegate()
Provide a bean for cache command line arguments.
|
ArgumentDelegates.CleanupArguments |
cleanupArguments()
Provide a
ArgumentDelegates.CleanupArguments . |
com.netflix.genie.agent.cli.DownloadCommand |
downloadCommand(com.netflix.genie.agent.cli.DownloadCommand.DownloadCommandArguments downloadCommandArguments,
DownloadService downloadService)
Provide a lazy bean definition for a
DownloadCommand . |
com.netflix.genie.agent.cli.DownloadCommand.DownloadCommandArguments |
downloadCommandArguments(ArgumentDelegates.CacheArguments cacheArguments)
Provide a bean for arguments for a download command.
|
com.netflix.genie.agent.cli.ExecCommand |
execCommand(com.netflix.genie.agent.cli.ExecCommand.ExecCommandArguments execCommandArguments,
JobExecutionStateMachine jobExecutionStateMachine,
ExecutionContext executionContext,
KillService killService)
Provide a lazy bean definition for an
ExecCommand . |
com.netflix.genie.agent.cli.ExecCommand.ExecCommandArguments |
execCommandArguments(ArgumentDelegates.ServerArguments serverArguments,
ArgumentDelegates.CacheArguments cacheArguments,
ArgumentDelegates.JobRequestArguments jobRequestArguments,
ArgumentDelegates.CleanupArguments cleanupArguments)
Provide a bean for execution command arguments.
|
GenieAgentRunner |
genieAgentRunner(com.netflix.genie.agent.cli.ArgumentParser argumentParser,
com.netflix.genie.agent.cli.CommandFactory commandFactory,
org.springframework.core.env.Environment environment)
The main
GenieAgentRunner entry point bean which implements
CommandLineRunner . |
com.netflix.genie.agent.cli.HeartBeatCommand |
heartBeatCommand(com.netflix.genie.agent.cli.HeartBeatCommand.HeartBeatCommandArguments heartBeatCommandArguments,
AgentHeartBeatService agentHeartBeatService)
Provide a lazy bean definition for a
HeartBeatCommand . |
com.netflix.genie.agent.cli.HeartBeatCommand.HeartBeatCommandArguments |
heartBeatCommandArguments(ArgumentDelegates.ServerArguments serverArguments)
Provide a bean for
HeartBeatCommand.HeartBeatCommandArguments . |
com.netflix.genie.agent.cli.HelpCommand |
helpCommand(com.netflix.genie.agent.cli.ArgumentParser argumentParser)
Provide a lazy bean instance of
HelpCommand . |
com.netflix.genie.agent.cli.HelpCommand.HelpCommandArguments |
helpCommandArguments()
Provide an bean of
HelpCommand.HelpCommandArguments . |
com.netflix.genie.agent.cli.InfoCommand |
infoCommand(com.netflix.genie.agent.cli.InfoCommand.InfoCommandArguments infoCommandArguments,
org.springframework.context.ConfigurableApplicationContext configurableApplicationContext,
AgentMetadata agentMetadata)
Provide a lazy bean definition for an
InfoCommand . |
com.netflix.genie.agent.cli.InfoCommand.InfoCommandArguments |
infoCommandArguments()
Provide an instance of
InfoCommand.InfoCommandArguments . |
ArgumentDelegates.JobRequestArguments |
jobRequestArguments(com.netflix.genie.agent.cli.MainCommandArguments mainCommandArguments)
Provide a
ArgumentDelegates.JobRequestArguments . |
JobRequestConverter |
jobRequestConverter(javax.validation.Validator validator)
Provide an instance of
JobRequestConverter . |
com.netflix.genie.agent.cli.MainCommandArguments |
mainCommandArguments()
Provide a
MainCommandArguments . |
com.netflix.genie.agent.cli.PingCommand |
pingCommand(com.netflix.genie.agent.cli.PingCommand.PingCommandArguments pingCommandArguments,
com.netflix.genie.proto.PingServiceGrpc.PingServiceFutureStub pingServiceFutureStub,
AgentMetadata agentMetadata)
Provide a lazy bean for a
PingCommand . |
com.netflix.genie.agent.cli.PingCommand.PingCommandArguments |
pingCommandArguments(ArgumentDelegates.ServerArguments serverArguments)
Provides a
PingCommand.PingCommandArguments bean. |
com.netflix.genie.agent.cli.ResolveJobSpecCommand |
resolveJobSpecCommand(com.netflix.genie.agent.cli.ResolveJobSpecCommand.ResolveJobSpecCommandArguments resolveJobSpecCommandArguments,
AgentJobService agentJobService,
JobRequestConverter jobRequestConverter)
Provide a lazy bean definition for a
ResolveJobSpecCommand . |
com.netflix.genie.agent.cli.ResolveJobSpecCommand.ResolveJobSpecCommandArguments |
resolveJobSpecCommandArguments(ArgumentDelegates.ServerArguments serverArguments,
ArgumentDelegates.JobRequestArguments jobRequestArguments)
Provide a bean of type
ResolveJobSpecCommand.ResolveJobSpecCommandArguments . |
ArgumentDelegates.ServerArguments |
serverArguments()
Provide a
ArgumentDelegates.ServerArguments . |
@Bean public ArgumentDelegates.CacheArguments cacheArgumentsDelegate()
CacheArgumentsImpl
instance@Bean public com.netflix.genie.agent.cli.DownloadCommand.DownloadCommandArguments downloadCommandArguments(ArgumentDelegates.CacheArguments cacheArguments)
cacheArguments
- Any arguments that were provided for the cache of this agent instanceDownloadCommand.DownloadCommandArguments
@Bean @Lazy public com.netflix.genie.agent.cli.DownloadCommand downloadCommand(com.netflix.genie.agent.cli.DownloadCommand.DownloadCommandArguments downloadCommandArguments, DownloadService downloadService)
DownloadCommand
.downloadCommandArguments
- The download command arguments to usedownloadService
- The download service to useDownloadCommand
@Bean public com.netflix.genie.agent.cli.ExecCommand.ExecCommandArguments execCommandArguments(ArgumentDelegates.ServerArguments serverArguments, ArgumentDelegates.CacheArguments cacheArguments, ArgumentDelegates.JobRequestArguments jobRequestArguments, ArgumentDelegates.CleanupArguments cleanupArguments)
serverArguments
- The server arguments to usecacheArguments
- The cache arguments to usejobRequestArguments
- The job request arguments to usecleanupArguments
- The cleanup arguments to useExecCommand.ExecCommandArguments
@Bean @Lazy public com.netflix.genie.agent.cli.ExecCommand execCommand(com.netflix.genie.agent.cli.ExecCommand.ExecCommandArguments execCommandArguments, JobExecutionStateMachine jobExecutionStateMachine, ExecutionContext executionContext, KillService killService)
ExecCommand
.execCommandArguments
- The exec command arguments to usejobExecutionStateMachine
- The job execution state machine instance to useexecutionContext
- The execution context to usekillService
- The kill service to useExecCommand
if one hasn't already been defined@Bean public GenieAgentRunner genieAgentRunner(com.netflix.genie.agent.cli.ArgumentParser argumentParser, com.netflix.genie.agent.cli.CommandFactory commandFactory, org.springframework.core.env.Environment environment)
GenieAgentRunner
entry point bean which implements
CommandLineRunner
.argumentParser
- The argument parser to usecommandFactory
- The command factory to useenvironment
- The spring environmentGenieAgentRunner
if one hasn't already been provided@Bean public com.netflix.genie.agent.cli.HeartBeatCommand.HeartBeatCommandArguments heartBeatCommandArguments(ArgumentDelegates.ServerArguments serverArguments)
HeartBeatCommand.HeartBeatCommandArguments
.serverArguments
- The server arguments to useHeartBeatCommand.HeartBeatCommandArguments
@Bean @Lazy public com.netflix.genie.agent.cli.HeartBeatCommand heartBeatCommand(com.netflix.genie.agent.cli.HeartBeatCommand.HeartBeatCommandArguments heartBeatCommandArguments, AgentHeartBeatService agentHeartBeatService)
HeartBeatCommand
.heartBeatCommandArguments
- The heart beat command arguments to useagentHeartBeatService
- The heart beat service to useHeartBeatCommand
@Bean public com.netflix.genie.agent.cli.HelpCommand.HelpCommandArguments helpCommandArguments()
HelpCommand.HelpCommandArguments
.HelpCommand.HelpCommandArguments
@Bean @Lazy public com.netflix.genie.agent.cli.HelpCommand helpCommand(com.netflix.genie.agent.cli.ArgumentParser argumentParser)
HelpCommand
.argumentParser
- The argument parser to useHelpCommand
instance@Bean public com.netflix.genie.agent.cli.InfoCommand.InfoCommandArguments infoCommandArguments()
InfoCommand.InfoCommandArguments
.InfoCommand.InfoCommandArguments
instance@Bean @Lazy public com.netflix.genie.agent.cli.InfoCommand infoCommand(com.netflix.genie.agent.cli.InfoCommand.InfoCommandArguments infoCommandArguments, org.springframework.context.ConfigurableApplicationContext configurableApplicationContext, AgentMetadata agentMetadata)
InfoCommand
.infoCommandArguments
- The info command arguments to useconfigurableApplicationContext
- The Spring context to useagentMetadata
- The agent metadata to useInfoCommand
instance@Bean public com.netflix.genie.agent.cli.MainCommandArguments mainCommandArguments()
MainCommandArguments
.MainCommandArguments
.@Bean public ArgumentDelegates.JobRequestArguments jobRequestArguments(com.netflix.genie.agent.cli.MainCommandArguments mainCommandArguments)
ArgumentDelegates.JobRequestArguments
.mainCommandArguments
- container for the main argumentsArgumentDelegates.JobRequestArguments
@Bean @Lazy public JobRequestConverter jobRequestConverter(javax.validation.Validator validator)
JobRequestConverter
.validator
- The validator to useJobRequestConverter
instance@Bean public com.netflix.genie.agent.cli.PingCommand.PingCommandArguments pingCommandArguments(ArgumentDelegates.ServerArguments serverArguments)
PingCommand.PingCommandArguments
bean.serverArguments
- The server arguments to usePingCommand.PingCommandArguments
instance@Bean @Lazy public com.netflix.genie.agent.cli.PingCommand pingCommand(com.netflix.genie.agent.cli.PingCommand.PingCommandArguments pingCommandArguments, com.netflix.genie.proto.PingServiceGrpc.PingServiceFutureStub pingServiceFutureStub, AgentMetadata agentMetadata)
PingCommand
.pingCommandArguments
- The ping command arguments to usepingServiceFutureStub
- The gRPC future stub to useagentMetadata
- The agent metadata to usePingCommand
instance@Bean public com.netflix.genie.agent.cli.ResolveJobSpecCommand.ResolveJobSpecCommandArguments resolveJobSpecCommandArguments(ArgumentDelegates.ServerArguments serverArguments, ArgumentDelegates.JobRequestArguments jobRequestArguments)
ResolveJobSpecCommand.ResolveJobSpecCommandArguments
.serverArguments
- The server arguments to usejobRequestArguments
- The job request arguments to useResolveJobSpecCommand.ResolveJobSpecCommandArguments
@Bean @Lazy public com.netflix.genie.agent.cli.ResolveJobSpecCommand resolveJobSpecCommand(com.netflix.genie.agent.cli.ResolveJobSpecCommand.ResolveJobSpecCommandArguments resolveJobSpecCommandArguments, AgentJobService agentJobService, JobRequestConverter jobRequestConverter)
ResolveJobSpecCommand
.resolveJobSpecCommandArguments
- The resolve job spec arguments to useagentJobService
- The agent job service to usejobRequestConverter
- The job request converter to useResolveJobSpecCommand
instance@Bean public ArgumentDelegates.ServerArguments serverArguments()
ArgumentDelegates.ServerArguments
.ServerArgumentsImpl
instance@Bean public ArgumentDelegates.CleanupArguments cleanupArguments()
ArgumentDelegates.CleanupArguments
.CleanupArgumentsImpl
instance