com.atlassian.bamboo.v2.build.agent.messages
Class JmsSelectorUtils

java.lang.Object
  extended by com.atlassian.bamboo.v2.build.agent.messages.JmsSelectorUtils

public class JmsSelectorUtils
extends java.lang.Object


Field Summary
static java.lang.String JMS_PROPERTY_ALLOWABLE_AGENTS
           
 
Method Summary
static java.lang.String getAgentSelector(long id)
          Creates a selector string for an agent to select those messages targeted for it.
static java.lang.String getAgentSelector(long id, java.lang.String fingerprint)
           
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)
           
static java.lang.String getFingerprintSelector(java.lang.String fingerprint)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JMS_PROPERTY_ALLOWABLE_AGENTS

public static final java.lang.String JMS_PROPERTY_ALLOWABLE_AGENTS
See Also:
Constant Field Values
Method Detail

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 targeted for it. Results in format "allowableAgents LIKE '%[12345]%'"

Parameters:
id -
Returns:

getAgentSelector

public static java.lang.String getAgentSelector(long id,
                                                @Nullable
                                                java.lang.String fingerprint)

getFingerprintSelector

public static java.lang.String getFingerprintSelector(@NotNull
                                                      java.lang.String fingerprint)


Copyright © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.