com.atlassian.bamboo.v2.build.agent.messages
Class JmsSelectorUtils
java.lang.Object
com.atlassian.bamboo.v2.build.agent.messages.JmsSelectorUtils
public class JmsSelectorUtils
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JMS_PROPERTY_ALLOWABLE_AGENTS
public static final String JMS_PROPERTY_ALLOWABLE_AGENTS
- See Also:
- Constant Field Values
getAgentsMessageProperty
public static String getAgentsMessageProperty(Collection<BuildAgent> executableAgents)
- Creates a comma separated string representing a collection of
BuildAgents
.
Results in format "[12345],[12345]"
- Parameters:
executableAgents
-
- Returns:
getAgentsMessageProperty
public static String getAgentsMessageProperty(Long buildAgentId)
getAgentSelector
public static String getAgentSelector(long id)
- Creates a selector string for an agent to select those messages targeted for it.
Results in format "allowableAgents LIKE '%[12345]%'"
- Parameters:
id
-
- Returns:
getAgentSelector
public static String getAgentSelector(long id,
@Nullable
String fingerprint)
getFingerprintSelector
public static String getFingerprintSelector(@NotNull
String fingerprint)
Copyright © 2015 Atlassian Software Systems Pty Ltd. All rights reserved.