Search in sources :

Example 6 with ArtifactHolder

use of org.apache.synapse.aspects.flow.statistics.data.artifact.ArtifactHolder in project wso2-synapse by wso2.

the class StatisticSynapseConfigurationObserver method endpointAdded.

@Override
public void endpointAdded(Endpoint endpoint) {
    ArtifactHolder holder = new ArtifactHolder();
    holder.setParent(endpoint.getName());
    endpoint.setComponentStatisticsId(holder);
    ((AbstractEndpoint) endpoint).getDefinition().getAspectConfiguration().setHashCode(holder.getHashCodeAsString());
    StatisticIdentityGenerator.conclude(holder);
}
Also used : AbstractEndpoint(org.apache.synapse.endpoints.AbstractEndpoint) ArtifactHolder(org.apache.synapse.aspects.flow.statistics.data.artifact.ArtifactHolder)

Aggregations

ArtifactHolder (org.apache.synapse.aspects.flow.statistics.data.artifact.ArtifactHolder)6 ArrayList (java.util.ArrayList)1 Stack (java.util.Stack)1 StructuringElement (org.apache.synapse.aspects.flow.statistics.structuring.StructuringElement)1 SynapseConfiguration (org.apache.synapse.config.SynapseConfiguration)1 AbstractEndpoint (org.apache.synapse.endpoints.AbstractEndpoint)1 BeforeClass (org.junit.BeforeClass)1