private ActionQueue( Set<String> atsAgents, String name, int sequence ) { queuedActions = new ArrayList<ActionRequest>(); inQueueMode = false; if (atsAgents == null) { atsAgents = new HashSet<String>(); } // add default port in case none is not provided by the user String[] atsAgentsArray = HostUtils.getAtsAgentsIpAndPort(new ArrayList<String>(atsAgents).toArray(new String[atsAgents.size()])); this.atsAgents = new HashSet<String>(Arrays.asList(atsAgentsArray)); this.name = name; this.sequence = sequence; }
/** * Constructor providing the ATS agents (used as loaders) to run the test steps from * @param atsAgents array of used ATS agents * loaders */ @PublicAtsApi public LoadClient( String[] atsAgents ) { if (atsAgents == null) { atsAgents = new String[0]; } // add default port in case none is not provided by the user atsAgents = HostUtils.getAtsAgentsIpAndPort(atsAgents); this.loaderAddresses = new HashSet<String>(Arrays.asList(atsAgents)); this.loaderDataConfig = new LoaderDataConfig(); }