public interface EntityConnectionServerAdmin
extends java.rmi.Remote
Modifier and Type | Interface and Description |
---|---|
static interface |
EntityConnectionServerAdmin.GcEvent
Garbage collection event
|
static interface |
EntityConnectionServerAdmin.ThreadStatistics
Thread statistics
|
Modifier and Type | Method and Description |
---|---|
void |
disconnect(java.util.UUID clientId)
Unregisters the connection from the server, if connection pooling is enabled
for the user the connection is pooled.
|
int |
getActiveConnectionCount() |
long |
getAllocatedMemory() |
ClientLog |
getClientLog(java.util.UUID clientId) |
java.util.Collection<RemoteClient> |
getClients() |
java.util.Collection<RemoteClient> |
getClients(java.lang.String clientTypeId) |
java.util.Collection<RemoteClient> |
getClients(User user) |
java.util.Collection<java.lang.String> |
getClientTypes() |
int |
getConnectionCount() |
int |
getConnectionLimit() |
int |
getConnectionPoolCleanupInterval(User user) |
java.util.List<User> |
getConnectionPools() |
ConnectionPoolStatistics |
getConnectionPoolStatistics(User user,
long since) |
int |
getConnectionTimeout()
Returns the connection timeout in ms
|
Database.Statistics |
getDatabaseStatistics() |
java.lang.String |
getDatabaseURL() |
java.util.Map<java.lang.String,java.lang.String> |
getEntityDefinitions() |
java.util.List<EntityConnectionServerAdmin.GcEvent> |
getGcEvents(long since) |
java.lang.Object |
getLoggingLevel() |
int |
getMaintenanceInterval() |
int |
getMaximumConnectionPoolSize(User user) |
int |
getMaximumPoolCheckOutTime(User user) |
int |
getMaximumPoolRetryWaitPeriod(User user) |
long |
getMaxMemory() |
int |
getMinimumConnectionPoolSize(User user) |
int |
getPoolConnectionThreshold(User user) |
int |
getPooledConnectionTimeout(User user) |
double |
getProcessCpuLoad() |
int |
getRequestsPerSecond() |
Server.ServerInfo |
getServerInfo() |
double |
getSystemCpuLoad() |
java.lang.String |
getSystemProperties() |
EntityConnectionServerAdmin.ThreadStatistics |
getThreadStatistics() |
long |
getUsedMemory() |
java.util.Collection<User> |
getUsers() |
boolean |
isCollectFineGrainedPoolStatistics(User user) |
boolean |
isLoggingEnabled(java.util.UUID clientId)
Returns true if logging is enabled for the given connection
|
void |
removeConnections(boolean timedOutOnly)
Removes connections.
|
void |
resetConnectionPoolStatistics(User user)
Resets the statistics that have been collected so far
|
void |
setCollectFineGrainedPoolStatistics(User user,
boolean value) |
void |
setConnectionLimit(int value) |
void |
setConnectionPoolCleanupInterval(User user,
int poolCleanupInterval) |
void |
setConnectionTimeout(int timeout)
Sets the connection timeout in ms
|
void |
setLoggingEnabled(java.util.UUID clientId,
boolean status)
Sets the logging status for the given connection
|
void |
setLoggingLevel(java.lang.Object level) |
void |
setMaintenanceInterval(int interval) |
void |
setMaximumConnectionPoolSize(User user,
int value) |
void |
setMaximumPoolCheckOutTime(User user,
int value) |
void |
setMaximumPoolRetryWaitPeriod(User user,
int value) |
void |
setMinimumConnectionPoolSize(User user,
int value) |
void |
setPoolConnectionThreshold(User user,
int value) |
void |
setPooledConnectionTimeout(User user,
int timeout) |
void |
shutdown()
Shuts down the server
|
void shutdown() throws java.rmi.RemoteException
java.rmi.RemoteException
- in case of a communication errorjava.lang.String getDatabaseURL() throws java.rmi.RemoteException
java.rmi.RemoteException
- in case of a communication errorServer.ServerInfo getServerInfo() throws java.rmi.RemoteException
java.rmi.RemoteException
- in case of an exceptionint getConnectionCount() throws java.rmi.RemoteException
java.rmi.RemoteException
- in case of a communication errorint getConnectionLimit() throws java.rmi.RemoteException
java.rmi.RemoteException
- in case of a communication errorvoid setConnectionLimit(int value) throws java.rmi.RemoteException
value
- the maximum number of concurrent connections this servers acceptsjava.rmi.RemoteException
- in case of a communication errorint getMaintenanceInterval() throws java.rmi.RemoteException
java.rmi.RemoteException
- in case of a communication errorvoid setMaintenanceInterval(int interval) throws java.rmi.RemoteException
interval
- the number of ms that should pass between maintenance cycles,
that is, when inactive clients are purgedjava.rmi.RemoteException
- in case of a communication errorClientLog getClientLog(java.util.UUID clientId) throws java.rmi.RemoteException
clientId
- the ID of the client for which to retrieve the logjava.rmi.RemoteException
- in case of a communication errorint getActiveConnectionCount() throws java.rmi.RemoteException
java.rmi.RemoteException
- in case of a communication errorboolean isLoggingEnabled(java.util.UUID clientId) throws java.rmi.RemoteException
clientId
- the ID of the clientjava.rmi.RemoteException
- in case of a communication errorvoid setLoggingEnabled(java.util.UUID clientId, boolean status) throws java.rmi.RemoteException
clientId
- the ID of the clientstatus
- the new logging statusjava.rmi.RemoteException
- in case of a communication errorlong getAllocatedMemory() throws java.rmi.RemoteException
java.rmi.RemoteException
- in case of a communication errorlong getUsedMemory() throws java.rmi.RemoteException
java.rmi.RemoteException
- in case of a communication errorlong getMaxMemory() throws java.rmi.RemoteException
java.rmi.RemoteException
- in case of a communication errordouble getSystemCpuLoad() throws java.rmi.RemoteException
java.rmi.RemoteException
- in case of a communication errorOperatingSystemMXBean.getSystemCpuLoad()
double getProcessCpuLoad() throws java.rmi.RemoteException
java.rmi.RemoteException
- in case of a communication errorOperatingSystemMXBean.getProcessCpuLoad()
void disconnect(java.util.UUID clientId) throws java.rmi.RemoteException
clientId
- the ID of the clientjava.rmi.RemoteException
- in case of a communication errorjava.lang.Object getLoggingLevel() throws java.rmi.RemoteException
java.rmi.RemoteException
- in case of a communication errorvoid setLoggingLevel(java.lang.Object level) throws java.rmi.RemoteException
level
- the logging leveljava.rmi.RemoteException
- in case of a communication errorjava.util.Collection<User> getUsers() throws java.rmi.RemoteException
java.rmi.RemoteException
- in case of a communication errorjava.util.Collection<RemoteClient> getClients() throws java.rmi.RemoteException
java.rmi.RemoteException
- in case of a communication errorjava.util.Collection<RemoteClient> getClients(User user) throws java.rmi.RemoteException
user
- the user for which to retrieve the clientsjava.rmi.RemoteException
- in case of a communication errorjava.util.Collection<RemoteClient> getClients(java.lang.String clientTypeId) throws java.rmi.RemoteException
clientTypeId
- the client type for which to retrieve the clientsjava.rmi.RemoteException
- in case of a communication errorint getConnectionTimeout() throws java.rmi.RemoteException
java.rmi.RemoteException
- in case of a communication errorvoid setConnectionTimeout(int timeout) throws java.rmi.RemoteException
timeout
- the timeout in msjava.rmi.RemoteException
- in case of a communication errorjava.lang.IllegalArgumentException
- in case timeout is less than zerojava.util.Collection<java.lang.String> getClientTypes() throws java.rmi.RemoteException
java.rmi.RemoteException
- in case of an exceptionjava.util.List<User> getConnectionPools() throws java.rmi.RemoteException
java.rmi.RemoteException
- in case of an exceptionConnectionPoolStatistics getConnectionPoolStatistics(User user, long since) throws java.rmi.RemoteException
user
- the pool usersince
- the time since from which to retrieve pool statisticsjava.rmi.RemoteException
- in case of an exceptionDatabase.Statistics getDatabaseStatistics() throws java.rmi.RemoteException
java.rmi.RemoteException
- in case of an exceptionint getRequestsPerSecond() throws java.rmi.RemoteException
java.rmi.RemoteException
- in case of an exceptionvoid removeConnections(boolean timedOutOnly) throws java.rmi.RemoteException
timedOutOnly
- if true only connections that have timed out are culledjava.rmi.RemoteException
- in case of an exceptionvoid resetConnectionPoolStatistics(User user) throws java.rmi.RemoteException
user
- the pool userjava.rmi.RemoteException
- in case of an exceptionboolean isCollectFineGrainedPoolStatistics(User user) throws java.rmi.RemoteException
user
- the pool userjava.rmi.RemoteException
- in case of an exceptionvoid setCollectFineGrainedPoolStatistics(User user, boolean value) throws java.rmi.RemoteException
user
- the pool uservalue
- true if fine grained statistics should be collected for the given connection pooljava.rmi.RemoteException
- in case of an exceptionjava.lang.String getSystemProperties() throws java.rmi.RemoteException
java.rmi.RemoteException
- in case of an exceptionjava.util.List<EntityConnectionServerAdmin.GcEvent> getGcEvents(long since) throws java.rmi.RemoteException
since
- the time since from which to get gc eventsjava.rmi.RemoteException
- in case of an exceptionEntityConnectionServerAdmin.ThreadStatistics getThreadStatistics() throws java.rmi.RemoteException
java.rmi.RemoteException
- in case of an exceptionjava.util.Map<java.lang.String,java.lang.String> getEntityDefinitions() throws java.rmi.RemoteException
java.rmi.RemoteException
- in case of an exceptionint getConnectionPoolCleanupInterval(User user) throws java.rmi.RemoteException
user
- the pool userjava.rmi.RemoteException
- in case of an exceptionvoid setConnectionPoolCleanupInterval(User user, int poolCleanupInterval) throws java.rmi.RemoteException
user
- the pool userpoolCleanupInterval
- the pool cleanup interval in msjava.rmi.RemoteException
- in case of an exceptionint getPooledConnectionTimeout(User user) throws java.rmi.RemoteException
user
- the pool userjava.rmi.RemoteException
- in case of an exceptionvoid setPooledConnectionTimeout(User user, int timeout) throws java.rmi.RemoteException
user
- the pool usertimeout
- the pooled connection timeout in msjava.rmi.RemoteException
- in case of an exceptionint getMaximumPoolRetryWaitPeriod(User user) throws java.rmi.RemoteException
user
- the pool userjava.rmi.RemoteException
- in case of an exceptionvoid setMaximumPoolRetryWaitPeriod(User user, int value) throws java.rmi.RemoteException
user
- the pool uservalue
- the maximum time to wait between check out retries in msjava.rmi.RemoteException
- in case of an exceptionint getMaximumPoolCheckOutTime(User user) throws java.rmi.RemoteException
user
- the pool userjava.rmi.RemoteException
- in case of an exceptionvoid setMaximumPoolCheckOutTime(User user, int value) throws java.rmi.RemoteException
user
- the pool uservalue
- the maximum time in ms to retry checking out a connection before throwing an exceptionjava.rmi.RemoteException
- in case of an exceptionint getMaximumConnectionPoolSize(User user) throws java.rmi.RemoteException
user
- the pool userjava.rmi.RemoteException
- in case of an exceptionvoid setMaximumConnectionPoolSize(User user, int value) throws java.rmi.RemoteException
user
- the pool uservalue
- the maximum connection pool sizejava.rmi.RemoteException
- in case of an exceptionint getMinimumConnectionPoolSize(User user) throws java.rmi.RemoteException
user
- the pool userjava.rmi.RemoteException
- in case of an exceptionvoid setMinimumConnectionPoolSize(User user, int value) throws java.rmi.RemoteException
user
- the pool uservalue
- the minimum connection pool sizejava.rmi.RemoteException
- in case of an exceptionint getPoolConnectionThreshold(User user) throws java.rmi.RemoteException
user
- the pool userjava.rmi.RemoteException
- in case of an exceptionvoid setPoolConnectionThreshold(User user, int value) throws java.rmi.RemoteException
user
- the pool uservalue
- the number of milliseconds to wait before trying to create a new connectionjava.rmi.RemoteException
- in case of an exception