@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, wait
getAdditionalProperties
protected volatile Status status
public String getId()
getId
in interface Identifiable
public void setBeanName(String s)
setBeanName
in interface org.springframework.beans.factory.BeanNameAware
public void init(org.springframework.context.ApplicationContext context)
init
in interface Initializable
public void destroy()
destroy
in interface Initializable
public 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 XIntegrationFlow
XProject
public String getFlowFileName()
XIntegrationFlow
getFlowFileName
in interface XIntegrationFlow
String
public List<XIngressConnectorElement> getIngressConnectors()
XIntegrationFlow
getIngressConnectors
in interface XIntegrationFlow
XIngressConnectorElement
public List<XEgressConnectorElement> getEgressConnectors()
XIntegrationFlow
getEgressConnectors
in interface XIntegrationFlow
XEgressConnectorElement
public void setProject(XProject project)
public XMetricsEngine getMetricsEngine()
MetricsReportable
getMetricsEngine
in interface MetricsReportable
XMetricsEngine
public String getEntityId()
MetricsReportable
getEntityId
in interface MetricsReportable
public String getFlowId()
MetricsReportable
getFlowId
in interface MetricsReportable
public String getProjectId()
MetricsReportable
getProjectId
in interface MetricsReportable
public String getProjectVersion()
MetricsReportable
getProjectVersion
in interface MetricsReportable
public void reportExecutionStatus(ExecutionResult executionResult)
XIntegrationFlow
reportExecutionStatus
in interface XIntegrationFlow
executionResult
- ExecutionResult
of the integration flowpublic Status getStatus()
XIntegrationFlow
getStatus
in interface XIntegrationFlow
Status
public void registerForMessageCountChange(Consumer<Integer> consumer, boolean sendCurrentCountEvent)
XIntegrationFlow
registerForMessageCountChange
in interface XIntegrationFlow
consumer
- 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()
XIntegrationFlow
incrementOnTheFlyMsgCount
in interface XIntegrationFlow
public void decrementOnTheFlyMsgCount()
XIntegrationFlow
decrementOnTheFlyMsgCount
in interface XIntegrationFlow
public int getOnTheFlyMessageCount()
XIntegrationFlow
getOnTheFlyMessageCount
in interface XIntegrationFlow
public File getxPosFile()
public void setxPosFile(File xPosFile)
Copyright © 2016–2019 AdroitLogic. All rights reserved.