Class HttpBasedProtocolResolver
- java.lang.Object
-
- jetbrains.buildServer.agent.impl.serverCommunication.HttpBasedProtocolResolver
-
- All Implemented Interfaces:
IServerCommunicationProtocolResolver
public class HttpBasedProtocolResolver extends Object implements IServerCommunicationProtocolResolver
Resolves protocol by negotiation with server via HTTP. Agent asks Server for supported protocols and choose one of it. In 2021.2 we dropped the XML-RPC so for now there is only 'polling' one
-
-
Constructor Summary
Constructors Constructor Description HttpBasedProtocolResolver(BuildAgentConfiguration configuration, PollingProtocol pollingProtocol, HttpApi serverApi)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Iterable<CommunicationProtocol>
resolve()
Returns list of protocols supported by server and agent or empty list if the agent's registration is not available.
-
-
-
Constructor Detail
-
HttpBasedProtocolResolver
public HttpBasedProtocolResolver(@NotNull BuildAgentConfiguration configuration, @NotNull PollingProtocol pollingProtocol, @NotNull HttpApi serverApi)
-
-
Method Detail
-
resolve
@NotNull public Iterable<CommunicationProtocol> resolve()
Description copied from interface:IServerCommunicationProtocolResolver
Returns list of protocols supported by server and agent or empty list if the agent's registration is not available.- Specified by:
resolve
in interfaceIServerCommunicationProtocolResolver
-
-