Class UpdateHeartbeatMessage
java.lang.Object
com.atlassian.bamboo.v2.build.agent.messages.AbstractBambooAgentMessage
com.atlassian.bamboo.v2.build.agent.messages.UpdateHeartbeatMessage
- All Implemented Interfaces:
BambooAgentMessage
,Serializable
- See Also:
-
Constructor Summary
ConstructorDescriptionUpdateHeartbeatMessage
(@NotNull Long agentId, @NotNull AgentStatus status, @NotNull SystemInfo systemInfo, @Nullable UUID uuid) -
Method Summary
Modifier and TypeMethodDescriptiondeliver()
Delivers the message to the appropriate object in the local virtual machine.boolean
Value of true indicates that the message send should be attempted even if the agent is in "heart attack" state.Methods inherited from class com.atlassian.bamboo.v2.build.agent.messages.AbstractBambooAgentMessage
getComponent
-
Constructor Details
-
UpdateHeartbeatMessage
public UpdateHeartbeatMessage(@NotNull @NotNull Long agentId, @NotNull @NotNull AgentStatus status, @NotNull @NotNull SystemInfo systemInfo, @Nullable @Nullable UUID uuid)
-
-
Method Details
-
deliver
Description copied from interface:BambooAgentMessage
Delivers the message to the appropriate object in the local virtual machine.- Returns:
- an optional reply to message (including error-reporting messages)
-
shouldBeSentDuringHeartAttack
public boolean shouldBeSentDuringHeartAttack()Description copied from interface:BambooAgentMessage
Value of true indicates that the message send should be attempted even if the agent is in "heart attack" state. "Heart attack" state means that heartbeat timeout has been exceeded, but the agent is still running with limited functionality in order to give itself a chance of finishing current build/deployment and returning its result should the communication be re-established.
-