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 Object


Field Summary
static String JMS_PROPERTY_ALLOWABLE_AGENTS
           
 
Method Summary
static String getAgentSelector(long id)
          Creates a selector string for an agent to select those messages targeted for it.
static String getAgentSelector(long id, String fingerprint)
           
static String getAgentsMessageProperty(Collection<BuildAgent> executableAgents)
          Creates a comma separated string representing a collection of BuildAgents.
static String getAgentsMessageProperty(Long buildAgentId)
           
static String getFingerprintSelector(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 String JMS_PROPERTY_ALLOWABLE_AGENTS
See Also:
Constant Field Values
Method Detail

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.