Examples of TaggedValue


Examples of com.jitlogic.zorka.common.tracedata.TaggedValue

    public Map<String, Object> process(Map<String, Object> record) {

        Object tagObj = tracer.getHandler().getAttr(attrNameId);

        if (tagObj == null) {
            tagObj = new TaggedValue(attrTagId, new HashSet<Integer>());
            tracer.getHandler().newAttr(-1, attrNameId, tagObj);
        }

        if (!(tagObj instanceof TaggedValue) || ((TaggedValue) tagObj).getTagId() != attrTagId) {
            log.error(ZorkaLogger.ZSP_ERRORS, "Trace Tag attribute already occupied with different object: " + record);
View Full Code Here

Examples of com.jitlogic.zorka.common.tracedata.TaggedValue

                TraceRecord top = tracer.getHandler().realTop();
                log.debug(ZorkaLogger.ZSP_ARGPROC, "Value: '" + val + "' stored as trace attribute "
                        + symbolRegistry.symbolName(attrId) + " (classId= " + top.getClassId() + " methodId=" + top.getMethodId()
                        + " signatureId=" + top.getSignatureId() + ")");
            }
            tracer.getHandler().newAttr(traceId, attrId, attrTagId != null ? new TaggedValue(attrTagId, val) : val);
        } else {
            if (ZorkaLogger.isLogLevel(ZorkaLogger.ZSP_ARGPROC)) {
                log.debug(ZorkaLogger.ZSP_ARGPROC, "Null value received. ");
            }
        }
View Full Code Here

Examples of com.jitlogic.zorka.common.tracedata.TaggedValue

     *
     * @param attrName attribute name
     * @param value    attribute value
     */
    public void newAttr(String attrName, String tag, Object value) {
        tracer.getHandler().newAttr(-1, symbolRegistry.symbolId(attrName), new TaggedValue(symbolRegistry.symbolId(tag), value));
    }
View Full Code Here

Examples of com.jitlogic.zorka.common.tracedata.TaggedValue

     * @param value
     */
    public void newTraceAttr(String traceName, String attrName, String tag, Object value) {
        tracer.getHandler().newAttr(
                symbolRegistry.symbolId(traceName), symbolRegistry.symbolId(attrName),
                new TaggedValue(symbolRegistry.symbolId(tag), value));
    }
View Full Code Here

Examples of com.jitlogic.zorka.common.tracedata.TaggedValue

    public void testTraceTaggedAttr() {
        new TraceAttrProcessor(symbols, tracerObj, TraceAttrProcessor.FIELD_GETTING_PROCESSOR, "SQL", null, "SQL", "SQL_QUERY").process(
                ZorkaUtil.<String, Object>map("SQL", "select * from table"));

        traceBuilder.check(0, "action", "newAttr", "attrId", symbols.symbolId("SQL"));
        traceBuilder.check(0, "attrVal", new TaggedValue(symbols.symbolId("SQL_QUERY"), "select * from table"));
    }
View Full Code Here

Examples of com.jitlogic.zorka.common.tracedata.TaggedValue

    @Test
    public void testTraceTags() {
        new TraceTaggerProcessor(symbols, tracerObj, "TAGS", "TAGS", "TAG1", "TAG2").process(null);

        traceBuilder.check(0, "action", "newAttr", "attrId", symbols.symbolId("TAGS"));
        traceBuilder.check(0, "attrVal", new TaggedValue(symbols.symbolId("TAGS"),
                ZorkaUtil.<Integer>set(symbols.symbolId("TAG1"), symbols.symbolId("TAG2"))));

        new TraceTaggerProcessor(symbols, tracerObj, "TAGS", "TAGS", "TAG3", "TAG4").process(null);

        traceBuilder.check(0, "attrVal", new TaggedValue(symbols.symbolId("TAGS"), ZorkaUtil.<Integer>set(
                symbols.symbolId("TAG1"), symbols.symbolId("TAG2"), symbols.symbolId("TAG3"), symbols.symbolId("TAG4"))));

    }
View Full Code Here

Examples of org.omg.uml.foundation.core.TaggedValue

        umlClass.getStereotype().addAll(this.getOrCreateStereotypes(corePackage, this.classStereotypes, "Classifier"));

        if (StringUtils.isNotEmpty(this.tableTaggedValue))
        {
            // add the tagged value for the table name
            TaggedValue taggedValue = this.createTaggedValue(corePackage, this.tableTaggedValue, tableName);
            if (taggedValue != null)
            {
                umlClass.getTaggedValue().add(taggedValue);
            }
        }
View Full Code Here

Examples of org.omg.uml.foundation.core.TaggedValue

                    attribute.setType(typeClass);

                    if (StringUtils.isNotEmpty(this.columnTaggedValue))
                    {
                        // add the tagged value for the column name
                        TaggedValue taggedValue =
                            this.createTaggedValue(corePackage, this.columnTaggedValue, columnName);
                        if (taggedValue != null)
                        {
                            attribute.getTaggedValue().add(taggedValue);
                        }
View Full Code Here

Examples of org.omg.uml.foundation.core.TaggedValue

            foreignEnd.setParticipant(foreignParticipant);

            if (StringUtils.isNotEmpty(this.columnTaggedValue))
            {
                // add the tagged value for the foreign association end
                TaggedValue taggedValue = this.createTaggedValue(corePackage, this.columnTaggedValue, fkColumnName);
                if (taggedValue != null)
                {
                    foreignEnd.getTaggedValue().add(taggedValue);
                }
            }
View Full Code Here

Examples of org.omg.uml.foundation.core.TaggedValue

        String name,
        String value)
    {
        Collection values = new HashSet();
        values.add(value);
        TaggedValue taggedValue =
            corePackage.getTaggedValue().createTaggedValue(name, VisibilityKindEnum.VK_PUBLIC, false, values);

        // see if we can find the tag defintion and if so add that
        // as the type.
        Object tagDefinition = ModelElementFinder.find(this.umlPackage, name);
        if (tagDefinition != null && TagDefinition.class.isAssignableFrom(tagDefinition.getClass()))
        {
            taggedValue.setType((TagDefinition)tagDefinition);
        }
        return taggedValue;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.