Interface QServerMBean
- All Superinterfaces:
QBean, QBeanSupportMBean, QPersist
- All Known Implementing Classes:
QServer
MBean interface.
-
Field Summary
Fields inherited from interface QBean
DESTROYED, FAILED, STARTED, STARTING, stateString, STOPPED, STOPPINGModifier and TypeFieldDescriptionstatic final intQBean has been destroyed.static final intQBean has failed.static final intQBean is running.static final intQBean is in the process of starting.static final String[]Human-readable names for each QBean state, indexed by state constant.static final intQBean is stopped.static final intQBean is in the process of stopping. -
Method Summary
Modifier and TypeMethodDescriptionReturns the configured channel class name.Returns aggregated counters across all active channels.getCountersAsString(String isoChannelName) Returns counters for a single named accepted channel.Returns the names of all currently-active accepted channels, comma-separated.intReturns the configured maximum number of concurrent client sessions.Returns the configured packager class name.intgetPort()Returns the configured listen port.Returns the configured socket-factory class name.voidsetChannel(String channel) Sets the fully qualified channel class name instantiated for each accepted connection.voidsetMaxSessions(int maxSessions) Sets the maximum number of concurrent client sessions accepted by the server.voidsetPackager(String packager) Sets the fully qualified packager class name used by accepted channels.voidsetPort(int port) Sets the TCP port the server listens on.voidsetSocketFactory(String sFactory) Sets the fully qualified socket-factory class name used to create the server socket.Methods inherited from interface QBean
destroy, getState, getStateAsString, init, start, stopMethods inherited from interface QBeanSupportMBean
getDump, getLoader, getLoaderURLS, getLogger, getName, getRealm, getServer, setLogger, setName, setPersist, setRealm, setServerModifier and TypeMethodDescriptiongetDump()Returns a human-readable dump of this bean's state.Returns the QClassLoader for this bean.URL[]Returns the URLs registered with the class loader.Returns the logger name.getName()Returns the bean name.getRealm()Returns the logging realm.Returns the Q2 server instance.voidSets the logger by name.voidSets the bean name.voidsetPersist(org.jdom2.Element e) Sets the persistent configuration element.voidSets the logging realm.voidSets the Q2 server instance for this QBean.Methods inherited from interface QPersist
getPersist, isModifiedModifier and TypeMethodDescriptionorg.jdom2.ElementReturns the persistent configuration element for this QBean.booleanReturnstrueif this QBean's configuration has been modified since last save.
-
Method Details
-
setPort
-
getPort
-
setPackager
Sets the fully qualified packager class name used by accepted channels.- Parameters:
packager- packager class name
-
getPackager
-
setChannel
Sets the fully qualified channel class name instantiated for each accepted connection.- Parameters:
channel- channel class name
-
getChannel
-
setMaxSessions
Sets the maximum number of concurrent client sessions accepted by the server.- Parameters:
maxSessions- maximum sessions
-
getMaxSessions
int getMaxSessions()Returns the configured maximum number of concurrent client sessions.- Returns:
- maximum sessions
-
setSocketFactory
Sets the fully qualified socket-factory class name used to create the server socket.- Parameters:
sFactory- socket factory class name
-
getSocketFactory
Returns the configured socket-factory class name.- Returns:
- socket factory class name
-
getISOChannelNames
Returns the names of all currently-active accepted channels, comma-separated.- Returns:
- comma-separated active channel names
-
getCountersAsString
Returns aggregated counters across all active channels.- Returns:
- counter snapshot suitable for diagnostics
-
getCountersAsString
Returns counters for a single named accepted channel.- Parameters:
isoChannelName- accepted channel's name- Returns:
- counter snapshot suitable for diagnostics, or empty if the channel is unknown
-