.. java:import:: java.io File .. java:import:: java.io IOException .. java:import:: java.sql SQLException .. java:import:: java.util LinkedList .. java:import:: org.apache.logging.log4j LogManager .. java:import:: org.apache.logging.log4j Logger .. java:import:: org.caosdb.datetime UTCDateTime .. java:import:: org.caosdb.server CaosDBServer .. java:import:: org.caosdb.server FileSystem .. java:import:: org.caosdb.server.database DatabaseAccessManager .. java:import:: org.caosdb.server.database.access Access .. java:import:: org.caosdb.server.database.backend.transaction GetInfo .. java:import:: org.caosdb.server.database.backend.transaction SyncStats .. java:import:: org.caosdb.server.database.exceptions TransactionException .. java:import:: org.caosdb.server.database.proto ProtoInfo .. java:import:: org.caosdb.server.entity Message .. java:import:: org.caosdb.server.transaction TransactionInterface .. java:import:: org.jdom2 Element Info ==== .. java:package:: org.caosdb.server.utils :noindex: .. java:type:: public class Info extends AbstractObservable implements Observer, TransactionInterface Fields ------ SYNC_DATABASE_EVENT ^^^^^^^^^^^^^^^^^^^ .. java:field:: public static final String SYNC_DATABASE_EVENT :outertype: Info logger ^^^^^^ .. java:field:: public Logger logger :outertype: Info Methods ------- execute ^^^^^^^ .. java:method:: @Override public void execute() throws Exception :outertype: Info getFilesCount ^^^^^^^^^^^^^ .. java:method:: public static final Integer getFilesCount() :outertype: Info getInstance ^^^^^^^^^^^ .. java:method:: public static Info getInstance() :outertype: Info getPropertiesCount ^^^^^^^^^^^^^^^^^^ .. java:method:: public static final Integer getPropertiesCount() :outertype: Info getRecordTypesCount ^^^^^^^^^^^^^^^^^^^ .. java:method:: public static final Integer getRecordTypesCount() :outertype: Info getRecordsCount ^^^^^^^^^^^^^^^ .. java:method:: public static Integer getRecordsCount() throws Exception :outertype: Info getTimestamp ^^^^^^^^^^^^ .. java:method:: @Override public UTCDateTime getTimestamp() :outertype: Info notifyObserver ^^^^^^^^^^^^^^ .. java:method:: @Override public boolean notifyObserver(String e, Observable o) :outertype: Info syncDatabase ^^^^^^^^^^^^ .. java:method:: public void syncDatabase() throws Exception :outertype: Info syncDatabase ^^^^^^^^^^^^ .. java:method:: public void syncDatabase(ServerStat stat) throws TransactionException, Message :outertype: Info timeSinceSync ^^^^^^^^^^^^^ .. java:method:: public long timeSinceSync() :outertype: Info toElement ^^^^^^^^^ .. java:method:: public static Element toElement() throws Exception :outertype: Info toElement ^^^^^^^^^ .. java:method:: public static Element toElement(boolean tree) throws Exception, SQLException :outertype: Info Generates an XML element showing the information for the /Info resource in CaosDB. :return: 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.