@ConsoleCommand(aliases = { "status" }, description = "Display information about the database")
public void info() {
if (currentDatabaseName != null) {
out.println("Current database: " + currentDatabaseName + " (url=" + currentDatabase.getURL() + ")");
OStorage stg = currentDatabase.getStorage();
out.println("\nTotal size: " + OFileUtils.getSizeAsString(stg.getSize()));
if (stg instanceof OStorageRemoteThread) {
final ODocument clusterConfig = ((OStorageRemoteThread) stg).getClusterConfiguration();
if (clusterConfig != null)
out.println("\nCluster configuration: " + clusterConfig.toJSON("indent:2"));