public interface MessageConnectorMBean
MessageConnector exposes via JMX.| Modifier and Type | Method and Description |
|---|---|
String |
getAddress()
Address string of connector.
|
default String |
getAggregationPeriod()
Returns the default aggregation period (alias for
getDefaultAggregationPeriod()). |
default String |
getAggregationPeriodInfoStr()
Returns the current effective aggregation period info as JSON across all active connections.
|
int |
getConnectionCount()
Number of established connections
|
default String |
getDefaultAggregationPeriod()
Returns the default aggregation period for server-side connections, or
null if not set. |
String |
getEndpointStats()
Endpoint statistics since last reset
|
String |
getFieldReplacer()
Returns configured input field replacers.
|
default String |
getMaxAggregationPeriod()
Returns the maximum aggregation period bound for server-side connections, or
null if not set. |
default String |
getMinAggregationPeriod()
Returns the minimum aggregation period bound for server-side connections, or
null if not set. |
String |
getName()
Name of connector.
|
String |
getPassword()
User password for authorization.
|
long |
getReconnectDelay()
Delay between reconnection attempts in milliseconds
|
default String |
getRequestedAggregationPeriod()
Returns the client-requested aggregation period string.
|
MessageConnectorState |
getState()
State of connector.
|
int |
getThreadPriority()
Priority for threads associated with this connector
|
String |
getUser()
User login name
Returns connector's user name for authorization.
|
boolean |
isActive()
True when connector is active (started).
|
void |
reconnect()
Reconnects connector.
|
void |
resetEndpointStats()
Resets endpoint statistics
|
void |
restart()
Restarts connector (connection is immediately dropped and established again).
|
com.devexperts.transport.stats.EndpointStats |
retrieveCompleteEndpointStats()
Retrieves endpoint statistics for this message connector since its creation
|
default void |
setDefaultAggregationPeriod(String defaultAggregationPeriod)
Sets the default aggregation period applied when client doesn't specify one.
|
void |
setFieldReplacer(String fieldReplacer)
Sets input field replacers.
|
default void |
setMaxAggregationPeriod(String maxAggregationPeriod)
Sets the maximum bound for aggregation period validation.
|
default void |
setMinAggregationPeriod(String minAggregationPeriod)
Sets the minimum bound for aggregation period validation.
|
void |
setName(String name)
Sets connector's short name for logging and monitoring.
|
void |
setPassword(String password)
Sets password for authorization.
|
void |
setReconnectDelay(long delay)
Sets reconnection delay.
|
default void |
setRequestedAggregationPeriod(String requestedAggregationPeriod)
Sets the requested aggregation period to send to the server via DESCRIBE_PROTOCOL.
|
void |
setThreadPriority(int priority)
Sets thread priority for all threads created by this connector.
|
void |
setUser(String user)
Sets connector's user name for authorization.
|
void |
start()
Starts connector (connection is immediately established).
|
void |
stop()
Stops connector (connection is immediately dropped).
|
String getAddress()
void start()
void stop()
void restart()
void reconnect()
boolean isActive()
MessageConnectorState getState()
String getName()
void setName(String name)
name - connector's new short name for logging and monitoringString getUser()
void setUser(String user)
user - connector's user name for authorization.NullPointerException - if user is nullString getPassword()
void setPassword(String password)
password - password for authorization.NullPointerException - if password is nullint getConnectionCount()
int getThreadPriority()
void setThreadPriority(int priority)
priority - thread priority for all threads created by this connectorlong getReconnectDelay()
void setReconnectDelay(long delay)
delay - reconnection delayString getEndpointStats()
resetEndpointStats().void resetEndpointStats()
com.devexperts.transport.stats.EndpointStats retrieveCompleteEndpointStats()
String getFieldReplacer()
void setFieldReplacer(String fieldReplacer)
fieldReplacer - field replacers specification.default String getAggregationPeriodInfoStr()
{"min":1.5,"max":2.0} (seconds with decimals),
or {"min":-1,"max":-1} if not available.default String getRequestedAggregationPeriod()
null if not set.
Applicable for client-side connectors (propagated to all DistributorAdapters).default void setRequestedAggregationPeriod(String requestedAggregationPeriod)
requestedAggregationPeriod - aggregation period string (e.g. "1s", "0.5s"),
or "undefined"/null/empty to reset (server uses its default)default String getDefaultAggregationPeriod()
null if not set.
Alias: getAggregationPeriod().default void setDefaultAggregationPeriod(String defaultAggregationPeriod)
defaultAggregationPeriod - default aggregation period string (e.g. "1s"), or null to resetdefault String getAggregationPeriod()
getDefaultAggregationPeriod()).default String getMinAggregationPeriod()
null if not set.default void setMinAggregationPeriod(String minAggregationPeriod)
minAggregationPeriod - minimum aggregation period string (e.g. "0.5s"), or null to resetdefault String getMaxAggregationPeriod()
null if not set.default void setMaxAggregationPeriod(String maxAggregationPeriod)
maxAggregationPeriod - maximum aggregation period string (e.g. "5s"), or null to resetCopyright © 2002–2026 Devexperts LLC. All rights reserved.