List of usage examples for java.util LinkedList add
public boolean add(E e)
From source file:io.github.jrobotframework.keyword.csv.criteria.CSVLineCriteria.java
public LinkedList<String[]> list() { final LinkedList<String[]> results = new LinkedList<String[]>(); for (String[] line : lines) { if (matches(line)) { results.add(line); }/* w w w .j a v a 2 s . c o m*/ } return results; }
From source file:net.datapipe.CloudStack.CloudStackAPI.java
public Document deleteAutoScalePolicy(String id) throws Exception { LinkedList<NameValuePair> arguments = newQueryValues("deleteAutoScalePolicy", null); arguments.add(new NameValuePair("id", id)); return Request(arguments); }
From source file:org.deegree.securityproxy.wms.responsefilter.capabilities.WmsCapabilitiesModificationManagerCreator.java
private LinkedList<ElementPathStep> createPath(String operationType, String getOrPost) { LinkedList<ElementPathStep> path = new LinkedList<ElementPathStep>(); path.add(new ElementPathStep(new QName("http://www.opengis.net/wms", "WMS_Capabilities"))); path.add(new ElementPathStep(new QName("http://www.opengis.net/wms", "Capability"))); path.add(new ElementPathStep(new QName("http://www.opengis.net/wms", "Request"))); path.add(new ElementPathStep(new QName("http://www.opengis.net/wms", operationType))); path.add(new ElementPathStep(new QName("http://www.opengis.net/wms", "DCPType"))); path.add(new ElementPathStep(new QName("http://www.opengis.net/wms", "HTTP"))); path.add(new ElementPathStep(new QName("http://www.opengis.net/wms", getOrPost))); path.add(new ElementPathStep(new QName("http://www.opengis.net/wms", "OnlineResource"))); return path;/*from ww w.ja va2 s. c o m*/ }
From source file:net.datapipe.CloudStack.CloudStackAPI.java
public Document enableAutoScaleVMGroup(String autoScaleVMGroupId) throws Exception { LinkedList<NameValuePair> arguments = newQueryValues("enableAutoScaleVmGroup", null); arguments.add(new NameValuePair("id", autoScaleVMGroupId)); return Request(arguments); }
From source file:net.datapipe.CloudStack.CloudStackAPI.java
public Document deleteAutoScaleVmGroup(String id) throws Exception { LinkedList<NameValuePair> arguments = newQueryValues("deleteAutoScaleVmGroup", null); arguments.add(new NameValuePair("id", id)); return Request(arguments); }
From source file:net.datapipe.CloudStack.CloudStackAPI.java
public Document createCondition(String counterId, String relationalOperator, int threshold, HashMap<String, String> optional) throws Exception { LinkedList<NameValuePair> arguments = newQueryValues("createCondition", optional); arguments.add(new NameValuePair("counterid", counterId)); arguments.add(new NameValuePair("relationaloperator", relationalOperator)); arguments.add(new NameValuePair("threshold", Integer.toString(threshold))); return Request(arguments); }
From source file:eu.stratosphere.pact.test.contracts.CrossITCase.java
@Parameters public static Collection<Object[]> getConfigurations() throws FileNotFoundException, IOException { LinkedList<Configuration> tConfigs = new LinkedList<Configuration>(); String[] localStrategies = { PactCompiler.HINT_LOCAL_STRATEGY_NESTEDLOOP_BLOCKED_OUTER_FIRST, PactCompiler.HINT_LOCAL_STRATEGY_NESTEDLOOP_BLOCKED_OUTER_SECOND, PactCompiler.HINT_LOCAL_STRATEGY_NESTEDLOOP_STREAMED_OUTER_FIRST, PactCompiler.HINT_LOCAL_STRATEGY_NESTEDLOOP_STREAMED_OUTER_SECOND }; String[] shipStrategies = { "BROADCAST_FIRST", "BROADCAST_SECOND" // PactCompiler.HINT_SHIP_STRATEGY_BROADCAST // PactCompiler.HINT_SHIP_STRATEGY_SFR };//w w w.ja va2 s .c om for (String localStrategy : localStrategies) { for (String shipStrategy : shipStrategies) { Configuration config = new Configuration(); config.setString("CrossTest#LocalStrategy", localStrategy); config.setString("CrossTest#ShipStrategy", shipStrategy); config.setInteger("CrossTest#NoSubtasks", 4); tConfigs.add(config); } } return toParameterList(CrossITCase.class, tConfigs); }
From source file:net.datapipe.CloudStack.CloudStackAPI.java
public Document disableAutoScaleVMGroup(String autoScaleVMGroupId) throws Exception { LinkedList<NameValuePair> arguments = newQueryValues("disableAutoScaleVmGroup", null); arguments.add(new NameValuePair("id", autoScaleVMGroupId)); return Request(arguments); }
From source file:net.datapipe.CloudStack.CloudStackAPI.java
public Document deleteAutoScaleVmProfile(String id) throws Exception { LinkedList<NameValuePair> arguments = newQueryValues("deleteAutoScaleVmProfile", null); arguments.add(new NameValuePair("id", id)); return Request(arguments); }
From source file:net.datapipe.CloudStack.CloudStackAPI.java
public Document updateAutoScalePolicy(String id, HashMap<String, String> optional) throws Exception { LinkedList<NameValuePair> arguments = newQueryValues("updateAutoScalePolicy", optional); arguments.add(new NameValuePair("id", id)); return Request(arguments); }