public interface ServerMBean
Modifier and Type | Method and Description |
---|---|
java.lang.Boolean |
block()
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 |
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 |
getConfigAsProperties(java.lang.String filter) |
java.lang.String |
getConfigFile(java.lang.String placeholder) |
java.util.List |
getDisabledHostnamesList() |
java.util.List |
getDisabledIPsList() |
java.lang.Long |
getFreeMemory() |
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.Integer |
getSamplingPeriodMillis() |
java.util.Date |
getStartupTime() |
java.lang.String |
getStatus() |
java.lang.Long |
getTotalMemory() |
java.lang.Long |
getUptimeMillis() |
java.util.Map |
getVersionConfigAsProperties(java.lang.String filter) |
java.lang.String |
getVersionConfigFile(java.lang.String placeholder) |
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()
Close all Connections, of any type, and stop accepting Connections
of any type from any client.
|
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()
void shutdown()
java.lang.Boolean stop()
java.lang.Boolean block()
java.lang.Boolean start()
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 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 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.java.lang.String getVersionConfigFile(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 getConfigAsProperties(java.lang.String filter)
filter
- A text to be used as a filter for property names, or null
if no filtering is needed.java.util.Map getVersionConfigAsProperties(java.lang.String filter)
filter
- A text to be used as a filter for property names, or null
if no filtering is needed.