Class PollingProtocol
- java.lang.Object
-
- jetbrains.buildServer.agent.impl.serverCommunication.PollingProtocol
-
- All Implemented Interfaces:
CommunicationProtocol
public class PollingProtocol extends Object implements CommunicationProtocol
-
-
Field Summary
-
Fields inherited from interface jetbrains.buildServer.agent.impl.serverCommunication.CommunicationProtocol
UNKNOWN_HOST_ERROR_MSG
-
-
Constructor Summary
Constructors Constructor Description PollingProtocol(BuildAgentConfiguration configuration, ServerCommandsPoller serverCommandsPoller, HttpApi serverApi)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getId()
Unique identifiers of the protocol.AgentRegistrationDetails
registerOnServer(AgentDetails agentDetails, BuildAgentImpl buildAgent)
After this call Server-Agent connection is established (in both directions, i.e server can send messages to agent and vice versa).
-
-
-
Constructor Detail
-
PollingProtocol
public PollingProtocol(BuildAgentConfiguration configuration, ServerCommandsPoller serverCommandsPoller, HttpApi serverApi)
-
-
Method Detail
-
getId
@NotNull public String getId()
Description copied from interface:CommunicationProtocol
Unique identifiers of the protocol.- Specified by:
getId
in interfaceCommunicationProtocol
-
registerOnServer
@NotNull public AgentRegistrationDetails registerOnServer(@NotNull AgentDetails agentDetails, @NotNull BuildAgentImpl buildAgent) throws ProtocolDoesNotWorkException
Description copied from interface:CommunicationProtocol
After this call Server-Agent connection is established (in both directions, i.e server can send messages to agent and vice versa).- Specified by:
registerOnServer
in interfaceCommunicationProtocol
- Throws:
ProtocolDoesNotWorkException
- when this protocol doesn't work for some reason.
-
-