Beispiel #1
0
 public String toString() {
   if (!source) {
     if (event == Event.NEW) {
       return "\tSTART USER COMMAND:\tstartTime="
           + new Timestamp(timestamp)
           + "\trequestID="
           + requestID
           + "\ttxID="
           + transactionID
           + "\tsessionID="
           + sessionID
           + "\tapplicationName="
           + applicationName
           + "\tprincipal="
           + principal
           + "\tvdbName="
           + vdbName
           + "\tvdbVersion="
           + vdbVersion
           + "\tsql="
           + sql; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$//$NON-NLS-5$
                  // //$NON-NLS-6$ //$NON-NLS-7$ //$NON-NLS-8$ //$NON-NLS-9$
     }
     return "\t"
         + event
         + " USER COMMAND:\tendTime="
         + new Timestamp(timestamp)
         + "\trequestID="
         + requestID
         + "\ttxID="
         + transactionID
         + "\tsessionID="
         + sessionID
         + "\tprincipal="
         + principal
         + "\tvdbName="
         + vdbName
         + "\tvdbVersion="
         + vdbVersion
         + "\tfinalRowCount="
         + rowCount
         + ((plan != null)
             ? "\tplan=" + plan
             : ""); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$//$NON-NLS-5$
                    // //$NON-NLS-6$ //$NON-NLS-7$ //$NON-NLS-8$ //$NON-NLS-9$ //$NON-NLS-10$
                    // //$NON-NLS-11$
   }
   if (event == Event.NEW) {
     return "\tSTART DATA SRC COMMAND:\tstartTime="
         + new Timestamp(timestamp)
         + "\trequestID="
         + requestID
         + "\tsourceCommandID="
         + sourceCommandID
         + "\texecutionID="
         + executionContext.getExecutionCountIdentifier()
         + "\ttxID="
         + transactionID
         + "\tmodelName="
         + modelName
         + "\ttranslatorName="
         + translatorName
         + "\tsessionID="
         + sessionID
         + "\tprincipal="
         + principal
         + "\tsql="
         + sql; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$//$NON-NLS-5$ //$NON-NLS-6$
                // //$NON-NLS-7$ //$NON-NLS-8$ //$NON-NLS-9$ //$NON-NLS-10$
   }
   return "\t"
       + event
       + " SRC COMMAND:\tendTime="
       + new Timestamp(timestamp)
       + "\trequestID="
       + requestID
       + "\tsourceCommandID="
       + sourceCommandID
       + "\texecutionID="
       + executionContext.getExecutionCountIdentifier()
       + "\ttxID="
       + transactionID
       + "\tmodelName="
       + modelName
       + "\ttranslatorName="
       + translatorName
       + "\tsessionID="
       + sessionID
       + "\tprincipal="
       + principal
       + "\tfinalRowCount="
       + rowCount
       + "\tcpuTime(ns)="
       + cpuTime; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$//$NON-NLS-5$
                  // //$NON-NLS-6$ //$NON-NLS-7$ //$NON-NLS-8$ //$NON-NLS-9$ //$NON-NLS-10$
                  // //$NON-NLS-11$ //$NON-NLS-12$
 }