com.atlassian.bamboo.v2.build.agent.messages
Class JmsSelectorUtils
java.lang.Object
com.atlassian.bamboo.v2.build.agent.messages.JmsSelectorUtils
public class JmsSelectorUtils
- extends java.lang.Object
Method Summary |
static java.lang.String |
getAgentSelector(long id)
Creates a selector string for an agent to select those messages targetted for it. |
static java.lang.String |
getAgentsMessageProperty(java.util.Collection<BuildAgent> executableAgents)
Creates a comma separated string representing a collection of BuildAgents . |
static java.lang.String |
getAgentsMessageProperty(java.lang.Long buildAgentId)
|
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 java.lang.String JMS_PROPERTY_ALLOWABLE_AGENTS
- See Also:
- Constant Field Values
JmsSelectorUtils
public JmsSelectorUtils()
getAgentsMessageProperty
public static java.lang.String getAgentsMessageProperty(java.util.Collection<BuildAgent> executableAgents)
- Creates a comma separated string representing a collection of
BuildAgents
.
Results in format "[12345],[12345]"
- Parameters:
executableAgents
-
- Returns:
getAgentsMessageProperty
public static java.lang.String getAgentsMessageProperty(java.lang.Long buildAgentId)
getAgentSelector
public static java.lang.String getAgentSelector(long id)
- Creates a selector string for an agent to select those messages targetted for it.
Results in format "allowableAgents LIKE '%[12345]%'"
- Parameters:
id
-
- Returns:
Copyright © 2008 Atlassian Pty Ltd. All Rights Reserved.