public interface ZooInspectorManager extends ZooInspectorNodeManager, ZooInspectorNodeTreeManager
Modifier and Type | Method and Description |
---|---|
void |
addWatchers(Collection<String> selectedNodes,
NodeListener nodeListener) |
boolean |
connect(Properties connectionProps) |
boolean |
disconnect() |
Pair<Map<String,List<String>>,Map<String,String>> |
getConnectionPropertiesTemplate() |
List<String> |
getDefaultNodeViewerConfiguration() |
Properties |
getLastConnectionProps() |
List<String> |
loadNodeViewersFile(File selectedFile) |
void |
removeWatchers(Collection<String> selectedNodes) |
void |
saveDefaultConnectionFile(Properties props) |
void |
saveNodeViewersFile(File selectedFile,
List<String> nodeViewersClassNames) |
void |
setDefaultNodeViewerConfiguration(List<String> nodeViewersClassNames) |
void |
setLastConnectionProps(Properties connectionProps) |
setData
createNode, deleteNode
getACLs, getChildren, getData, getNodeChild, getNodeIndex, getNodeMeta, getNumChildren, getSessionMeta, hasChildren, isAllowsChildren
boolean connect(Properties connectionProps)
connectionProps
- boolean disconnect()
Pair<Map<String,List<String>>,Map<String,String>> getConnectionPropertiesTemplate()
Pair
containing the following:
Map
of property keys to list of possible values. If
the list size is 1 the value is taken to be the default value for
a JTextField
. If the list size is greater than 1, the
values are taken to be the possible options to show in a
JComboBox
with the first selected as default.Map
of property keys to the label to show on the UI
void addWatchers(Collection<String> selectedNodes, NodeListener nodeListener)
selectedNodes
- - the nodes to add the watcher tonodeListener
- - the node listener for this watchervoid removeWatchers(Collection<String> selectedNodes)
selectedNodes
- - the nodes to remove the watchers fromList<String> loadNodeViewersFile(File selectedFile) throws IOException
selectedFile
- - the file to load which contains the node viewers
configurationIOException
- - if the configuration file cannot be loadedvoid saveNodeViewersFile(File selectedFile, List<String> nodeViewersClassNames) throws IOException
selectedFile
- - the file to save the configuration tonodeViewersClassNames
- - the class names of the node viewersIOException
- - if the configuration file cannot be savedvoid setDefaultNodeViewerConfiguration(List<String> nodeViewersClassNames) throws IOException
nodeViewersClassNames
- - the class names of the node viewersIOException
- - if the default configuration file cannot be loadedList<String> getDefaultNodeViewerConfiguration() throws IOException
IOException
- - if the default configuration file cannot be loadedvoid setLastConnectionProps(Properties connectionProps)
connectionProps
- - the connection properties last used to connect to the
zookeeeper instanceProperties getLastConnectionProps()
void saveDefaultConnectionFile(Properties props) throws IOException
props
- - the properties to use as the default connection settingsIOException
- - if the default configuration file cannot be savedCopyright © 2008–2020 The Apache Software Foundation. All rights reserved.