public interface ServerMBean
getJavaVersion()
and getLocalHostname()
).getLSEdition()
and getConfigAsProperties(java.lang.String)
).getFreeMemory()
and getNewAcceptPauseMillis()
).drainSessions(java.lang.Double)
, getStatus()
, and setMaxSessions(java.lang.Integer)
).disableHostname(java.lang.String)
and getDisabledHostnamesList()
).shutdown()
operation (obviously, the JMX interface is meant to be access-restricted).shutdown()
operation and the getIsFullJMXEnabled()
property to clearly identify the case.
Modifier and Type | Method and Description |
---|---|
java.lang.Boolean |
block(java.lang.Boolean forceRetry)
Stop accepting new Requests for opening new Sessions, but keep
serving currently active Sessions and accept any Requests related
to these Sessions.
|
java.lang.Boolean |
disableHostname(java.lang.String hostname)
Ban a specified host or domain name.
|
java.lang.Boolean |
disableIP(java.lang.String ip)
Ban a specified IP address.
|
java.lang.Boolean |
drainSessions(java.lang.Double secondRate)
Start a background activity to close all sessions at a desired rate.
|
java.lang.Boolean |
enableHostname(java.lang.String hostname)
Remove the ban associated to the specified host or domain name.
|
java.lang.Boolean |
enableIP(java.lang.String ip)
Remove the ban associated to the specified IP address.
|
java.util.Map<java.lang.String,java.lang.String> |
getConfigAsProperties(java.lang.String filter) |
java.lang.String |
getConfigFile(java.lang.String placeholder) |
java.lang.Long |
getCumulAcceptPauseMillis() |
java.util.List<java.lang.String> |
getDisabledHostnamesList() |
java.util.List<java.lang.String> |
getDisabledIPsList() |
java.util.Map<java.lang.String,java.lang.String> |
getEditionConfigAsProperties(java.lang.String filter) |
java.lang.String |
getEditionConfigFile(java.lang.String placeholder) |
java.lang.Long |
getFreeMemory() |
java.lang.Boolean |
getIsFullJMXEnabled() |
java.lang.String |
getJavaVersion() |
java.util.Date |
getLastRefreshTime() |
java.lang.String |
getLocalHostIP() |
java.lang.String |
getLocalHostname() |
java.lang.String |
getLSClientId() |
java.lang.String |
getLSEdition() |
java.lang.String |
getLSLicenseType() |
java.lang.String |
getLSVersion() |
java.lang.Integer |
getMaxMPNDevices() |
java.lang.Integer |
getMaxSessions() |
java.lang.Long |
getNewAcceptPauseMillis() |
java.lang.Integer |
getSamplingPeriodMillis() |
java.util.Date |
getStartupTime() |
java.lang.String |
getStatus() |
java.lang.Long |
getTotalMemory() |
java.lang.Long |
getUptimeMillis() |
java.util.Map<java.lang.String,java.lang.String> |
getVersionConfigAsProperties(java.lang.String filter)
Deprecated.
as referring to old naming;
use
getEditionConfigAsProperties(String) . |
java.lang.String |
getVersionConfigFile(java.lang.String placeholder)
Deprecated.
as referring to old naming;
use
getEditionConfigFile(String) . |
java.lang.Boolean |
healthcheck(java.lang.Boolean ok)
Determines the behavior upon requests to the healthcheck service.
|
void |
setMaxMPNDevices(java.lang.Integer devices) |
void |
setMaxSessions(java.lang.Integer sessions) |
void |
shutdown()
Terminate the Server operations and exit JVM.
|
java.lang.Boolean |
start()
Start accepting new Connections and Requests of any type.
|
java.lang.Boolean |
stop()
Start a background activity to close all Connections,
of any type, and stop accepting Connections
of any type from any client.
|
java.lang.Boolean getIsFullJMXEnabled()
shutdown()
operation.java.lang.Long getTotalMemory()
java.lang.Long getFreeMemory()
java.lang.String getJavaVersion()
java.lang.Long getUptimeMillis()
java.util.Date getStartupTime()
java.lang.String getLSVersion()
java.lang.String getLSEdition()
java.lang.String getLSLicenseType()
java.lang.String getLSClientId()
java.lang.String getLocalHostIP()
java.lang.String getLocalHostname()
java.lang.String getStatus()
drainSessions(Double)
is in place, a descriptive note is appended in the returned text.java.lang.Long getCumulAcceptPauseMillis()
java.lang.Long getNewAcceptPauseMillis()
void shutdown()
java.lang.Boolean stop()
java.lang.Boolean block(java.lang.Boolean forceRetry)
forceRetry
- If true, the client will be asked to try a
reconnection; this makes sense only in a clustering scenario;
otherwise the client will be asked to keep from retrying.java.lang.Boolean drainSessions(java.lang.Double secondRate)
start()
can terminate the draining activity.
On the other hand, if new connections on this instance have to be
prevented, block(Boolean)
can be called first.secondRate
- The desired rate of sessions to be closed per second.
Rates from 1/1000 to 1 million per second are supported.java.lang.Boolean healthcheck(java.lang.Boolean ok)
ok
- If true, the healthcheck service will answer normally;
if false, it will answer with a http 500 error.java.lang.Boolean start()
drainSessions(Double)
will also be interrupted.java.lang.Boolean disableIP(java.lang.String ip)
ip
- an IP address.java.lang.Boolean enableIP(java.lang.String ip)
ip
- an IP address.java.util.List<java.lang.String> getDisabledIPsList()
java.lang.Boolean disableHostname(java.lang.String hostname)
hostname
- a host or domain name.java.lang.Boolean enableHostname(java.lang.String hostname)
hostname
- a host or domain name.java.util.List<java.lang.String> getDisabledHostnamesList()
java.lang.Integer getMaxSessions()
void setMaxSessions(java.lang.Integer sessions)
sessions
- The maximum allowed number of concurrent Sessions (Clients).
0 is used to indicate an unlimited number of Sessions.
This setting overrides the <max_sessions> configuration
setting.
Setting a limit which is lower than the current number of
active sessions does not affect these sessions in any way.getMaxSessions()
java.lang.Integer getMaxMPNDevices()
PushNotificationsMBean.getCurrentMPNDevices()
void setMaxMPNDevices(java.lang.Integer devices)
devices
- The maximum allowed number of concurrent MPN Devices being served
by the Push Notification service in this Server instance.
0 is used to indicate an unlimited number of MPN Devices.
This setting overrides the <max_mpn_devices> configuration
setting.
Setting a limit which is lower than the number of MPN Devices
currently served does not affect these Devices in any way.
The setting is ignored if the internal MPN Module is not enabled.PushNotificationsMBean.getCurrentMPNDevices()
java.lang.Integer getSamplingPeriodMillis()
java.util.Date getLastRefreshTime()
java.lang.String getConfigFile(java.lang.String placeholder)
placeholder
- Dummy argument that turns the property into an operation
and prevents JMX clients from computing the result in a
non-interacting way. It can be left null.@Deprecated java.lang.String getVersionConfigFile(java.lang.String placeholder)
getEditionConfigFile(String)
.placeholder
- Dummy argument that turns the property into an operation
and prevents JMX clients from computing the result in a
non-interacting way. It can be left null.java.lang.String getEditionConfigFile(java.lang.String placeholder)
placeholder
- Dummy argument that turns the property into an operation
and prevents JMX clients from computing the result in a
non-interacting way. It can be left null.java.util.Map<java.lang.String,java.lang.String> getConfigAsProperties(java.lang.String filter)
filter
- A text to be used as a filter for property names, or null
if no filtering is needed.@Deprecated java.util.Map<java.lang.String,java.lang.String> getVersionConfigAsProperties(java.lang.String filter)
getEditionConfigAsProperties(String)
.filter
- A text to be used as a filter for property names, or null
if no filtering is needed.java.util.Map<java.lang.String,java.lang.String> getEditionConfigAsProperties(java.lang.String filter)
filter
- A text to be used as a filter for property names, or null
if no filtering is needed.