- All Superinterfaces:
Remote,ServerAdmin
Defines the entity server admin service methods.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceBasic information about an entity definition.static interfaceBasic information about an operation.static interfaceBasic information about a report.Nested classes/interfaces inherited from interface is.codion.common.rmi.server.ServerAdmin
ServerAdmin.GcEvent, ServerAdmin.ServerStatistics, ServerAdmin.ThreadStatistics -
Method Summary
Modifier and TypeMethodDescriptionvoidClears any cached reportsbooleancollectPoolCheckOutTimes(String username) voidcollectPoolCheckOutTimes(String username, boolean collectCheckOutTimes) booleancollectPoolSnapshotStatistics(String username) voidcollectPoolSnapshotStatistics(String username, boolean snapshotStatistics) intconnectionPoolCleanupInterval(String username) voidconnectionPoolCleanupInterval(String username, int poolCleanupInterval) connectionPoolStatistics(String username, long since) Returns the statistics gathered viaDatabase.queryCounter().voidDisconnects all connected clients.voidDisconnects all timed-out clients.intReturns the idle connection timeout in msvoididleConnectionTimeout(int idleConnectionTimeout) Sets the idle connection timeout in msloggers()voidintvoidmaintenanceInterval(int interval) intmaximumConnectionPoolSize(String username) voidmaximumConnectionPoolSize(String username, int value) intmaximumPoolCheckOutTime(String username) voidmaximumPoolCheckOutTime(String username, int value) methodTraces(UUID clientId) intminimumConnectionPoolSize(String username) voidminimumConnectionPoolSize(String username, int value) intpooledConnectionIdleTimeout(String username) voidpooledConnectionIdleTimeout(String username, int pooledConnectionIdleTimeout) voidresetConnectionPoolStatistics(String username) Resets the statistics that have been collected so farbooleantraceToFile(UUID clientId) voidtraceToFile(UUID clientId, boolean traceToFile) booleantracingEnabled(UUID clientId) Returns true if logging is enabled for the given connectionvoidtracingEnabled(UUID clientId, boolean tracingEnabled) Sets the method tracing status for the given connectionMethods inherited from interface is.codion.common.rmi.server.ServerAdmin
clients, connectionCount, connectionLimit, connectionLimit, disconnect, lastMaintenance, serializationFilterPatterns, serverInformation, shutdown, statistics, systemProperties, users
-
Method Details
-
databaseUrl
- Returns:
- the database URL
- Throws:
RemoteException- in case of a communication error
-
maintenanceInterval
- Returns:
- the number of ms that should pass between maintenance cycles, that is, when inactive clients are purged
- Throws:
RemoteException- in case of a communication error
-
maintenanceInterval
- Parameters:
interval- the number of ms that should pass between maintenance cycles, that is, when inactive clients are purged- Throws:
RemoteException- in case of a communication error
-
methodTraces
- Parameters:
clientId- the id of the client for which to retrieve the log- Returns:
- the method trace log for the given connection
- Throws:
RemoteException- in case of a communication error
-
traceToFile
- Parameters:
clientId- the client id- Returns:
- true if method traces are written to file for the given client
- Throws:
RemoteException- in case of a communication error
-
traceToFile
- Parameters:
clientId- the client idtraceToFile- true if method traces should be written to file- Throws:
RemoteException- in case of a communication error
-
tracingEnabled
Returns true if logging is enabled for the given connection- Parameters:
clientId- the id of the client- Returns:
- true if method tracing is enabled for the given connection
- Throws:
RemoteException- in case of a communication error
-
tracingEnabled
Sets the method tracing status for the given connection- Parameters:
clientId- the id of the clienttracingEnabled- the new tracing status- Throws:
RemoteException- in case of a communication error
-
logLevel
- Parameters:
logger- the logger- Returns:
- the log level
- Throws:
RemoteException- in case of a communication error
-
logLevel
- Parameters:
logger- the loggerlevel- the log level- Throws:
RemoteException- in case of a communication error
-
rootLogger
- Returns:
- the root logger name
- Throws:
RemoteException
-
loggers
- Returns:
- the active server loggers
- Throws:
RemoteException- in case of a communication error
-
logLevels
- Returns:
- the server log levels
- Throws:
RemoteException- in case of a communication error
-
idleConnectionTimeout
Returns the idle connection timeout in ms- Returns:
- the idle connection timeout in ms
- Throws:
RemoteException- in case of a communication error
-
idleConnectionTimeout
Sets the idle connection timeout in ms- Parameters:
idleConnectionTimeout- the timeout in ms- Throws:
RemoteException- in case of a communication errorIllegalArgumentException- in case timeout is less than zero
-
connectionPoolUsernames
- Returns:
- a collection containing usernames backed by a connection pool
- Throws:
RemoteException- in case of an exception
-
connectionPoolStatistics
ConnectionPoolStatistics connectionPoolStatistics(String username, long since) throws RemoteException - Parameters:
username- the usernamesince- the time since from which to retrieve pool statistics- Returns:
- the pool statistics
- Throws:
RemoteException- in case of an exception
-
databaseStatistics
Returns the statistics gathered viaDatabase.queryCounter().- Returns:
- a
Database.Statisticsobject containing query statistics collected since the last time this function was called. - Throws:
RemoteException- in case of an exception
-
disconnectTimedOutClients
Disconnects all timed-out clients.- Throws:
RemoteException- in case of an exception
-
disconnectAllClients
Disconnects all connected clients.- Throws:
RemoteException- in case of an exception
-
resetConnectionPoolStatistics
Resets the statistics that have been collected so far- Parameters:
username- the username- Throws:
RemoteException- in case of an exception
-
collectPoolSnapshotStatistics
- Parameters:
username- the username- Returns:
- true if snapshot statistics should be collected for the given connection pool
- Throws:
RemoteException- in case of an exception
-
collectPoolSnapshotStatistics
void collectPoolSnapshotStatistics(String username, boolean snapshotStatistics) throws RemoteException - Parameters:
username- the usernamesnapshotStatistics- true if statistics should be collected for a snapshot of the given connection pool- Throws:
RemoteException- in case of an exception
-
collectPoolCheckOutTimes
- Parameters:
username- the username- Returns:
- true if check out times statistics should be collected for the given connection pool
- Throws:
RemoteException- in case of an exception
-
collectPoolCheckOutTimes
- Parameters:
username- the usernamecollectCheckOutTimes- true if check out times should be collected for the given connection pool- Throws:
RemoteException- in case of an exception
-
domainEntityDefinitions
Map<String,Collection<EntityServerAdmin.DomainEntityDefinition>> domainEntityDefinitions() throws RemoteException- Returns:
- a map containing each domain name and its entity definitions
- Throws:
RemoteException- in case of an exception
-
domainReports
- Returns:
- a map containing each domain name with its reports
- Throws:
RemoteException- in case of an exception
-
domainOperations
- Returns:
- a map containing each domain name with its operations
- Throws:
RemoteException- in case of an exception
-
clearReportCache
Clears any cached reports- Throws:
RemoteException- in case of an exception
-
connectionPoolCleanupInterval
- Parameters:
username- the username- Returns:
- the pool cleanup interval in ms
- Throws:
RemoteException- in case of an exception
-
connectionPoolCleanupInterval
- Parameters:
username- the usernamepoolCleanupInterval- the pool cleanup interval in ms- Throws:
RemoteException- in case of an exception
-
pooledConnectionIdleTimeout
- Parameters:
username- the username- Returns:
- the pooled connection timeout in ms
- Throws:
RemoteException- in case of an exception
-
pooledConnectionIdleTimeout
void pooledConnectionIdleTimeout(String username, int pooledConnectionIdleTimeout) throws RemoteException - Parameters:
username- the usernamepooledConnectionIdleTimeout- the pooled connection timeout in ms- Throws:
RemoteException- in case of an exception
-
maximumPoolCheckOutTime
- Parameters:
username- the username- Returns:
- the maximum time in ms to retry checking out a connection before throwing an exception
- Throws:
RemoteException- in case of an exception
-
maximumPoolCheckOutTime
- Parameters:
username- the usernamevalue- the maximum time in ms to retry checking out a connection before throwing an exception- Throws:
RemoteException- in case of an exception
-
maximumConnectionPoolSize
- Parameters:
username- the username- Returns:
- the maximum connection pool size
- Throws:
RemoteException- in case of an exception
-
maximumConnectionPoolSize
- Parameters:
username- the usernamevalue- the maximum connection pool size- Throws:
RemoteException- in case of an exception
-
minimumConnectionPoolSize
- Parameters:
username- the username- Returns:
- the minimum connection pool size
- Throws:
RemoteException- in case of an exception
-
minimumConnectionPoolSize
- Parameters:
username- the usernamevalue- the minimum connection pool size- Throws:
RemoteException- in case of an exception
-