Examples of InvocationAuditReport


Examples of org.ow2.util.auditreport.impl.InvocationAuditReport

            for (Object parameter : arguments) {
                params[i++] = parameter.toString();
            }
        }

        InvocationAuditReport reporttmp = new InvocationAuditReport(start, event.getTime(), method, event
                .getEventProviderId(), params, current, freeMemoryBefore, totalMemoryBefore, roles, caller
                .getName(), lengthArgs(event.getArguments()));
        reporttmp.setMethodStackTrace(cleanupStackTrace(event.getStackTraceElements()));
        reporttmp.setKeyID(event.getKeyID());

        this.waitingReports.put(event.getInvocationNumber(), reporttmp);

    }
View Full Code Here

Examples of org.ow2.util.auditreport.impl.InvocationAuditReport

                garbageCollectionTime += time;
            }
        }
        int freeMemoryAfter = (int) (Runtime.getRuntime().freeMemory());
        int totalMemoryAfter = (int) (Runtime.getRuntime().totalMemory());
        InvocationAuditReport finished = this.waitingReports.get(event.getInvocationNumber());
        if (finished != null) {
            finished.setFreeMemoryAfter(freeMemoryAfter);
            finished.setTotalMemoryAfter(totalMemoryAfter);
            if (finished.getBusinessMethod().equals(ON_MESSAGE_METHOD)) {
                finished.setMethodReturn(event.getResult());
            } else {
                try {
                    finished.setMethodReturn(((EJBResponse) event.getResult()).getValue());
                } catch (Exception e) {
                    finished.setMethodReturn(null);
                }
            }
            finished.setRequestStop(stop);
            finished.setSweepMarkTime(totalGarbageCollections);
            finished.setScavengeTime(garbageCollectionTime);
            this.waitingReports.remove(event.getInvocationNumber());
            return finished;
        }
        return null;
    }
View Full Code Here

Examples of org.ow2.util.auditreport.impl.InvocationAuditReport

     */
    public InvocationAuditReport getAuditReport(final long stop, final EZBEventBeanInvocationError event,
            final String providerId) {
        int freeMemoryAfter = (int) (Runtime.getRuntime().freeMemory());
        int totalMemoryAfter = (int) (Runtime.getRuntime().totalMemory());
        InvocationAuditReport finished = this.waitingReports.get(event.getInvocationNumber());
        if (finished != null) {
            finished.setFreeMemoryAfter(freeMemoryAfter);
            finished.setTotalMemoryAfter(totalMemoryAfter);
            finished.setRequestStop(stop);
            this.waitingReports.remove(event.getInvocationNumber());
            return finished;
        }
        return null;
    }
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.