|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
org.jminor.framework.server.EntityConnectionServerAdminImpl
public final class EntityConnectionServerAdminImpl
Implements the RemoteEntityServerAdmin interface, providing admin access to a RemoteEntityServer instance.
Field Summary |
---|
Fields inherited from class java.rmi.server.RemoteObject |
---|
ref |
Constructor Summary | |
---|---|
EntityConnectionServerAdminImpl(org.jminor.framework.server.EntityConnectionServer server,
boolean sslEnabled)
Instantiates a new RemoteEntityServerAdminImpl |
Methods inherited from class java.rmi.server.UnicastRemoteObject |
---|
clone, exportObject, exportObject, exportObject, unexportObject |
Methods inherited from class java.rmi.server.RemoteServer |
---|
getClientHost, getLog, setLog |
Methods inherited from class java.rmi.server.RemoteObject |
---|
equals, getRef, hashCode, toString, toStub |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public EntityConnectionServerAdminImpl(org.jminor.framework.server.EntityConnectionServer server, boolean sslEnabled) throws RemoteException
server
- the server to administersslEnabled
- true if the server is using SSL connection encryption
RemoteException
- in case of an exceptionMethod Detail |
---|
public String getServerName()
getServerName
in interface EntityConnectionServerAdmin
public int getServerPort() throws RemoteException
getServerPort
in interface EntityConnectionServerAdmin
RemoteException
- in case of a communication errorpublic String getSystemProperties()
getSystemProperties
in interface EntityConnectionServerAdmin
public int getServerDbPort() throws RemoteException
getServerDbPort
in interface EntityConnectionServerAdmin
RemoteException
- in case of a communication errorpublic long getStartDate()
getStartDate
in interface EntityConnectionServerAdmin
public String getDatabaseURL()
getDatabaseURL
in interface EntityConnectionServerAdmin
public ch.qos.logback.classic.Level getLoggingLevel() throws RemoteException
getLoggingLevel
in interface EntityConnectionServerAdmin
RemoteException
- in case of a communication errorpublic void setLoggingLevel(ch.qos.logback.classic.Level level) throws RemoteException
setLoggingLevel
in interface EntityConnectionServerAdmin
level
- the logging level
RemoteException
- in case of a communication errorpublic Collection<User> getUsers() throws RemoteException
getUsers
in interface EntityConnectionServerAdmin
RemoteException
- in case of a communication errorpublic Collection<ClientInfo> getClients(User user) throws RemoteException
getClients
in interface EntityConnectionServerAdmin
user
- the user for which to retrieve the client infos
RemoteException
- in case of a communication errorpublic Collection<ClientInfo> getClients(String clientTypeID) throws RemoteException
getClients
in interface EntityConnectionServerAdmin
clientTypeID
- the client type for which to retrieve the client infos
RemoteException
- in case of a communication errorpublic Collection<ClientInfo> getClients() throws RemoteException
getClients
in interface EntityConnectionServerAdmin
RemoteException
- in case of a communication errorpublic Collection<String> getClientTypes() throws RemoteException
getClientTypes
in interface EntityConnectionServerAdmin
RemoteException
- in case of an exceptionpublic void disconnect(UUID clientID) throws RemoteException
disconnect
in interface EntityConnectionServerAdmin
clientID
- the ID of the client
RemoteException
- in case of a communication errorpublic void shutdown() throws RemoteException
shutdown
in interface EntityConnectionServerAdmin
RemoteException
- in case of a communication errorpublic int getActiveConnectionCount() throws RemoteException
getActiveConnectionCount
in interface EntityConnectionServerAdmin
RemoteException
- in case of a communication errorpublic int getMaintenanceInterval()
getMaintenanceInterval
in interface EntityConnectionServerAdmin
public void setMaintenanceInterval(int interval)
setMaintenanceInterval
in interface EntityConnectionServerAdmin
interval
- the number of ms that should pass between maintenance cycles,
that is, when inactive clients are purgedpublic void removeConnections(boolean inactiveOnly) throws RemoteException
removeConnections
in interface EntityConnectionServerAdmin
inactiveOnly
- if true, only inactive connections are removed
RemoteException
- in case of an exceptionpublic void resetConnectionPoolStatistics(User user) throws RemoteException
resetConnectionPoolStatistics
in interface EntityConnectionServerAdmin
user
- the pool user
RemoteException
- in case of an exceptionpublic boolean isCollectFineGrainedPoolStatistics(User user) throws RemoteException
isCollectFineGrainedPoolStatistics
in interface EntityConnectionServerAdmin
user
- the pool user
RemoteException
- in case of an exceptionpublic void setCollectFineGrainedPoolStatistics(User user, boolean value) throws RemoteException
setCollectFineGrainedPoolStatistics
in interface EntityConnectionServerAdmin
user
- the pool uservalue
- true if fine grained statistics should be collected for the given connection pool
RemoteException
- in case of an exceptionpublic int getRequestsPerSecond() throws RemoteException
getRequestsPerSecond
in interface EntityConnectionServerAdmin
RemoteException
- in case of an exceptionpublic int getWarningTimeThreshold() throws RemoteException
getWarningTimeThreshold
in interface EntityConnectionServerAdmin
RemoteException
- in case of an exceptionpublic void setWarningTimeThreshold(int threshold) throws RemoteException
setWarningTimeThreshold
in interface EntityConnectionServerAdmin
threshold
- the request warning time threshold in ms
RemoteException
- in case of an exceptionpublic int getWarningTimeExceededPerSecond() throws RemoteException
getWarningTimeExceededPerSecond
in interface EntityConnectionServerAdmin
RemoteException
- in case of an exceptionEntityConnectionServerAdmin.setWarningTimeThreshold(int)
public ConnectionPoolStatistics getConnectionPoolStatistics(User user, long since) throws RemoteException
getConnectionPoolStatistics
in interface EntityConnectionServerAdmin
user
- the pool usersince
- the time since from which to retrieve pool statistics
RemoteException
- in case of an exceptionpublic Database.Statistics getDatabaseStatistics() throws RemoteException
getDatabaseStatistics
in interface EntityConnectionServerAdmin
RemoteException
- in case of an exceptionpublic List<User> getEnabledConnectionPools() throws RemoteException
getEnabledConnectionPools
in interface EntityConnectionServerAdmin
RemoteException
- in case of an exceptionpublic boolean isConnectionPoolEnabled(User user) throws RemoteException
isConnectionPoolEnabled
in interface EntityConnectionServerAdmin
user
- the pool user
RemoteException
- in case of an exceptionpublic void setConnectionPoolCleanupInterval(User user, int poolCleanupInterval) throws RemoteException
setConnectionPoolCleanupInterval
in interface EntityConnectionServerAdmin
user
- the pool userpoolCleanupInterval
- the pool cleanup interval in ms
RemoteException
- in case of an exceptionpublic void setConnectionPoolEnabled(User user, boolean enabled) throws RemoteException
setConnectionPoolEnabled
in interface EntityConnectionServerAdmin
user
- the pool userenabled
- the pool enabled status
RemoteException
- in case of an exceptionpublic int getConnectionPoolCleanupInterval(User user) throws RemoteException
getConnectionPoolCleanupInterval
in interface EntityConnectionServerAdmin
user
- the pool user
RemoteException
- in case of an exceptionpublic int getMaximumConnectionPoolSize(User user) throws RemoteException
getMaximumConnectionPoolSize
in interface EntityConnectionServerAdmin
user
- the pool user
RemoteException
- in case of an exceptionpublic int getMinimumConnectionPoolSize(User user) throws RemoteException
getMinimumConnectionPoolSize
in interface EntityConnectionServerAdmin
user
- the pool user
RemoteException
- in case of an exceptionpublic int getPooledConnectionTimeout(User user) throws RemoteException
getPooledConnectionTimeout
in interface EntityConnectionServerAdmin
user
- the pool user
RemoteException
- in case of an exceptionpublic void setMaximumConnectionPoolSize(User user, int value) throws RemoteException
setMaximumConnectionPoolSize
in interface EntityConnectionServerAdmin
user
- the pool uservalue
- the maximum connection pool size
RemoteException
- in case of an exceptionpublic void setMinimumConnectionPoolSize(User user, int value) throws RemoteException
setMinimumConnectionPoolSize
in interface EntityConnectionServerAdmin
user
- the pool uservalue
- the minimum connection pool size
RemoteException
- in case of an exceptionpublic int getPoolConnectionThreshold(User user) throws RemoteException
getPoolConnectionThreshold
in interface EntityConnectionServerAdmin
RemoteException
public void setPoolConnectionThreshold(User user, int value) throws RemoteException
setPoolConnectionThreshold
in interface EntityConnectionServerAdmin
RemoteException
public void setPooledConnectionTimeout(User user, int timeout) throws RemoteException
setPooledConnectionTimeout
in interface EntityConnectionServerAdmin
user
- the pool usertimeout
- the pooled connection timeout in ms
RemoteException
- in case of an exceptionpublic int getMaximumPoolRetryWaitPeriod(User user) throws RemoteException
getMaximumPoolRetryWaitPeriod
in interface EntityConnectionServerAdmin
user
- the pool user
RemoteException
- in case of an exceptionpublic void setMaximumPoolRetryWaitPeriod(User user, int value) throws RemoteException
setMaximumPoolRetryWaitPeriod
in interface EntityConnectionServerAdmin
user
- the pool uservalue
- the maximum time to wait between check out retries in ms
RemoteException
- in case of an exceptionpublic int getMaximumPoolCheckOutTime(User user) throws RemoteException
getMaximumPoolCheckOutTime
in interface EntityConnectionServerAdmin
user
- the pool user
RemoteException
- in case of an exceptionpublic void setMaximumPoolCheckOutTime(User user, int value) throws RemoteException
setMaximumPoolCheckOutTime
in interface EntityConnectionServerAdmin
user
- the pool uservalue
- the maximum time in ms to retry checking out a connection before throwing an exception
RemoteException
- in case of an exceptionpublic String getMemoryUsage() throws RemoteException
getMemoryUsage
in interface EntityConnectionServerAdmin
RemoteException
- in case of a communication errorpublic long getAllocatedMemory() throws RemoteException
getAllocatedMemory
in interface EntityConnectionServerAdmin
RemoteException
- in case of a communication errorpublic long getUsedMemory() throws RemoteException
getUsedMemory
in interface EntityConnectionServerAdmin
RemoteException
- in case of a communication errorpublic long getMaxMemory() throws RemoteException
getMaxMemory
in interface EntityConnectionServerAdmin
RemoteException
- in case of a communication errorpublic void performGC() throws RemoteException
performGC
in interface EntityConnectionServerAdmin
RemoteException
- in case of a communication errorpublic int getConnectionCount()
getConnectionCount
in interface EntityConnectionServerAdmin
public int getConnectionLimit() throws RemoteException
getConnectionLimit
in interface EntityConnectionServerAdmin
RemoteException
- in case of a communication errorpublic void setConnectionLimit(int value) throws RemoteException
setConnectionLimit
in interface EntityConnectionServerAdmin
value
- the maximum number of concurrent connections this servers accepts
RemoteException
- in case of a communication errorpublic ServerLog getServerLog(UUID clientID)
getServerLog
in interface EntityConnectionServerAdmin
clientID
- the ID of the client for which to retrieve the log
public boolean isLoggingOn(UUID clientID) throws RemoteException
isLoggingOn
in interface EntityConnectionServerAdmin
clientID
- the ID of the client
RemoteException
- in case of a communication errorpublic void setLoggingOn(UUID clientID, boolean status)
setLoggingOn
in interface EntityConnectionServerAdmin
clientID
- the ID of the clientstatus
- the new logging statuspublic int getConnectionTimeout() throws RemoteException
getConnectionTimeout
in interface EntityConnectionServerAdmin
RemoteException
- in case of a communication errorpublic void setConnectionTimeout(int timeout) throws RemoteException
setConnectionTimeout
in interface EntityConnectionServerAdmin
timeout
- the timeout in ms
RemoteException
- in case of a communication errorpublic void loadDomainModel(URI location, String domainClassName) throws RemoteException, ClassNotFoundException, IllegalAccessException
loadDomainModel
in interface EntityConnectionServerAdmin
location
- the classpath URIdomainClassName
- the domain class name
RemoteException
- in case of an exception
ClassNotFoundException
- in case the domain class in not found
IllegalAccessException
- in case the class loader access is deniedpublic Map<String,String> getEntityDefinitions() throws RemoteException
getEntityDefinitions
in interface EntityConnectionServerAdmin
RemoteException
- in case of an exceptionpublic static void main(String[] arguments) throws RemoteException
arguments
- no arguments required
RemoteException
- in case of a remote exception during service export
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |