AnyLogic
Expand
Font size

@AnyLogicInternalAPI
public class ModelDBLogs
extends Object
This class is internal and shouldn't be called by user.
it may be removed/renamed in future.

This class is responsible for storing model logs on the database side.
Author:
AnyLogic North America, LLC https://anylogic.com

Constructor Summary

ConstructorDescription
ModelDBLogs(ModelDBConnectivity database) 

Method Summary

Modifier and TypeMethodDescription
voidclearIncompleteLogEntries() 
static voidcreateLogSchema(Connection connection)
This method is internal and shouldn't be called by user.
it may be removed/renamed in future.
static voiddeleteExistingLogObjects(Connection connection)
This method deletes all the model log data (if any were turned on) from the model database
voidflushIncompleteLogEntries() 
voidlog(ILogEntry logEntry)
This method is internal and shouldn't be called by user.
it may be removed/renamed in future.

Methods inherited from class java.lang.Object

equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Details

ModelDBLogs

public ModelDBLogs(ModelDBConnectivity database)

Method Details

createLogSchema

@AnyLogicInternalAPI
public static void createLogSchema(Connection connection)
                            throws SQLException
This method is internal and shouldn't be called by user.
it may be removed/renamed in future.
Throws:
SQLException

deleteExistingLogObjects

public static void deleteExistingLogObjects(Connection connection)
                                     throws SQLException
This method deletes all the model log data (if any were turned on) from the model database
Parameters:
connection - database connection
Throws:
SQLException

log

@AnyLogicInternalAPI
public void log(ILogEntry logEntry)
This method is internal and shouldn't be called by user.
it may be removed/renamed in future.

clearIncompleteLogEntries

public void clearIncompleteLogEntries()

flushIncompleteLogEntries

public void flushIncompleteLogEntries()
                               throws SQLException
Throws:
SQLException