use of org.apache.synapse.aspects.AspectConfiguration in project wso2-synapse by wso2.
the class InvokeMediator method setComponentStatisticsId.
@Override
public void setComponentStatisticsId(ArtifactHolder holder) {
if (getAspectConfiguration() == null) {
configure(new AspectConfiguration(getMediatorName()));
}
String mediatorId = StatisticIdentityGenerator.getIdForFlowContinuableMediator(getMediatorName(), ComponentType.MEDIATOR, holder);
getAspectConfiguration().setUniqueId(mediatorId);
StatisticIdentityGenerator.reportingFlowContinuableEndEvent(mediatorId, ComponentType.MEDIATOR, holder);
}
use of org.apache.synapse.aspects.AspectConfiguration in project wso2-synapse by wso2.
the class CallMediator method setComponentStatisticsId.
@Override
public void setComponentStatisticsId(ArtifactHolder holder) {
if (getAspectConfiguration() == null) {
configure(new AspectConfiguration(getMediatorName()));
}
String cloneId = StatisticIdentityGenerator.getIdForComponent(getMediatorName(), ComponentType.MEDIATOR, holder);
getAspectConfiguration().setUniqueId(cloneId);
if (endpoint != null && !blocking) {
endpoint.setComponentStatisticsId(holder);
}
StatisticIdentityGenerator.reportingEndEvent(cloneId, ComponentType.MEDIATOR, holder);
}
use of org.apache.synapse.aspects.AspectConfiguration in project wso2-synapse by wso2.
the class CalloutMediator method setComponentStatisticsId.
@Override
public void setComponentStatisticsId(ArtifactHolder holder) {
if (getAspectConfiguration() == null) {
configure(new AspectConfiguration(getMediatorName()));
}
String cloneId = StatisticIdentityGenerator.getIdForComponent(getMediatorName(), ComponentType.MEDIATOR, holder);
getAspectConfiguration().setUniqueId(cloneId);
if (endpointKey != null) {
String childId = StatisticIdentityGenerator.getIdReferencingComponent(endpointKey, ComponentType.ENDPOINT, holder);
StatisticIdentityGenerator.reportingEndEvent(childId, ComponentType.ENDPOINT, holder);
} else if (endpoint != null) {
endpoint.setComponentStatisticsId(holder);
}
StatisticIdentityGenerator.reportingEndEvent(cloneId, ComponentType.MEDIATOR, holder);
}
use of org.apache.synapse.aspects.AspectConfiguration in project wso2-synapse by wso2.
the class SequenceMediator method setComponentStatisticsId.
@Override
public void setComponentStatisticsId(ArtifactHolder holder) {
String sequenceId = null;
// if (sequenceType != SequenceType.ANON) {
if (getAspectConfiguration() == null) {
configure(new AspectConfiguration(name));
}
if (getKey() != null) {
sequenceId = StatisticIdentityGenerator.getIdReferencingComponent(getKey().getKeyValue(), ComponentType.SEQUENCE, holder);
} else {
sequenceId = StatisticIdentityGenerator.getIdForFlowContinuableMediator(getSequenceNameForStatistics(), ComponentType.SEQUENCE, holder);
}
getAspectConfiguration().setUniqueId(sequenceId);
// }
setStatisticIdForMediators(holder);
if (sequenceType != SequenceType.ANON) {
StatisticIdentityGenerator.reportingFlowContinuableEndEvent(sequenceId, ComponentType.SEQUENCE, holder);
}
}
use of org.apache.synapse.aspects.AspectConfiguration in project wso2-synapse by wso2.
the class API method setComponentStatisticsId.
public void setComponentStatisticsId(ArtifactHolder holder) {
if (aspectConfiguration == null) {
aspectConfiguration = new AspectConfiguration(name);
}
String apiId = StatisticIdentityGenerator.getIdForComponent(name, ComponentType.API, holder);
aspectConfiguration.setUniqueId(apiId);
for (Resource resource : resources.values()) {
resource.setComponentStatisticsId(holder);
}
StatisticIdentityGenerator.reportingEndEvent(apiId, ComponentType.API, holder);
}
Aggregations