Uses of Interface
com.atlassian.bamboo.v2.build.agent.BuildAgent
-
-
Uses of BuildAgent in com.atlassian.bamboo.build
Methods in com.atlassian.bamboo.build that return BuildAgent Modifier and Type Method Description @Nullable BuildAgentBuildResultsAction. getAgent(@Nullable CurrentlyBuilding currentlyBuilding)@Nullable BuildAgentBuildResultsAction. getAgent(BuildResultsSummary summary)@Nullable BuildAgentViewBuild. getAgent(@NotNull CurrentlyBuilding currentlyBuilding)Methods in com.atlassian.bamboo.build that return types with arguments of type BuildAgent Modifier and Type Method Description Collection<BuildAgent>BuildResultsAction. getExecutableAgents()Collection<BuildAgent>ChainResultsAction. getExecutableAgents()Methods in com.atlassian.bamboo.build with parameters of type BuildAgent Modifier and Type Method Description voidDefaultStopBuildManager. stopAgentNicely(@NotNull BuildAgent buildAgent)voidStopBuildManager. stopAgentNicely(@NotNull BuildAgent buildAgent)Will tell an agent to stop after it's finished the current buildMethod parameters in com.atlassian.bamboo.build with type arguments of type BuildAgent Modifier and Type Method Description voidBuildExecutionManager. setCurrentlyBuilding(@NotNull BuildContext buildContext, @NotNull Collection<BuildAgent> executableAgents, @NotNull Collection<ElasticImageConfiguration> executableImages)Denotes that the passed build context is beginning the build process.@NotNull CurrentlyBuildingCurrentlyBuildingContainer. setCurrentlyBuilding(@NotNull BuildContext buildContext, @NotNull CurrentlyBuilding currentlyBuilding, Collection<BuildAgent> executableAgents, Collection<ElasticImageConfiguration> executableImages)voidDefaultBuildExecutionManager. setCurrentlyBuilding(@NotNull BuildContext buildContext, @NotNull Collection<BuildAgent> executableAgents, @NotNull Collection<ElasticImageConfiguration> executableImages)Denotes that the passed build context is beginning the build process. -
Uses of BuildAgent in com.atlassian.bamboo.buildqueue.manager
Methods in com.atlassian.bamboo.buildqueue.manager that return BuildAgent Modifier and Type Method Description @Nullable BuildAgentAgentManager. getAgent(long agentId)@Nullable BuildAgentAgentManagerImpl. getAgent(long agentId)BuildAgentAgentStateCache. getAgent(long agentId)@NotNull BuildAgentAgentStateCache. updateAgentInCache(PipelineDefinition definition)Methods in com.atlassian.bamboo.buildqueue.manager that return types with arguments of type BuildAgent Modifier and Type Method Description @NotNull Collection<BuildAgent>AgentManager. getActiveAndEnabledAgents()Returns agents that are enabled and online@NotNull Collection<BuildAgent>AgentManagerImpl. getActiveAndEnabledAgents()Collection<BuildAgent>AgentStateCache. getActiveAndEnabledAgents()@NotNull List<BuildAgent>AgentManager. getAllAgents()@NotNull List<BuildAgent>AgentManagerImpl. getAllAgents()List<BuildAgent>AgentStateCache. getAllAgents()@NotNull List<BuildAgent>AgentManager. getAllNonElasticAgents()@NotNull List<BuildAgent>AgentManagerImpl. getAllNonElasticAgents()@NotNull List<BuildAgent>AgentManager. getAllRemoteAgents()Gets all remote agents in the system.@NotNull List<BuildAgent>AgentManager. getAllRemoteAgents(boolean onlineOnly)Get remote agents.@NotNull List<BuildAgent>AgentManagerImpl. getAllRemoteAgents()@NotNull List<BuildAgent>AgentManagerImpl. getAllRemoteAgents(boolean onlineOnly)List<BuildAgent>AgentStateCache. getAllRemoteAgents(boolean onlineOnly)@NotNull List<BuildAgent>AgentManager. getAllStandardAgents()@NotNull List<BuildAgent>AgentManagerImpl. getAllStandardAgents()List<BuildAgent>AgentStateCache. getAllStandardAgents()@NotNull SortedSet<BuildAgent>ExecutableAgentsMatrix. getBuildAgents()Get a set of agents that match ALL requirements.@NotNull Collection<BuildAgent>ExecutableAgentsMatrix. getBuildAgents(@NotNull String requirementKey)@NotNull SortedSet<BuildAgent>ExecutableAgentsMatrixImpl. getBuildAgents()@NotNull Collection<BuildAgent>ExecutableAgentsMatrixImpl. getBuildAgents(@NotNull String key)@NotNull Collection<BuildAgent>AgentManager. getBusyBuildAgents()Gets a collection agents that are currently building or cancelling a build@NotNull Collection<BuildAgent>AgentManagerImpl. getBusyBuildAgents()Collection<BuildAgent>AgentStateCache. getBusyBuildAgents()@NotNull SortedSet<BuildAgent>ExecutableAgentsMatrix. getDedicatedNonMatchingBuildAgents()@NotNull SortedSet<BuildAgent>ExecutableAgentsMatrixImpl. getDedicatedNonMatchingBuildAgents()@NotNull Collection<BuildAgent>AgentManager. getElasticActiveAndEnabledAgents()Returns elastic agents that are enabled and online@NotNull Collection<BuildAgent>AgentManagerImpl. getElasticActiveAndEnabledAgents()Collection<BuildAgent>AgentStateCache. getElasticActiveAndEnabledAgents()@NotNull Optional<BuildAgent>AgentManager. getEphemeralAgentByPodName(@NotNull String podName)Returns aBuildAgentby given pod name (if exists).@NotNull Optional<BuildAgent>AgentManagerImpl. getEphemeralAgentByPodName(@NotNull String podName)List<BuildAgent>AgentStateCache. getNonElasticAgents()@NotNull List<BuildAgent>AgentManager. getOnlineElasticAgents()Retrieve all online elastic build agents.@NotNull List<BuildAgent>AgentManagerImpl. getOnlineElasticAgents()List<BuildAgent>AgentStateCache. getOnlineElasticAgents()@NotNull Collection<BuildAgent>ExecutableAgentsMatrix. getOnlineEnabledBuildAgents()Get a set of agents that match ALL requirements AND are currently enabled and online.@NotNull Collection<BuildAgent>ExecutableAgentsMatrixImpl. getOnlineEnabledBuildAgents()List<BuildAgent>AgentStateCache. getOnlineEphemeralAgents()@NotNull Collection<BuildAgent>AgentManager. getRemoteActiveAndEnabledAgents()Returns remote agents that are enabled and online@NotNull Collection<BuildAgent>AgentManagerImpl. getRemoteActiveAndEnabledAgents()Collection<BuildAgent>AgentStateCache. getRemoteActiveAndEnabledAgents()Optional<BuildAgent>AgentManager. setAgentEnabled(long agentId, boolean enable)Optional<BuildAgent>AgentManagerImpl. setAgentEnabled(long agentId, boolean enable)Methods in com.atlassian.bamboo.buildqueue.manager with parameters of type BuildAgent Modifier and Type Method Description voidAgentManager. abandonBuild(@NotNull BuildAgent remoteAgent, boolean agentStartingUp)voidAgentManagerImpl. abandonBuild(@NotNull BuildAgent remoteAgent, boolean agentStartingUp)voidExecutableAgentsMatrix. addBuildAgent(@NotNull BuildAgent buildAgent)Record an agent matching ALL requirementsvoidExecutableAgentsMatrixImpl. addBuildAgent(@NotNull BuildAgent buildAgent)voidExecutableAgentsMatrix. addDedicatedNonMatchingBuildAgent(@NotNull BuildAgent buildAgent)Record build agent dedicated to the job/plan/project but not satisfying all requirementsvoidExecutableAgentsMatrixImpl. addDedicatedNonMatchingBuildAgent(@NotNull BuildAgent buildAgent)static Iterable<AgentAssignmentService.AgentAssignmentExecutor>AgentAssignmentServiceHelper. asExecutors(BuildAgent agent)static Iterable<AgentAssignmentService.AgentAssignmentExecutor>AgentAssignmentServiceHelper. asExecutors(BuildAgent agent, boolean directAssignmentsOnly)booleanAgentAssignmentService. isCapabilitiesMatch(BuildAgent agent, long environmentid)booleanAgentAssignmentService. isCapabilitiesMatch(BuildAgent agent, ImmutableJob job)Helper methods to check if executor is capable of running executablebooleanAgentAssignmentServiceImpl. isCapabilitiesMatch(BuildAgent agent, long environmentId)booleanAgentAssignmentServiceImpl. isCapabilitiesMatch(BuildAgent agent, ImmutableJob job)voidAgentManager. onAgentReturning(@NotNull BuildAgent agent)Performs any other operations required when an agent goes offline, such as updating the status and shutdown time.voidAgentManagerImpl. onAgentReturning(@NotNull BuildAgent agent)voidExecutableAgentsMatrix. put(@NotNull String requirementKey, @NotNull BuildAgent agent)Record an agent matching a requirement.voidExecutableAgentsMatrixImpl. put(@NotNull String key, @NotNull BuildAgent value)voidAgentStateCache. removeFromCache(@NotNull BuildAgent agent)voidAgentManager. stopAgent(@NotNull BuildAgent agent)Performs any other operations required when an agent goes offline, such as updating the status and shutdown time.voidAgentManagerImpl. stopAgent(@NotNull BuildAgent agent)voidRemoteAgentManager. stopRemoteAgent(@NotNull BuildAgent agent)voidRemoteAgentManagerImpl. stopRemoteAgent(@NotNull BuildAgent agent)Method parameters in com.atlassian.bamboo.buildqueue.manager with type arguments of type BuildAgent Modifier and Type Method Description voidExecutableAgentsMatrix. addBuildAgents(@NotNull Collection<BuildAgent> buildAgents)Record a collection of agents matching ALL requirementsvoidExecutableAgentsMatrixImpl. addBuildAgents(@NotNull Collection<BuildAgent> buildAgents) -
Uses of BuildAgent in com.atlassian.bamboo.capability
Methods in com.atlassian.bamboo.capability with parameters of type BuildAgent Modifier and Type Method Description static @Nullable CapabilitySetCapabilitySetProvider. getAgentCapabilitySet(BuildAgent agent) -
Uses of BuildAgent in com.atlassian.bamboo.configuration.agent
Fields in com.atlassian.bamboo.configuration.agent declared as BuildAgent Modifier and Type Field Description protected BuildAgentConfigureAgentCapability. buildAgentprotected BuildAgentViewAgentDetails. buildAgentFields in com.atlassian.bamboo.configuration.agent with type parameters of type BuildAgent Modifier and Type Field Description protected com.google.common.collect.Multimap<Capability,BuildAgent>ConfigureCapabilityKey. capabilityAgentMappingsSortedMethods in com.atlassian.bamboo.configuration.agent that return BuildAgent Modifier and Type Method Description @Nullable BuildAgentConfigureCapabilityKey. getAgent(Long id)@Nullable BuildAgentConfigureCapability. getAgentFromCapabilitySet(@NotNull CapabilitySet capabilitySet)BuildAgentConfigureAgentCapability. getBuildAgent()BuildAgentViewAgent. getBuildAgent()BuildAgentViewAgentDetails. getBuildAgent()Methods in com.atlassian.bamboo.configuration.agent that return types with arguments of type BuildAgent Modifier and Type Method Description List<BuildAgent>ViewAgentPlanMatrix. getAgents()Collection<Map.Entry<Capability,BuildAgent>>ConfigureCapabilityKey. getCapabilityAgentMappingsSorted()List<BuildAgent>ViewAgents. getDedicatedNonMatchingAgents()List<BuildAgent>ViewAgents. getOfflineRemoteAgents()List<BuildAgent>ViewAgents. getOnlineRemoteAgents()List<BuildAgent>ViewOfflineAgents. getResultsList() -
Uses of BuildAgent in com.atlassian.bamboo.configuration.agent.elastic
Methods in com.atlassian.bamboo.configuration.agent.elastic with parameters of type BuildAgent Modifier and Type Method Description booleanElasticAgentOnImagePredicate. apply(@Nullable BuildAgent agent) -
Uses of BuildAgent in com.atlassian.bamboo.deployments.environments.actions.tasks
Methods in com.atlassian.bamboo.deployments.environments.actions.tasks that return types with arguments of type BuildAgent Modifier and Type Method Description List<BuildAgent>DescribeAgentAvailability. sortMatchingAgents(Collection<BuildAgent> matchingAgents)Method parameters in com.atlassian.bamboo.deployments.environments.actions.tasks with type arguments of type BuildAgent Modifier and Type Method Description List<BuildAgent>DescribeAgentAvailability. sortMatchingAgents(Collection<BuildAgent> matchingAgents) -
Uses of BuildAgent in com.atlassian.bamboo.deployments.results
Methods in com.atlassian.bamboo.deployments.results that return BuildAgent Modifier and Type Method Description @Nullable BuildAgentDeploymentResult. getAgent()@Nullable BuildAgentDeploymentResultImpl. getAgent() -
Uses of BuildAgent in com.atlassian.bamboo.event
Methods in com.atlassian.bamboo.event with parameters of type BuildAgent Modifier and Type Method Description ObjectAgentConfigurationUpdatedEventFactory. create(Object o, @NotNull BuildAgent buildAgent)Constructors in com.atlassian.bamboo.event with parameters of type BuildAgent Constructor Description AgentConfigurationUpdatedEvent(Object source, @NotNull BuildAgent buildAgent)AgentDisabledOrEnabledEvent(Object o, @NotNull BuildAgent buildAgent) -
Uses of BuildAgent in com.atlassian.bamboo.event.agent
Fields in com.atlassian.bamboo.event.agent declared as BuildAgent Modifier and Type Field Description protected BuildAgentAgentEvent. buildAgentMethods in com.atlassian.bamboo.event.agent that return BuildAgent Modifier and Type Method Description @NotNull BuildAgentAgentEvent. getBuildAgent()Constructors in com.atlassian.bamboo.event.agent with parameters of type BuildAgent Constructor Description AgentEvent(Object source, BuildAgent buildAgent) -
Uses of BuildAgent in com.atlassian.bamboo.logger
Methods in com.atlassian.bamboo.logger that return types with arguments of type BuildAgent Modifier and Type Method Description List<BuildAgent>DecoratedErrorDetailsImpl. getAgents() -
Uses of BuildAgent in com.atlassian.bamboo.plan
Methods in com.atlassian.bamboo.plan that return types with arguments of type BuildAgent Modifier and Type Method Description @NotNull Collection<BuildAgent>ExecutableAgentsHelper. getExecutableAgents(@NotNull ExecutableAgentsHelper.ExecutorQuery executorQuery)@NotNull Collection<BuildAgent>ExecutableAgentsHelperImpl. getExecutableAgents(@NotNull ExecutableAgentsHelper.ExecutorQuery executorQuery)Methods in com.atlassian.bamboo.plan with parameters of type BuildAgent Modifier and Type Method Description booleanExecutableAgentsHelper. canExecute(@NotNull BuildAgent buildAgent, @NotNull CommonContext context, @NotNull ImmutableRequirementSet requirements)Returns true or false depending on whether the agent can execute the given context, taking into account requirement set and other global settings such as agent assignments.booleanExecutableAgentsHelperImpl. canExecute(@NotNull BuildAgent buildAgent, @NotNull CommonContext context, @NotNull ImmutableRequirementSet requirements) -
Uses of BuildAgent in com.atlassian.bamboo.plugins.rest.admin.agent
Constructors in com.atlassian.bamboo.plugins.rest.admin.agent with parameters of type BuildAgent Constructor Description RestAgent(BuildAgent buildAgent, String link) -
Uses of BuildAgent in com.atlassian.bamboo.rest.model.agent
Constructors in com.atlassian.bamboo.rest.model.agent with parameters of type BuildAgent Constructor Description RestAgentAssignmentExecutorDetails(@NotNull BuildAgent agent, AgentAssignment.ExecutableType executableType, boolean capabilitiesMatch) -
Uses of BuildAgent in com.atlassian.bamboo.rest.model.deployments.results
Methods in com.atlassian.bamboo.rest.model.deployments.results that return BuildAgent Modifier and Type Method Description BuildAgentRestDeploymentResult. getAgent() -
Uses of BuildAgent in com.atlassian.bamboo.rest.model.plan.stage.job.requirement
Constructors in com.atlassian.bamboo.rest.model.plan.stage.job.requirement with parameters of type BuildAgent Constructor Description RestAgentDetails(BuildAgent agent) -
Uses of BuildAgent in com.atlassian.bamboo.resultsummary
Methods in com.atlassian.bamboo.resultsummary with parameters of type BuildAgent Modifier and Type Method Description intAgentBuildResultsSummaryManagerImpl. countBuildResultsSummariesForAgent(@NotNull BuildAgent buildAgent)intAgentResultsSummaryManager. countBuildResultsSummariesForAgent(@NotNull BuildAgent buildAgent)intAgentBuildResultsSummaryManagerImpl. countFailedBuildResultsSummariesForAgent(@NotNull BuildAgent buildAgent)intAgentResultsSummaryManager. countFailedBuildResultsSummariesForAgent(@NotNull BuildAgent buildAgent) -
Uses of BuildAgent in com.atlassian.bamboo.testutils.backdoor.model
Constructors in com.atlassian.bamboo.testutils.backdoor.model with parameters of type BuildAgent Constructor Description RestAgent(@NotNull BuildAgent buildAgent) -
Uses of BuildAgent in com.atlassian.bamboo.util
Methods in com.atlassian.bamboo.util with parameters of type BuildAgent Modifier and Type Method Description intAgentComparator. compare(BuildAgent first, BuildAgent second) -
Uses of BuildAgent in com.atlassian.bamboo.utils.predicates
Methods in com.atlassian.bamboo.utils.predicates with parameters of type BuildAgent Modifier and Type Method Description static booleanBuildAgentPredicates. isActive(BuildAgent agent)static booleanBuildAgentPredicates. isActiveAndEnabled(BuildAgent agent)static booleanBuildAgentPredicates. isBusy(BuildAgent agent)static booleanBuildAgentPredicates. isEnabled(BuildAgent agent) -
Uses of BuildAgent in com.atlassian.bamboo.v2.build.agent
Subinterfaces of BuildAgent in com.atlassian.bamboo.v2.build.agent Modifier and Type Interface Description interfaceLocalBuildAgentClasses in com.atlassian.bamboo.v2.build.agent that implement BuildAgent Modifier and Type Class Description classBuildAgentImplclassLocalBuildAgentImplMethods in com.atlassian.bamboo.v2.build.agent that return types with arguments of type BuildAgent Modifier and Type Method Description @NotNull Collection<BuildAgent>BuildAgentRequirementFilter. filter(CommonContext context, Collection<BuildAgent> agents, MinimalRequirementSet requirements)Filter the given collection of agents by the requirementsMethods in com.atlassian.bamboo.v2.build.agent with parameters of type BuildAgent Modifier and Type Method Description intBuildAgentImpl. compareTo(BuildAgent o)intDefaultBuildAgent. compareTo(BuildAgent o)static @Nullable SystemInfoBuildAgentFunctions. getSystemInfo(BuildAgent agent)static @Nullable UUIDBuildAgentFunctions. getUuid(BuildAgent agent)static booleanBuildAgentFunctions. hasSystemInfo(BuildAgent agent)static booleanBuildAgentFunctions. hasUuid(BuildAgent agent)static booleanBuildAgentFunctions. isRemote(BuildAgent agent)voidBuildAgent.BuildAgentVisitor. visitRemote(BuildAgent remoteBuildAgent)Method parameters in com.atlassian.bamboo.v2.build.agent with type arguments of type BuildAgent Modifier and Type Method Description @NotNull Collection<BuildAgent>BuildAgentRequirementFilter. filter(CommonContext context, Collection<BuildAgent> agents, MinimalRequirementSet requirements)Filter the given collection of agents by the requirements -
Uses of BuildAgent in com.atlassian.bamboo.v2.build.events
Methods in com.atlassian.bamboo.v2.build.events that return BuildAgent Modifier and Type Method Description BuildAgentAgentOfflineEvent. getBuildAgent()Constructors in com.atlassian.bamboo.v2.build.events with parameters of type BuildAgent Constructor Description AgentOfflineEvent(Object source, BuildAgent buildAgent) -
Uses of BuildAgent in com.atlassian.bamboo.v2.build.queue
Methods in com.atlassian.bamboo.v2.build.queue that return types with arguments of type BuildAgent Modifier and Type Method Description @NotNull Collection<BuildAgent>ExecutorCalculator. calculateExecutors(@NotNull CommonContextMap.ContextWithMetadata contextWithMetadata)@NotNull Collection<BuildAgent>ExecutorCalculator. calculateExecutors(@NotNull CommonContextMap.ContextWithMetadata contextWithMetadata, @NotNull Collection<ElasticImageConfiguration> executableImages, @NotNull Collection<EphemeralAgentTemplate> executableTemplates)Methods in com.atlassian.bamboo.v2.build.queue with parameters of type BuildAgent Modifier and Type Method Description booleanExecutorCalculator. canExecute(@NotNull BuildAgent agent, @NotNull CommonContextMap.ContextWithMetadata contextWithMetadata)voidBuildQueueManager. invalidateExecutables(@NotNull BuildAgent buildAgent)Updates all agent-executable mappings for a given agent.voidBuildQueueManagerImpl. invalidateExecutables(@NotNull BuildAgent buildAgent)voidQueueOfExecutables. recalculateExecutables(BuildAgent agent)Updates all agent-executable mappings for a given agent. -
Uses of BuildAgent in com.atlassian.bamboo.v2.build.queue.queues
Methods in com.atlassian.bamboo.v2.build.queue.queues with parameters of type BuildAgent Modifier and Type Method Description voidAbstractQueueOfExecutables. recalculateExecutables(BuildAgent agent) -
Uses of BuildAgent in com.atlassian.bamboo.webwork
Methods in com.atlassian.bamboo.webwork that return types with arguments of type BuildAgent Modifier and Type Method Description Collection<BuildAgent>StarterAction. getBuildAgents()Collection<BuildAgent>StarterAction. getBusyBuildAgents() -
Uses of BuildAgent in com.atlassian.bamboo.ww2.actions.admin.elastic
Methods in com.atlassian.bamboo.ww2.actions.admin.elastic that return BuildAgent Modifier and Type Method Description @Nullable BuildAgentElasticUIBean. getAgentById(long agentId)@Nullable BuildAgentElasticUIBeanImpl. getAgentById(long agentId)BuildAgentViewElasticInstanceAction. getBuildAgent() -
Uses of BuildAgent in com.atlassian.bamboo.ww2.actions.admin.ephemeral
Methods in com.atlassian.bamboo.ww2.actions.admin.ephemeral that return BuildAgent Modifier and Type Method Description @Nullable BuildAgentViewEphemeralAgentPod. getAgent()BuildAgentManageEphemeralAgentsPodsAction. getAgentByPodName(String podName) -
Uses of BuildAgent in com.atlassian.bamboo.ww2.actions.agent
Classes in com.atlassian.bamboo.ww2.actions.agent that implement BuildAgent Modifier and Type Class Description classBuildAgentDecoratorFields in com.atlassian.bamboo.ww2.actions.agent with type parameters of type BuildAgent Modifier and Type Field Description static com.google.common.base.Function<BuildAgent,BuildAgentDecorator>BuildAgentDecorator. toDecoratorMethods in com.atlassian.bamboo.ww2.actions.agent that return BuildAgent Modifier and Type Method Description BuildAgentViewAgentDetailsAction. getBuildAgent()Methods in com.atlassian.bamboo.ww2.actions.agent with parameters of type BuildAgent Modifier and Type Method Description intBuildAgentDecorator. compareTo(BuildAgent buildAgent)Constructors in com.atlassian.bamboo.ww2.actions.agent with parameters of type BuildAgent Constructor Description AgentAssignmentExecutorDetails(BuildAgent agent, boolean capabilitiesMatch)BuildAgentDecorator(@NotNull BuildAgent buildAgent) -
Uses of BuildAgent in com.atlassian.bamboo.ww2.actions.build.admin.config
Methods in com.atlassian.bamboo.ww2.actions.build.admin.config that return types with arguments of type BuildAgent Modifier and Type Method Description List<BuildAgent>DescribeAgentAvailability. sortMatchingAgents(Collection<BuildAgent> matchingAgents)Method parameters in com.atlassian.bamboo.ww2.actions.build.admin.config with type arguments of type BuildAgent Modifier and Type Method Description List<BuildAgent>DescribeAgentAvailability. sortMatchingAgents(Collection<BuildAgent> matchingAgents) -
Uses of BuildAgent in com.atlassian.bamboo.ww2.actions.chains
Methods in com.atlassian.bamboo.ww2.actions.chains that return BuildAgent Modifier and Type Method Description @Nullable BuildAgentViewChainResult. getAgent(@Nullable Long agentId)
-