Yuta HIGUCHI

DistributedLinkResourceStore

Change-Id: Ia45c221946693906c12d64f20f25e30786a04224
......@@ -17,6 +17,7 @@ package org.onlab.onos.net.resource;
import java.util.Objects;
// FIXME: Document what is the unit? Mbps?
/**
* Representation of bandwidth resource.
*/
......
......@@ -49,6 +49,10 @@ public final class BatchWriteRequest {
.toString();
}
public static Builder newBuilder() {
return new Builder();
}
/**
* Builder for BatchWriteRequest.
*/
......
......@@ -64,13 +64,13 @@ public class WriteRequest {
*
* @param tableName name of the table
* @param key key in the table
* @param newValue value to write, must not be null
* @param oldValue previous value expected, must not be null
* @param newValue value to write, must not be null
* @return WriteRequest
*/
public static WriteRequest putIfValueMatches(String tableName, String key,
byte[] newValue,
byte[] oldValue) {
byte[] oldValue,
byte[] newValue) {
return new WriteRequest(PUT_IF_VALUE, tableName, key,
checkNotNull(newValue), ANY_VERSION,
checkNotNull(oldValue));
......