public class ServerManagement extends Object implements XServerManagementMXBean
Constructor and Description |
---|
ServerManagement(ServerConfig serverConfig) |
Modifier and Type | Method and Description |
---|---|
void |
clearAllMessageTraces()
Clears all the message paths currently traced in the memory
|
void |
clearMessageTrace(String projectId,
String projectVersion,
String flowId)
Clears a message path of the given integration flow currently traced in the memory
|
void |
disableMessageTracing()
Disables integration flow message tracing functionality
|
void |
enableMessageTracing()
Enables integration flow message tracing functionality
|
void |
gracefulShutdown(long waitTimeMillis)
Shutdown the XServer gracefully within the specified grace period.
|
boolean |
isMessageTracingEnabled()
Checks whether the integration flow message tracing functionality is enabled *
|
List<IntegrationFlowTraceNode> |
retrieveMessagePath(String projectId,
String projectVersion,
String flowId)
Retrieves the last traced message path
|
XMessageView |
retrieveMessageView(String projectId,
String projectVersion,
String flowId,
String sourceId,
String outPortDisplayName,
String targetId)
Retrieves traced message view between two integration flow elements
|
XMessageView |
retrieveReceivedMessage(String projectId,
String projectVersion,
String flowId,
String elementId)
Retrieves traced received message view of a flow element
|
void |
shutdownXServer()
Shutdown the XServer destroying its transports, projects, integration flow and finally exit the JVM
|
void |
startMaintenance()
Starts the maintenance mode of XServer
|
void |
startXServer()
Starts the XServer and its transports, projects and integration flows.
|
void |
stopMaintenance()
Resume normal operations from maintenance mode
|
void |
stopXServer()
Stops the XServer and its transports, projects and integration flows.
|
public ServerManagement(ServerConfig serverConfig)
public void stopXServer()
XServerManagementMXBean.shutdownXServer()
method.stopXServer
in interface XServerManagementMXBean
public void startXServer()
startXServer
in interface XServerManagementMXBean
public void shutdownXServer()
XServerManagementMXBean
shutdownXServer
in interface XServerManagementMXBean
public void startMaintenance()
XServerManagementMXBean
startMaintenance
in interface XServerManagementMXBean
public void stopMaintenance()
XServerManagementMXBean
stopMaintenance
in interface XServerManagementMXBean
public void gracefulShutdown(long waitTimeMillis)
XServerManagementMXBean
gracefulShutdown
in interface XServerManagementMXBean
waitTimeMillis
- the maximum time period (in milliseconds ) that the shutdown action will wait for the
server to become idle after entering the maintenance modepublic void enableMessageTracing()
enableMessageTracing
in interface XServerManagementMXBean
public void disableMessageTracing()
disableMessageTracing
in interface XServerManagementMXBean
public boolean isMessageTracingEnabled()
isMessageTracingEnabled
in interface XServerManagementMXBean
public void clearAllMessageTraces()
clearAllMessageTraces
in interface XServerManagementMXBean
public void clearMessageTrace(String projectId, String projectVersion, String flowId)
clearMessageTrace
in interface XServerManagementMXBean
projectId
- ID of the project to which the integration flow belongs toprojectVersion
- version of the project to which the integration flow belongs toflowId
- ID of the XIntegrationFlow
instancepublic List<IntegrationFlowTraceNode> retrieveMessagePath(String projectId, String projectVersion, String flowId)
retrieveMessagePath
in interface XServerManagementMXBean
projectId
- ID of the project to which the integration flow belongs toprojectVersion
- version of the project to which the integration flow belongs toflowId
- ID of the XIntegrationFlow
instanceIntegrationFlowTraceNode
public XMessageView retrieveMessageView(String projectId, String projectVersion, String flowId, String sourceId, String outPortDisplayName, String targetId)
retrieveMessageView
in interface XServerManagementMXBean
projectId
- ID of the project to which the integration flow belongs toprojectVersion
- version of the project to which the integration flow belongs toflowId
- ID of the XIntegrationFlow
instancesourceId
- bean ID of the source elementoutPortDisplayName
- display name of the source outporttargetId
- bean ID of the target elementXMessageView
public XMessageView retrieveReceivedMessage(String projectId, String projectVersion, String flowId, String elementId)
retrieveReceivedMessage
in interface XServerManagementMXBean
projectId
- ID of the project to which the integration flow belongs toprojectVersion
- version of the project to which the integration flow belongs toflowId
- ID of the XIntegrationFlow
instanceelementId
- bean ID of the elementXMessageView
Copyright © 2016–2019 AdroitLogic. All rights reserved.