public class DatabaseClient extends Object implements org.onosproject.store.cluster.messaging.ClusterMessageHandler
| Constructor and Description |
|---|
DatabaseClient(DatabaseProtocolService protocol) |
| Modifier and Type | Method and Description |
|---|---|
List<org.onosproject.store.service.ReadResult> |
batchRead(org.onosproject.store.service.BatchReadRequest batchRequest) |
List<org.onosproject.store.service.WriteResult> |
batchWrite(org.onosproject.store.service.BatchWriteRequest batchRequest) |
boolean |
createTable(String tableName) |
boolean |
createTable(String tableName,
int ttlMillis) |
void |
dropAllTables() |
void |
dropTable(String tableName) |
Map<String,org.onosproject.store.service.VersionedValue> |
getAll(String tableName) |
void |
handle(org.onosproject.store.cluster.messaging.ClusterMessage message) |
Set<String> |
listTables() |
void |
waitForLeader() |
public DatabaseClient(DatabaseProtocolService protocol)
public void handle(org.onosproject.store.cluster.messaging.ClusterMessage message)
handle in interface org.onosproject.store.cluster.messaging.ClusterMessageHandlerpublic void waitForLeader()
public boolean createTable(String tableName)
public boolean createTable(String tableName, int ttlMillis)
public void dropTable(String tableName)
public void dropAllTables()
public List<org.onosproject.store.service.ReadResult> batchRead(org.onosproject.store.service.BatchReadRequest batchRequest)
public List<org.onosproject.store.service.WriteResult> batchWrite(org.onosproject.store.service.BatchWriteRequest batchRequest)
Copyright © 2014. All rights reserved.