Examples of Audit


Examples of com.espertech.esper.client.annotation.Audit

        {
            filterService = isolationUnitServices.getFilterService();
            schedulingService = isolationUnitServices.getSchedulingService();
        }

        Audit scheduleAudit = AuditEnum.SCHEDULE.getAudit(annotations);
        if (scheduleAudit != null) {
            schedulingService = new SchedulingServiceAudit(statementName, schedulingService);
        }

        // Create statement context
View Full Code Here

Examples of com.espertech.esper.client.annotation.Audit

            }
        }

        // For top-level expressions check if we perform audit
        if (isTopLevel) {
            Audit audit = AuditEnum.EXPRESSION.getAudit(validationContext.getAnnotations());
            if (audit != null) {
                return (ExprNode) ExprNodeProxy.newInstance(validationContext.getStatementName(), result);
            }
        }
       
View Full Code Here

Examples of com.espertech.esper.client.annotation.Audit

        if (propertyGetter == null)
        {
            throw new ExprValidationException("Property getter returned was invalid for property '" + unresolvedPropertyName + "'");
        }

        Audit audit = AuditEnum.PROPERTY.getAudit(validationContext.getAnnotations());
        if (audit != null) {
            evaluator = new ExprIdentNodeEvaluatorLogging(streamNum, propertyGetter, propertyType, this, resolvedPropertyName, validationContext.getStatementName(), validationContext.getStreamTypeService().getEngineURIQualifier());
        }
        else {
            evaluator = new ExprIdentNodeEvaluatorImpl(streamNum, propertyGetter, propertyType, this);
View Full Code Here

Examples of com.espertech.esper.client.annotation.Audit

    private final String statementName;
    private final String eventTypeAndFilter;
    private final EventStream eventStream;

    public static EventStream getAuditProxy(String statementName, Annotation[] annotations, FilterSpecCompiled filterSpec, EventStream designated) {
        Audit audit = AuditEnum.STREAM.getAudit(annotations);
        if (audit == null) {
            return designated;
        }

        StringWriter filterAndParams = new StringWriter();
View Full Code Here

Examples of com.espertech.esper.client.annotation.Audit

        for (ViewSpec spec : viewSpecList)
        {
            // Create the new view factory
            ViewFactory viewFactory = statementContext.getViewResolutionService().create(spec.getObjectNamespace(), spec.getObjectName());

            Audit audit = AuditEnum.VIEW.getAudit(statementContext.getAnnotations());
            if (audit != null) {
                viewFactory = (ViewFactory) ViewFactoryProxy.newInstance(statementContext.getStatementName(), viewFactory, spec.getObjectName());
            }
            factoryChain.add(viewFactory);
View Full Code Here

Examples of com.espertech.esper.client.annotation.Audit

        MatchEventSpec tags = new MatchEventSpec();
        Deque<Integer> subexpressionIdStack = new ArrayDeque<Integer>(assignedTypeNumberStack);
        ExprEvaluatorContext evaluatorContextStmt = new ExprEvaluatorContextStatement(context);
        recursiveCompile(evalFactoryNode, context, evaluatorContextStmt, eventTypeReferences, isInsertInto, tags, subexpressionIdStack);

        Audit auditPattern = AuditEnum.PATTERN.getAudit(context.getAnnotations());
        Audit auditPatternInstance = AuditEnum.PATTERNINSTANCES.getAudit(context.getAnnotations());
        EvalFactoryNode compiledEvalFactoryNode = evalFactoryNode;
        if (auditPattern != null || auditPatternInstance != null) {
            EvalAuditInstanceCount instanceCount = new EvalAuditInstanceCount();
            compiledEvalFactoryNode = recursiveAddAuditNode(null, auditPattern != null, auditPatternInstance != null, evalFactoryNode, evalNodeExpressions, instanceCount);
        }
View Full Code Here

Examples of com.espertech.esper.client.annotation.Audit

        if (propertyGetter == null)
        {
            throw new ExprValidationException("Property getter returned was invalid for property '" + unresolvedPropertyName + "'");
        }

        Audit audit = AuditEnum.PROPERTY.getAudit(validationContext.getAnnotations());
        if (audit != null) {
            evaluator = new ExprIdentNodeEvaluatorLogging(streamNum, propertyGetter, propertyType, resolvedPropertyName, validationContext.getStatementName());
        }
        else {
            evaluator = new ExprIdentNodeEvaluatorImpl(streamNum, propertyGetter, propertyType);
View Full Code Here

Examples of com.indeed.proctor.common.model.Audit

    @Test
    public void testAuditVersionAsInt() throws IOException {
        // Tests the legacy audit.version as integer
        final String AUDIT_JSON = "{ \"version\" : 56783, \"updatedBy\" : \"jenkins-build-123\", \"updated\" : 1400693905572 }";
        final Audit audit = Serializers.lenient().readValue(AUDIT_JSON, Audit.class);
        Assert.assertEquals("56783", audit.getVersion());
        Assert.assertEquals("jenkins-build-123", audit.getUpdatedBy());
        Assert.assertEquals(1400693905572L, audit.getUpdated());
    }
View Full Code Here

Examples of com.indeed.proctor.common.model.Audit

    @Test
    public void testAuditVersionAsString() throws IOException {
        // Tests the audit.version as String
        final String AUDIT_JSON = "{ \"version\" : \"56783\", \"updatedBy\" : \"jenkins-build-123\", \"updated\" : 1400693905572 }";
        final Audit audit = Serializers.lenient().readValue(AUDIT_JSON, Audit.class);
        Assert.assertEquals("56783", audit.getVersion());
        Assert.assertEquals("jenkins-build-123", audit.getUpdatedBy());
        Assert.assertEquals(1400693905572L, audit.getUpdated());
    }
View Full Code Here

Examples of com.indeed.proctor.common.model.Audit

        matrix.setTests(tests);
        return matrix;
    }

    private Audit constructAudit() {
        final Audit audit = new Audit();
        audit.setVersion("1");
        audit.setUpdatedBy("unit test");
        audit.setUpdated(1337133701337L);
        return audit;
    }
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.