FileDocCategorySizeDatePackage
CallflowEventListener.javaAPI DocGlassfish v2 API6135Fri May 04 22:33:44 BST 2007com.sun.enterprise.admin.selfmanagement.event

CallflowEventListener

public class CallflowEventListener extends Object implements com.sun.enterprise.admin.monitor.callflow.Listener

Fields Summary
private static TraceEventImpl
traceImpl
private static CallflowEventListener
_instance
Constructors Summary
Methods Summary
public voidejbMethodEnd(java.lang.String requestId, java.lang.Throwable exception)

        traceImpl.ejbMethodEnd(requestId, exception, System.nanoTime(),
                                 Thread.currentThread().toString());
    
public voidejbMethodStart(java.lang.String requestId, java.lang.String methodName, java.lang.String applicationName, java.lang.String moduleName, java.lang.String componentName, com.sun.enterprise.admin.monitor.callflow.ComponentType componentType, java.lang.String securityId, java.lang.String transactionId)

        traceImpl.ejbMethodStart(requestId, methodName, componentType.toString(), applicationName,
                                 moduleName, componentName, transactionId, securityId,
                                 System.nanoTime(),Thread.currentThread().toString());
    
public voidentityManagerMethodEnd(java.lang.String requestId)

        //@TODO
    
public voidentityManagerMethodStart(java.lang.String requestId, com.sun.enterprise.admin.monitor.callflow.EntityManagerMethod entityManagerMethod, java.lang.String applicationName, java.lang.String moduleName, java.lang.String componentName, com.sun.enterprise.admin.monitor.callflow.ComponentType componentType, java.lang.String callerPrincipal)

        //@TODO
    
public voidentityManagerQueryEnd(java.lang.String requestId)

        //@TODO
    
public voidentityManagerQueryStart(java.lang.String requestId, com.sun.enterprise.admin.monitor.callflow.EntityManagerQueryMethod queryMethod, java.lang.String applicationName, java.lang.String moduleName, java.lang.String componentName, com.sun.enterprise.admin.monitor.callflow.ComponentType componentType, java.lang.String callerPrincipal)

        //@TODO
    
static com.sun.enterprise.admin.selfmanagement.event.CallflowEventListenergetInstance()

       
        return _instance;
    
static synchronized voidregister()

        Switch.getSwitch().getCallFlowAgent().registerListener(getInstance());
    
public voidrequestEnd(java.lang.String requestId)

        traceImpl.requestEnd(requestId, System.nanoTime(), 
                                        Thread.currentThread().toString());
    
public voidrequestStart(java.lang.String requestId, com.sun.enterprise.admin.monitor.callflow.RequestType requestType, java.lang.String callerIPAddress, java.lang.String remoteUser)

        traceImpl.requestStart(requestId, requestType, callerIPAddress,
                               System.nanoTime(), Thread.currentThread().toString());
    
static synchronized voidsetTraceImpl(TraceEventImpl impl)

        traceImpl = impl;
        // Switch.getSwitch().getCallFlowAgent().enableForNotifications(true);
    
static synchronized voidunregister()

        Switch.getSwitch().getCallFlowAgent().unregisterListener(getInstance());
    
public voidwebMethodEnd(java.lang.String requestId, java.lang.Throwable exception)

        traceImpl.webMethodEnd(requestId,exception, System.nanoTime(), 
                                 Thread.currentThread().toString());
    
public voidwebMethodStart(java.lang.String requestId, java.lang.String methodName, java.lang.String applicationName, java.lang.String moduleName, java.lang.String componentName, com.sun.enterprise.admin.monitor.callflow.ComponentType componentType, java.lang.String callerPrincipal)

        traceImpl.webMethodStart(requestId, methodName, applicationName, componentType.toString(), 
                                 componentName, callerPrincipal, System.nanoTime(), 
                                 Thread.currentThread().toString());