public class TabletDefinitionStore extends Object
| Constructor and Description |
|---|
TabletDefinitionStore(File filePath)
Creates a reader/writer of the tablet definition file.
|
TabletDefinitionStore(String filePath)
Creates a reader/writer of the tablet definition file.
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,Set<org.onosproject.cluster.DefaultControllerNode>> |
read()
Returns the Map from tablet name to set of initial member nodes.
|
void |
write(String tabletName,
Set<org.onosproject.cluster.DefaultControllerNode> nodes)
Updates the Map from tablet name to set of member nodes.
|
public TabletDefinitionStore(String filePath)
filePath - location of the definition filepublic TabletDefinitionStore(File filePath)
filePath - location of the definition filepublic Map<String,Set<org.onosproject.cluster.DefaultControllerNode>> read() throws IOException
IOException - when I/O exception of some sort has occurred.public void write(String tabletName, Set<org.onosproject.cluster.DefaultControllerNode> nodes) throws IOException
tabletName - name of the tablet to updatenodes - set of initial member nodesIOException - when I/O exception of some sort has occurred.Copyright © 2014. All rights reserved.