@AutoInitialize(initOrder=3) @AutoStart(startOrder=3) @MetricsReporter public class IntegrationFlow extends Object implements XIntegrationFlow, MetricsReportable
IngressConnectorElement and executes a set of associated
XProcessingElement| Constructor and Description |
|---|
IntegrationFlow() |
| Modifier and Type | Method and Description |
|---|---|
void |
decrementOnTheFlyMsgCount()
Atomically decrement the current on the fly message count of the integration flow by 1, and notify the new value
to the registered message count change subscribers if any.
|
void |
destroy() |
List<XEgressConnectorElement> |
getEgressConnectors()
Retrieves the egress connectors belongs to this integration flow
|
String |
getEntityId()
Returns the entity ID to be used for metrics streams
|
String |
getFlowFile() |
String |
getFlowFileName()
Retrieves the name of the file in which this integration flow is defined
|
String |
getFlowId()
Returns the flow ID to be used for metrics streams
|
String |
getId() |
List<XIngressConnectorElement> |
getIngressConnectors()
Retrieves the ingress connectors belongs to this integration flow
|
XMetricsEngine |
getMetricsEngine()
Retrieves the metrics engine to be used for this class
|
int |
getOnTheFlyMessageCount()
Retrieves the current on the fly message count of this integration flow
|
XProject |
getProject()
Retrieves the
XProject to which this integration flow belongs to |
String |
getProjectId()
Returns the project name to be used for metrics streams
|
String |
getProjectVersion()
Returns the project version to be used for metrics streams
|
Status |
getStatus()
Returns the current status of this Integration Flow
|
File |
getxPosFile() |
void |
incrementOnTheFlyMsgCount()
Atomically increment the current on the fly message count of the integration flow by 1, and notify the new value
to the registered message count change subscribers if any.
|
void |
init(org.springframework.context.ApplicationContext context) |
void |
registerForMessageCountChange(Consumer<Integer> consumer,
boolean sendCurrentCountEvent)
This method can be used to register a subscriber to the on the fly message count changes of the integration flow
|
void |
reportExecutionStatus(ExecutionResult executionResult)
This method can be used to report the execution status of an Integration Flow for tasks such as metrics reporting
|
void |
setBeanName(String s) |
void |
setFlowFile(String flowFile) |
void |
setFlowPath(File flowPath) |
void |
setProject(XProject project) |
void |
setxPosFile(File xPosFile) |
void |
start() |
void |
stop() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAdditionalPropertiesprotected volatile Status status
public String getId()
getId in interface Identifiablepublic void setBeanName(String s)
setBeanName in interface org.springframework.beans.factory.BeanNameAwarepublic void init(org.springframework.context.ApplicationContext context)
init in interface Initializablepublic void destroy()
destroy in interface Initializablepublic void setFlowPath(File flowPath)
public void setFlowFile(String flowFile)
public String getFlowFile()
public XProject getProject()
XProject to which this integration flow belongs togetProject in interface XIntegrationFlowXProjectpublic String getFlowFileName()
XIntegrationFlowgetFlowFileName in interface XIntegrationFlowStringpublic List<XIngressConnectorElement> getIngressConnectors()
XIntegrationFlowgetIngressConnectors in interface XIntegrationFlowXIngressConnectorElementpublic List<XEgressConnectorElement> getEgressConnectors()
XIntegrationFlowgetEgressConnectors in interface XIntegrationFlowXEgressConnectorElementpublic void setProject(XProject project)
public XMetricsEngine getMetricsEngine()
MetricsReportablegetMetricsEngine in interface MetricsReportableXMetricsEnginepublic String getEntityId()
MetricsReportablegetEntityId in interface MetricsReportablepublic String getFlowId()
MetricsReportablegetFlowId in interface MetricsReportablepublic String getProjectId()
MetricsReportablegetProjectId in interface MetricsReportablepublic String getProjectVersion()
MetricsReportablegetProjectVersion in interface MetricsReportablepublic void reportExecutionStatus(ExecutionResult executionResult)
XIntegrationFlowreportExecutionStatus in interface XIntegrationFlowexecutionResult - ExecutionResult of the integration flowpublic Status getStatus()
XIntegrationFlowgetStatus in interface XIntegrationFlowStatuspublic void registerForMessageCountChange(Consumer<Integer> consumer, boolean sendCurrentCountEvent)
XIntegrationFlowregisterForMessageCountChange in interface XIntegrationFlowconsumer - a consumer that accepts Integer values. Each time the on-the-fly message
count changes, this consumer will be executed with the new message countsendCurrentCountEvent - whether to send the on-the-fly message count at the time of the registrationpublic void incrementOnTheFlyMsgCount()
XIntegrationFlowincrementOnTheFlyMsgCount in interface XIntegrationFlowpublic void decrementOnTheFlyMsgCount()
XIntegrationFlowdecrementOnTheFlyMsgCount in interface XIntegrationFlowpublic int getOnTheFlyMessageCount()
XIntegrationFlowgetOnTheFlyMessageCount in interface XIntegrationFlowpublic File getxPosFile()
public void setxPosFile(File xPosFile)
Copyright © 2016–2019 AdroitLogic. All rights reserved.