use of org.neo4j.management.RemoteConnection in project graphdb by neo4j-attic.
the class Neo4jPlugin method addTabs.
private void addTabs(ManagementAccess manager, String suffix, Map<String, JPanel> result) {
result.put("Neo4j" + suffix, add(new KernelWidget(manager)));
try {
HighAvailability ha = manager.getBean(HighAvailability.class);
if (ha != null) {
result.put("Neo4j HA" + suffix, add(new HaWidget(manager, ha)));
}
} catch (Exception haNotAvailable) {
// ok, just don't include HA info
}
try {
RemoteConnection remote = manager.getBean(RemoteConnection.class);
if (remote != null) {
DataBrowser browser = new DataBrowser(remote);
result.put("Neo4j Graph" + suffix, browser.view());
}
} catch (LinkageError dataBrowserNotAvailable) {
// ok, just don't data browser
} catch (Exception dataBrowserNotAvailable) {
// ok, just don't data browser
}
}
Aggregations