use of org.neo4j.management.ClusterDatabaseInfo in project neo4j by neo4j.
the class ClusterDatabaseInfoProvider method getInfo.
public ClusterDatabaseInfo getInfo() {
ClusterMember currentMember = members.getCurrentMember();
if (currentMember == null) {
return null;
}
Function<Object, String> nullSafeToString = from -> from == null ? "" : from.toString();
return new ClusterDatabaseInfo(new ClusterMemberInfo(currentMember.getInstanceId().toString(), currentMember.getHAUri() != null, true, currentMember.getHARole(), Iterables.asArray(String.class, Iterables.map(nullSafeToString, currentMember.getRoleURIs())), Iterables.asArray(String.class, Iterables.map(nullSafeToString, currentMember.getRoles()))), txIdGetter.getLastTxId(), lastUpdateTime.getLastUpdateTime());
}
Aggregations