@MetricsReporter public abstract class AbstractProcessingElement extends Object implements XProcessingElement, MetricsReportable
Processor
implementationsModifier and Type | Field and Description |
---|---|
protected String |
beanName |
protected org.springframework.context.ApplicationContext |
context |
protected String |
flowId |
protected Logger |
logger |
protected XProject |
project |
protected Status |
status |
Constructor and Description |
---|
AbstractProcessingElement() |
Modifier and Type | Method and Description | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
void |
destroy() |
||||||||||||||||||||||||||||
protected void |
destroyElement() |
||||||||||||||||||||||||||||
Map<String,String> |
getAdditionalProperties()
Returns a map of additional properties to be set in the metrics records
|
||||||||||||||||||||||||||||
String |
getBeanName() |
||||||||||||||||||||||||||||
String |
getEntityId()
Returns the entity ID to be used for metrics streams
|
||||||||||||||||||||||||||||
XProcessingElement |
getErrorHandler() |
||||||||||||||||||||||||||||
String |
getFlowId()
Returns the flow ID to be used for metrics streams
|
||||||||||||||||||||||||||||
XMetricsEngine |
getMetricsEngine()
Retrieves the metrics engine to be used for this class
|
||||||||||||||||||||||||||||
XProject |
getProject() |
||||||||||||||||||||||||||||
String |
getProjectId()
Returns the project name to be used for metrics streams
|
||||||||||||||||||||||||||||
String |
getProjectVersion()
Returns the project version to be used for metrics streams
|
||||||||||||||||||||||||||||
protected URI |
getResource(String resourcePath)
This method gives the resource locations for processing elements and connectors the lookup takes place in the
following order unless the specified path is an absolute path;
A file at "$conf/projects/$projectID/$projectVersion/$mode/$resourcePath
A file at "$conf/projects/$projectID/$projectVersion/$resourcePath
A file at "$conf/projects/$projectID/$mode/$resourcePath
A file at "$conf/projects/$projectID/$resourcePath
A file at $conf/$mode/$resourcePath
A file at $conf/$resourcePath
If environment mode is IDE, src/main/resources/$resourcePath file relative to project dir
A $mode/$resourcePath file in the classpath
A $resourcePath file in the classpath
where the following notation is used for the resource location
Copyright © 2016–2019 AdroitLogic. All rights reserved. |