|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ow2.easybeans.component.audit.report.InvocationAuditReportFactory
public final class InvocationAuditReportFactory
This class build report based on invocations events.
Constructor Summary | |
---|---|
InvocationAuditReportFactory()
The constructor of the factory. |
Method Summary | |
---|---|
protected static StackTraceElement[] |
cleanupStackTrace(StackTraceElement[] stackTrace)
Cleanup the stack trace elements to ave the right stack. |
org.ow2.util.auditreport.impl.InvocationAuditReport |
getAuditReport(long stop,
EZBEventBeanInvocationEnd event,
String providerId)
Return a new report well endded. |
org.ow2.util.auditreport.impl.InvocationAuditReport |
getAuditReport(long stop,
EZBEventBeanInvocationError event,
String providerId)
Return a new report endded with an error. |
void |
prepareAuditReport(long start,
String method,
Thread current,
EZBEventBeanInvocationBegin event,
String providerId,
Principal[] callerRoles,
Principal caller)
This method create a minimal report with start informations and put it in a map, waiting for ending informations. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InvocationAuditReportFactory()
Method Detail |
---|
public void prepareAuditReport(long start, String method, Thread current, EZBEventBeanInvocationBegin event, String providerId, Principal[] callerRoles, Principal caller)
start
- the time (in ns) the invocation starts.method
- the method requested.current
- the current thread.event
- the invocation event.providerId
- the provider name.callerRoles
- the roles used for the invocation.caller
- the caller identityprotected static StackTraceElement[] cleanupStackTrace(StackTraceElement[] stackTrace)
stackTrace
- the given stack
public org.ow2.util.auditreport.impl.InvocationAuditReport getAuditReport(long stop, EZBEventBeanInvocationEnd event, String providerId)
stop
- the time the event occured.event
- the end event.providerId
- the provider.
public org.ow2.util.auditreport.impl.InvocationAuditReport getAuditReport(long stop, EZBEventBeanInvocationError event, String providerId)
stop
- the time the event occured.event
- the error event.providerId
- the provider.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |