if (null == flow.isBarrier()) {
flow.setBarrier(Boolean.FALSE);
}
- BigInteger value = new BigInteger("10", 10);
+ BigInteger value = BigInteger.valueOf(10);
flow.setCookie(new FlowCookie(value));
flow.setCookieMask(new FlowCookie(value));
flow.setHardTimeout(0);
if (null == flow.isBarrier()) {
flow.setBarrier(Boolean.FALSE);
}
- BigInteger value = new BigInteger("10", 10);
+ BigInteger value = BigInteger.valueOf(10);
flow.setCookie(new FlowCookie(value));
flow.setCookieMask(new FlowCookie(value));
flow.setHardTimeout(0);
private static InstructionsBuilder createMetadataInstructions() {
WriteMetadataBuilder aab = new WriteMetadataBuilder();
- aab.setMetadata(new BigInteger("10", 10));
- aab.setMetadataMask(new BigInteger("12", 10));
+ aab.setMetadata(BigInteger.valueOf(10));
+ aab.setMetadataMask(BigInteger.valueOf(10));
InstructionBuilder ib = new InstructionBuilder();
ib.setInstruction(new WriteMetadataCaseBuilder().setWriteMetadata(aab.build()).build());
/**
* @param ci arguments: switchId flowType tableNum
- * <p/>
+ * <p>
* <pre>
* e.g.: addMDFlow openflow:1 f1 42
* </pre>
int threadCount = 0;
if (numberOfSwtichesStr != null && !numberOfSwtichesStr.trim().equals("")) {
- numberOfSwtiches = new Integer(numberOfSwtichesStr).intValue();
+ numberOfSwtiches = Integer.parseInt(numberOfSwtichesStr);
} else {
numberOfSwtiches = 2;
}
if (numberOfFlowsStr != null && !numberOfFlowsStr.trim().equals("")) {
- numberOfFlows = new Integer(numberOfFlowsStr).intValue();
+ numberOfFlows = Integer.parseInt(numberOfFlowsStr);
} else {
numberOfFlows = 2;
}
if (warmupIterationsStr != null && !warmupIterationsStr.trim().equals("")) {
- warmupIterations = new Integer(warmupIterationsStr).intValue();
+ warmupIterations = Integer.parseInt(warmupIterationsStr);
} else {
warmupIterations = 2;
}
if (threadCountStr != null && !threadCountStr.trim().equals("")) {
- threadCount = new Integer(threadCountStr).intValue();
+ threadCount = Integer.parseInt(threadCountStr);
} else {
threadCount = 2;
}