Info#

public class Info extends AbstractObservable implements Observer, TransactionInterface#

Fields#

SYNC_DATABASE_EVENT#

public static final String SYNC_DATABASE_EVENT#

logger#

public Logger logger#

Methods#

execute#

public void execute()#

getFilesCount#

public static final Integer getFilesCount()#

getInstance#

public static Info getInstance()#

getPropertiesCount#

public static final Integer getPropertiesCount()#

getRecordTypesCount#

public static final Integer getRecordTypesCount()#

getRecordsCount#

public static Integer getRecordsCount()#

getTimestamp#

public UTCDateTime getTimestamp()#

notifyObserver#

public boolean notifyObserver(String e, Observable o)#

syncDatabase#

public void syncDatabase()#

syncDatabase#

public void syncDatabase(ServerStat stat)#

timeSinceSync#

public long timeSinceSync()#

toElement#

public static Element toElement()#

toElement#

public static Element toElement(boolean tree)#

Generates an XML element showing the information for the /Info resource in CaosDB.

Returns:

An XML element containing:

  • The number of records

  • The number of properties

  • The number of record types

  • The number of files

  • The total file size

  • The number of temp files

  • The path of the DropOffBox

  • A tree of files in the DropOffBox

TODO: The error format for missing or not readable drop off box has to be specified.