- All Superinterfaces:
Remote
- All Known Subinterfaces:
EntityServerAdmin
- All Known Implementing Classes:
DefaultServerAdmin
Administration interface for a
RemoteServer
.-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
Garbage collection eventstatic interface
Basic server performance statistics.static interface
Thread statistics -
Method Summary
Modifier and TypeMethodDescriptionclients()
int
void
disconnect
(UUID clientId) Unregisters the connection from the server, if connection pooling is enabled for the user the connection is pooled.gcEvents
(long since) int
long
double
int
serverStatistics
(long since) void
setConnectionLimit
(int value) void
shutdown()
Shuts down the serverdouble
long
long
users()
-
Method Details
-
disconnect
Unregisters the connection from the server, if connection pooling is enabled for the user the connection is pooled.- Parameters:
clientId
- the id of the client- Throws:
RemoteException
- in case of a communication error
-
users
- Returns:
- the users currently connected to the server
- Throws:
RemoteException
- in case of a communication error
-
clients
- Returns:
- all clients connected to the server
- Throws:
RemoteException
- in case of a communication error
-
clients
- Parameters:
user
- the user for which to retrieve the clients- Returns:
- the clients associated with the given user
- Throws:
RemoteException
- in case of a communication error
-
clients
- Parameters:
clientTypeId
- the client type for which to retrieve the clients- Returns:
- the clients associated with the given user
- Throws:
RemoteException
- in case of a communication error
-
clientTypes
- Returns:
- the identifiers of the client types connected to the server
- Throws:
RemoteException
- in case of an exception
-
shutdown
Shuts down the server- Throws:
RemoteException
- in case of a communication error
-
serverInformation
- Returns:
- static information about the server
- Throws:
RemoteException
- in case of an exception
-
requestsPerSecond
- Returns:
- the number of service requests per second
- Throws:
RemoteException
- in case of an exception
-
connectionCount
- Returns:
- the number of active connections
- Throws:
RemoteException
- in case of a communication error
-
getConnectionLimit
- Returns:
- the maximum number of concurrent connections this server accepts
- Throws:
RemoteException
- in case of a communication error
-
setConnectionLimit
- Parameters:
value
- the maximum number of concurrent connections this server accepts- Throws:
RemoteException
- in case of a communication error
-
totalMemory
- Returns:
- the total amount of memory allocated by the server process
- Throws:
RemoteException
- in case of a communication error
-
usedMemory
- Returns:
- the amount of memory being used by the server process
- Throws:
RemoteException
- in case of a communication error
-
maxMemory
- Returns:
- the maximum amount of memory available to the server process
- Throws:
RemoteException
- in case of a communication error
-
systemCpuLoad
- Returns:
- the system cpu load, a negative number if not available
- Throws:
RemoteException
- in case of a communication error- See Also:
-
processCpuLoad
- Returns:
- the java vm process cpu load, a negative number if not available
- Throws:
RemoteException
- in case of a communication error- See Also:
-
systemProperties
- Returns:
- the server system properties
- Throws:
RemoteException
- in case of an exception
-
gcEvents
- Parameters:
since
- the time since from which to get gc events- Returns:
- a list containing garbage collection notifications
- Throws:
RemoteException
- in case of an exception
-
threadStatistics
- Returns:
- current thread statistics
- Throws:
RemoteException
- in case of an exception
-
serverStatistics
- Parameters:
since
- the time since from which to retrieve statistics- Returns:
- current statistics for this server
- Throws:
RemoteException
- in case of an exception
-